DrAlzahraniProjects / csusb_fall2024_cse6550_team1

csusb_fall2024_cse6550_team1
5 stars 1 forks source link

[DO NOT MERGE] added another call to llm to recheck the response #179

Open smrchanda877 opened 6 days ago

smrchanda877 commented 6 days ago

While retrieving the relevant documents from the database, we get a similarity score for each chunk of data. If the similarity score is less than a threshold (which in this case is 0.4), we call the API with a different prompt that is meant for rechecking if the response given by the first call is taken from the retrieved documents or not

New functions for answer verification:

Enhancements to query_rag function: