Shouldn't we use more than one different document? when using ConversationalRetrievalChain. #11067
Replies: 1 comment
-
🤖 Hello, Thank you for reaching out and providing a detailed explanation of your issue. It seems like you're experiencing a problem where the This issue might be due to the way the get_chat_history = self.get_chat_history or _get_chat_history
chat_history_str = get_chat_history(inputs["chat_history"])
if chat_history_str:
callbacks = _run_manager.get_child()
new_question = self.question_generator.run(
question=question, chat_history=chat_history_str, callbacks=callbacks
)
else:
new_question = question If the Also, I found a similar issue in the LangChain repository: ConversationalRetrievalChain did not look into chat history while making an answer. The suggested solution is to update to the latest version of the software as it may have fixed this issue. The latest version of LangChain is v0.0.301. I hope this helps! If you have any other questions or need further clarification, please don't hesitate to ask. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
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
I have stored to different documents in vectore store. one is alphabet-revenue.pdf and another different pdf. To get the conversational experience. I am using ConversationalRetrievalChain. I have asked the following questions.
So, for the last two questions it actually giving answers form second pdf(I checked the source). it seems, LLM is not considering as follow-up questions.
My code
I am thinking it's not answering from chat_history. is there any mistake I am doing here.
Beta Was this translation helpful? Give feedback.
All reactions