Spaces:
Runtime error
Runtime error
Updated default retrieval text
Browse files
RAG.py
CHANGED
|
@@ -158,7 +158,7 @@ def parse_xml_and_check(xml_string: str) -> str:
|
|
| 158 |
parsed_response = dict(matches)
|
| 159 |
|
| 160 |
if parsed_response.get('VALID') == 'NO':
|
| 161 |
-
return "Sorry, I was unable to find any documents
|
| 162 |
|
| 163 |
return parsed_response.get('RESPONSE', "No response found in the output")
|
| 164 |
|
|
|
|
| 158 |
parsed_response = dict(matches)
|
| 159 |
|
| 160 |
if parsed_response.get('VALID') == 'NO':
|
| 161 |
+
return "Sorry, I was unable to find any documents for your query.\n\n Here are some documents I found that might be relevant."
|
| 162 |
|
| 163 |
return parsed_response.get('RESPONSE', "No response found in the output")
|
| 164 |
|