James MacQuillan commited on
Commit
7502b02
·
1 Parent(s): 5ede06d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -211,7 +211,7 @@ def process_query(user_input, history):
211
  # Step 3: Generate a response using the search results
212
  response = client.chat_completion(
213
  model="Qwen/Qwen2.5-72B-Instruct",
214
- messages=[{"role": "user", "content": f"Using the search results: {search_results_str} and chat history {history}, this vector database on health checks {retrieved_texts} answer the user's query '{user_input}' in a concise, precise way, using numerical data if available. ONLY GIVE ONE RESPONSE BACK, CONCISE OR DETAILED BASED ON THE USERS INPUT. here is a short description of their investing style, so tailor your responses to it and reference it {investing_style}"}],
215
  max_tokens=3000,
216
  stream=True
217
  )
 
211
  # Step 3: Generate a response using the search results
212
  response = client.chat_completion(
213
  model="Qwen/Qwen2.5-72B-Instruct",
214
+ messages=[{"role": "user", "content": f"Using the search results: {search_results_str} and chat history {history}, this vector database on health checks {retrieved_texts} answer the user's query '{user_input}' in a concise, precise way, using numerical data if available. ONLY GIVE ONE RESPONSE BACK, CONCISE OR DETAILED BASED ON THE USERS INPUT. "}],
215
  max_tokens=3000,
216
  stream=True
217
  )