Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -654,10 +654,11 @@ def respond(message, tokens_max, temperature, top_p):
|
|
| 654 |
final_response = answer_for_intent(intent)
|
| 655 |
log_interaction(message, final_response, "", tokens_max, temperature, top_p)
|
| 656 |
# Stocker aussi les salutations dans Qdrant
|
| 657 |
-
|
|
|
|
| 658 |
if not success:
|
| 659 |
-
|
| 660 |
-
return final_response, ""
|
| 661 |
|
| 662 |
context, dominant_collection = retrieve_context(message)
|
| 663 |
|
|
|
|
| 654 |
final_response = answer_for_intent(intent)
|
| 655 |
log_interaction(message, final_response, "", tokens_max, temperature, top_p)
|
| 656 |
# Stocker aussi les salutations dans Qdrant
|
| 657 |
+
|
| 658 |
+
"""success = store_qr_in_qdrant(message, final_response, "", "greeting")
|
| 659 |
if not success:
|
| 660 |
+
print("⚠️ Échec du stockage de la salutation dans Qdrant")
|
| 661 |
+
return final_response, "" """
|
| 662 |
|
| 663 |
context, dominant_collection = retrieve_context(message)
|
| 664 |
|