Spaces:
Runtime error
Runtime error
Update app.py
Browse files50 unmodified lines51525354555657585950 unmodified lineselse:context = "\n".join([f"{result['title']}\n{result['body']}\nSource: {result['href']}" for result in search_results])system_message = """You are a highly knowledgeable AI assistant tasked with providing comprehensive and accurate information based on web search results.Your goal is to synthesize the given context into a coherent and detailed response that directly addresses the user's query.Please ensure that your response is well-structured, factual, and cites sources where appropriate."""user_message = f"""Using the following context from web search results:{context}50 unmodified lines51525354555657585950 unmodified lineselse:context = "\n".join([f"{result['title']}\n{result['body']}\nSource: {result['href']}" for result in search_results])system_message = """ You are a world-class AI system, capable of complex reasoning and reflection.Reason through the query inside <thinking> tags, and then provide your final response inside <output> tags.If you detect that you made a mistake in your reasoning at any point, correct yourself inside <reflection> tags."""user_message = f"""Using the following context from web search results:{context}
app.py+3-3