James MacQuillan commited on
Commit
45809f6
·
1 Parent(s): 4aa0489
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -200,7 +200,7 @@ def process_query(user_input, history):
200
  # Step 1: Generate a search term based on the user query
201
  stream_search = client.chat_completion(
202
  model="Qwen/Qwen2.5-72B-Instruct",
203
- messages=[{"role": "user", "content": f"Based on this chat history {history} the user's request '{user_input}', and this vector database {search_texts}, suggest a Google search term in a single line without specific dates; use 'this year', 'this month', etc. INCLUDE NOTHING IN YOUR RESPONSE EXCEPT THE RELEVANT SEARCH RESULT. EXAMPLE: USER: WHAT IS THE CURRENT PRICE OF COCA COLA STOCK. YOUR RESPONSE: WHAT IS THE CURRENT PRICE OF COCA COLA STOCK. here is their investor type, you can use it to specialise searches for their investor type{investor_type_value}"}],
204
  max_tokens=400,
205
  stream=True
206
  )
 
200
  # Step 1: Generate a search term based on the user query
201
  stream_search = client.chat_completion(
202
  model="Qwen/Qwen2.5-72B-Instruct",
203
+ messages=[{"role": "user", "content": f"Based on this chat history {history} the user's request '{user_input}', and this vector database {search_texts}, suggest a Google search term in a single line without specific dates; use 'this year', 'this month', etc. INCLUDE NOTHING IN YOUR RESPONSE EXCEPT THE RELEVANT SEARCH RESULT. EXAMPLE: USER: WHAT IS THE CURRENT PRICE OF COCA COLA STOCK. YOUR RESPONSE: WHAT IS THE CURRENT PRICE OF COCA COLA STOCK. here is their investor type."}],
204
  max_tokens=400,
205
  stream=True
206
  )