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

Removed `GenerateAnswer.FAILED_TO_ANSWER` as its unnecessary #691

Closed jamesbraza closed 6 days ago

jamesbraza commented 1 week ago

So we had a constant GenerateAnswer.FAILED_TO_ANSWER that was a derived value for a "cannot answer" answer.

This PR basically removes that derived value, choosing to stick with the vanilla answer. Less statefulness, less constants, less code