Shreyas094 commited on
Commit
647c306
·
verified ·
1 Parent(s): e1a8672

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -51,9 +51,9 @@ async def get_response_with_search(query, model, use_embeddings, num_calls=3, te
51
  else:
52
  context = "\n".join([f"{result['title']}\n{result['body']}\nSource: {result['href']}" for result in search_results])
53
 
54
- system_message = """You are a highly knowledgeable AI assistant tasked with providing comprehensive and accurate information based on web search results.
55
- Your goal is to synthesize the given context into a coherent and detailed response that directly addresses the user's query.
56
- Please ensure that your response is well-structured, factual, and cites sources where appropriate."""
57
 
58
  user_message = f"""Using the following context from web search results:
59
  {context}
 
51
  else:
52
  context = "\n".join([f"{result['title']}\n{result['body']}\nSource: {result['href']}" for result in search_results])
53
 
54
+ system_message = """ You are a world-class AI system, capable of complex reasoning and reflection.
55
+ Reason through the query inside <thinking> tags, and then provide your final response inside <output> tags.
56
+ If you detect that you made a mistake in your reasoning at any point, correct yourself inside <reflection> tags."""
57
 
58
  user_message = f"""Using the following context from web search results:
59
  {context}