-
Notifications
You must be signed in to change notification settings - Fork 1.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
Fix for recent breaking changes #73
base: master
Are you sure you want to change the base?
Fix for recent breaking changes #73
Conversation
Use ConversationalRetrievalChain instead of ChatVectorDBChain; Update AsyncCallbackManager after refactor
Link to ConversationRetrievalChain example docs
Better link
@gadkins just tried your fix. I think you also need the change from this branch of yours: if I include that change on top of this branch it seems to work, thanks for figuring it out! |
It would be good to have this PR merged due to the package upgrade. Thanks! @hwchase17 |
qa = ChatVectorDBChain( | ||
vectorstore=vectorstore, | ||
qa = ConversationalRetrievalChain( | ||
vectorstore=vectorstore.as_retriever(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also needs to update to the parameter from vectorstore
to retriever
:
qa = ConversationalRetrievalChain(
retriever=vectorstore.as_retriever(),
combine_docs_chain=doc_chain,
question_generator=question_generator,
callback_manager=manager,
return_source_documents=True,
)
This PR fixes two breaking changes recently introduced in
hwchase17/langchain
:ConversationalRetrievalChain
replacingChatVectorDBChain
per this blogAsyncCallbackManager
moved tolangchain.callbacks.manager
after this refactor