joachim-danswer 9455576078
Mismatch issue of Documents shown and Citation number in text fix (#3421)
* Mismatch issue of Documents shown and Citation number in text fix

When document order presented to LLM differs from order shown to user, wrong doc numbers are cited.

Fix:
 - SearchTool.get_search_result  returns now final and initial ranking
 - initial ranking is passed through a few objects and used for replacement in citation processing

Notes:
 - the citation_num in the CitationInfo() object has not been changed.

* PR fixes

 - linting
 - removed erroneous tab
 - added a substitution test case
 - adjusted original citation extraction use case

* Included a key test and

* Fixed extra spaces

* Updated test documentation

Updated:
 - test_citation_substitution (changed description)
 - test_citation_processing (removed data only relevant for the substitution)
2024-12-11 19:58:24 +00:00
..
2024-12-10 21:36:40 +00:00
2024-12-02 15:12:13 -08:00
2024-12-11 01:33:44 +00:00
2024-12-11 01:33:44 +00:00
2024-10-10 16:34:32 +00:00
2024-12-02 22:43:53 +00:00
2024-10-19 19:12:42 +00:00