Future-House / paper-qa

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

Output of query is sometimes missing references #165

Open jaixan opened 1 year ago

jaixan commented 1 year ago

I'm adding pdf from Zotero in the Docs object. When I query the Docs, about half of the times I get an answer without the references.

Ex:

''' AIED, or Artificial Intelligence in Education, is a field that involves the use of AI techniques and educational methods to customize educational activities and strategies based on students' characteristics and needs (Crompton_Artificialintelligencein_20230424_IYIN4M6H, p. 16-17). A common technique used in AIED is Intelligent Tutoring Systems (ITS), which provides adaptive instruction to students (Crompton_Artificialintelligencein_20230424_IYIN4M6H, p. 16-17). AIED can also be used to manage student learning by providing information, organization, and data analysis (Crompton_Artificialintelligencein_20230424_IYIN4M6H, p. 16-17). '''

I should be getting References also. Is there a way to ensure I get references on every query call?

mskarlin commented 1 month ago

Hi @jaixan you should see the references as structured data inside the answer object, if you look at answer.used_contexts, you'll see a set of the contexts that were used in your answer.