Future-House / paper-qa

High accuracy RAG for answering questions from scientific documents with citations
Apache License 2.0
6.44k stars 617 forks source link

Making sure we copy distractors #694

Closed sidnarayanan closed 6 days ago

sidnarayanan commented 6 days ago

If LitQAEvaluation.from_question(distractors=...) received a list, it would be modified in-place as we constructed the option list. This PR fixes that and adds tests.