Spaces:
Sleeping
Sleeping
changed exclusion for guide retrieval trigger
Browse files
chat_logic/chat_stream.py
CHANGED
|
@@ -103,9 +103,9 @@ def chatbot_interface(history, user_query, response_type, conversation_state):
|
|
| 103 |
answer = chatbot_answer_init(user_query, None, history, response_type, prompt="diagnose_issue")
|
| 104 |
extracted_info = information_extractor(answer)
|
| 105 |
|
| 106 |
-
if any(value == '' or (value is not None and 'none' in value.lower()) or
|
| 107 |
(value is not None and 'not specified' in value.lower()) or
|
| 108 |
-
(value is not None and 'unknown' in value.lower())
|
| 109 |
for value in extracted_info.values()
|
| 110 |
):
|
| 111 |
conversation_state = "interactive_diagnosis"
|
|
|
|
| 103 |
answer = chatbot_answer_init(user_query, None, history, response_type, prompt="diagnose_issue")
|
| 104 |
extracted_info = information_extractor(answer)
|
| 105 |
|
| 106 |
+
if any(value == '' or value is None or (value is not None and 'none' in value.lower()) or
|
| 107 |
(value is not None and 'not specified' in value.lower()) or
|
| 108 |
+
(value is not None and 'unknown' in value.lower() or (value is not None and 'no specific' in value.lower()))
|
| 109 |
for value in extracted_info.values()
|
| 110 |
):
|
| 111 |
conversation_state = "interactive_diagnosis"
|