Spaces:
Runtime error
Runtime error
Update kadi_apy_bot.py
Browse files- kadi_apy_bot.py +2 -2
kadi_apy_bot.py
CHANGED
|
@@ -15,7 +15,7 @@ class KadiAPYBot:
|
|
| 15 |
Process a user query, handle history, retrieve contexts, and generate a response.
|
| 16 |
"""
|
| 17 |
# Add the user query to the conversation history
|
| 18 |
-
self.add_to_conversation(user_query=query)
|
| 19 |
|
| 20 |
# Rewrite query
|
| 21 |
rewritten_query = self.rewrite_query(query)
|
|
@@ -35,7 +35,7 @@ class KadiAPYBot:
|
|
| 35 |
response = self.generate_response(query, formatted_doc_contexts, formatted_code_contexts)
|
| 36 |
|
| 37 |
# Add the response to the existing query in the conversation history
|
| 38 |
-
self.add_to_conversation(llm_response=response)
|
| 39 |
|
| 40 |
return response
|
| 41 |
|
|
|
|
| 15 |
Process a user query, handle history, retrieve contexts, and generate a response.
|
| 16 |
"""
|
| 17 |
# Add the user query to the conversation history
|
| 18 |
+
#self.add_to_conversation(user_query=query)
|
| 19 |
|
| 20 |
# Rewrite query
|
| 21 |
rewritten_query = self.rewrite_query(query)
|
|
|
|
| 35 |
response = self.generate_response(query, formatted_doc_contexts, formatted_code_contexts)
|
| 36 |
|
| 37 |
# Add the response to the existing query in the conversation history
|
| 38 |
+
#self.add_to_conversation(llm_response=response)
|
| 39 |
|
| 40 |
return response
|
| 41 |
|