How do i add memory to RetrievalQA.from_chain_type? or, how do I add a custom prompt to ConversationalRetrievalChain? #4609
Replies: 3 comments 1 reply
-
This sounds like maybe the same issue I'm having? My agent has a tool that references a vectorstore with a codebase. But the agent sends a modified version of the question to the tool (I'm using ConversationSummaryBufferMemory for the agent and ReadOnlySharedMemory for the tool.) But the messages seems to get garbled on the way to and/or from the tool, which seems to lead to hallucinations. I'd be very interested to know if this has been your experience, and if you've found a solution yet. Cheers. |
Beta Was this translation helpful? Give feedback.
-
Encountering the exact same issue, I was thinking about creating a custom chain that modifies |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How do i add memory to RetrievalQA.from_chain_type? or, how do I add a custom prompt to ConversationalRetrievalChain?
For the past 2 weeks ive been trying to make a chatbot that can chat over documents (so not in just a semantic search/qa so with memory) but also with a custom prompt. I've tried every combination of all the chains and so far the closest I've gotten is ConversationalRetrievalChain, but without custom prompts, and RetrievalQA.from_chain_type but without memory
Beta Was this translation helpful? Give feedback.
All reactions