-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue: Validation errors for ConversationalRetrievalChain (combine_docs_chain) #13607
Comments
🤖 Hello @0ENZO, It's nice to meet you! I'm a bot here to assist you with your issue while we wait for a human maintainer to step in. I can help you solve bugs, answer questions, and guide you on your journey to becoming a contributor. I see you've encountered an issue with the LangChain repository, I'm currently reviewing it and will provide a more detailed response very soon. Hang tight! |
🤖 Hello @0ENZO, I'm a bot designed to assist you with issues related to the LangChain repository. I can help you debug problems, answer your queries, and guide you on how to contribute to this project. While we wait for a human maintainer to join us, I'm here to offer my assistance. The error you're encountering is due to incorrect usage of the To resolve these errors, you should provide a combine_docs_chain = StuffDocumentsChain(...)
retriever = ...
question_generator_chain = LLMChain(...)
chain = ConversationalRetrievalChain(
combine_docs_chain=combine_docs_chain,
retriever=retriever,
question_generator=question_generator_chain,
) In your case, it seems like you're trying to use a custom qa = ConversationalRetrievalChain.from_llm(
llm,
retriever=vectordb.as_retriever(),
return_source_documents = True,
memory=memory,
verbose = True,
combine_docs_chain_kwargs = {'combine_docs_chain': combine_docs_chain}
) Please note that you need to define your own For more information, you can refer to these similar solved issues in the LangChain repository:
I hope this helps! Let me know if you have any other questions. 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. |
Hi, @0ENZO, I'm helping the LangChain team manage their backlog and am marking this issue as stale. From what I understand, you encountered validation errors for the ConversationalRetrievalChain in the provided code, and Dosubot provided a detailed response explaining the incorrect usage of the Could you please confirm if this issue is still relevant to the latest version of the LangChain repository? If it is, please let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you! |
Issue you'd like to raise.
Hello, I am working on a conversational chatbot, here is a snippet of the code :
When running the code I have the following error :
How could I solve this ? Is there any way to have a more detailed error ?
Suggestion:
No response
The text was updated successfully, but these errors were encountered: