Update app.py
Browse files161 unmodified lines162163164165165166167168167168169170161 unmodified lines
try: # Rephrase the query analysis, rephrased_query = await rephrase_query(message, history, model) rephrased_query = await rephrase_query(message, history, model) if analysis: yield f"Query Analysis: {analysis}\n\nRephrased Query: {rephrased_query}\n\nSearching the web...\n\n" yield f"Rephrased Query: {rephrased_query}\n\nSearching the web...\n\n" async for main_content, sources in get_response_with_search(rephrased_query, model, use_embeddings, num_calls=num_calls, temperature=temperature): response = f"{main_content}\n\n{sources}"app.py+2-3