Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -150,7 +150,7 @@ async def followup_agent(query: FollowupQueryModel, background_tasks: Background
|
|
150 |
]
|
151 |
|
152 |
digiyatra_response = await digiyatra_query_table(query, db=get_db_connection(), limit=5)
|
153 |
-
user_query_with_context = f"{query.query} \n\n
|
154 |
conversations[query.conversation_id].append({"role": "user", "content": user_query_with_context})
|
155 |
last_activity[query.conversation_id] = time.time()
|
156 |
|
|
|
150 |
]
|
151 |
|
152 |
digiyatra_response = await digiyatra_query_table(query, db=get_db_connection(), limit=5)
|
153 |
+
user_query_with_context = f"{query.query} \n\n <context>: {digiyatra_response}</context>"
|
154 |
conversations[query.conversation_id].append({"role": "user", "content": user_query_with_context})
|
155 |
last_activity[query.conversation_id] = time.time()
|
156 |
|