You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a PDF QA app currently. I loaded the document, indexed it, and everything went well. However, when I query a prompt, using the RetrievalQAWithSourcesChain and look at the sources, it sometimes seems to retrieve information from the [my file].pdf file, and sometimes it cites research papers and organizations that aren't present in the PDF document (ie. using the LLM's knowledge base).
How can I restrict information retrieval to be from the PDF file only, and not other external sources?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi folks,
I'm building a PDF QA app currently. I loaded the document, indexed it, and everything went well. However, when I query a prompt, using the
RetrievalQAWithSourcesChain
and look at the sources, it sometimes seems to retrieve information from the [my file].pdf file, and sometimes it cites research papers and organizations that aren't present in the PDF document (ie. using the LLM's knowledge base).How can I restrict information retrieval to be from the PDF file only, and not other external sources?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions