Can my RAG agent answer common questions? #31578
Antoine101
started this conversation in
General
Replies: 1 comment 1 reply
-
My guess is: If you look into the prompt that you load with
You see that its prompted to answer questions based on the context (youre document), which is also what you usally want. Hope this helps |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have been building a little RAG app following one of LlangChain's tutorial. It's based on a single pdf document I load, split, embed, and store in a vector store. The code is provided below.
When asking him questions about something the document talks about, like "Can you give me several statistical learning methods?", it answers pretty correctly.
However, when asking a general question like "What is football?" It answers "I'm sorry, but this document appears to be about statistical learning methods and does not contain a definition of football. Therefore, I cannot answer your question.".
This may be a silly question but how come it is unable to leverage the LLM's internal knowledge to answer questions about stuff that are not covered by the provided document.
Is it due to the LLM used? To the way the graph is created?
How could I modify the provided code to have an agent that's able to construct answers based both on my knowledge base and answer other non related topics?
Is it even something we would like? How would we be sure that it constructs its answers based on the KB or its internal knowledge?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions