Update app.py
Browse files
app.py
CHANGED
@@ -162,10 +162,9 @@ async def respond(message, history, model, temperature, num_calls, use_embedding
|
|
162 |
|
163 |
try:
|
164 |
# Rephrase the query
|
165 |
-
|
166 |
|
167 |
-
|
168 |
-
yield f"Query Analysis: {analysis}\n\nRephrased Query: {rephrased_query}\n\nSearching the web...\n\n"
|
169 |
|
170 |
async for main_content, sources in get_response_with_search(rephrased_query, model, use_embeddings, num_calls=num_calls, temperature=temperature):
|
171 |
response = f"{main_content}\n\n{sources}"
|
|
|
162 |
|
163 |
try:
|
164 |
# Rephrase the query
|
165 |
+
rephrased_query = await rephrase_query(message, history, model)
|
166 |
|
167 |
+
yield f"Rephrased Query: {rephrased_query}\n\nSearching the web...\n\n"
|
|
|
168 |
|
169 |
async for main_content, sources in get_response_with_search(rephrased_query, model, use_embeddings, num_calls=num_calls, temperature=temperature):
|
170 |
response = f"{main_content}\n\n{sources}"
|