Skip to content

Commit

Permalink
Updated default retrieval text
Browse files Browse the repository at this point in the history
  • Loading branch information
Dephoh committed Dec 11, 2024
1 parent 3eedce1 commit 4ef2f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RAG.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def parse_xml_and_check(xml_string: str) -> str:
parsed_response = dict(matches)

if parsed_response.get('VALID') == 'NO':
return "Sorry, I was unable to find any documents relevant to your query."
return "Sorry, I was unable to find any documents for your query.\n\n Here are some documents I found that might be relevant."

return parsed_response.get('RESPONSE', "No response found in the output")

Expand Down

0 comments on commit 4ef2f39

Please sign in to comment.