We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I think there are a couple updates to be made for langchain 0.1.0 if you want to keep this current.
from langchain_community.vectorstores import FAISS from langchain_openai import ChatOpenAI, OpenAIEmbeddings
and
def get_conversation_chain(vectorstore): """Get conversation chain from vector store""" llm = ChatOpenAI() memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) conversation_chain = ConversationalRetrievalChain.from_llm( llm=llm, memory=memory, retriever=vectorstore.as_retriever() ) return conversation_chain
The text was updated successfully, but these errors were encountered:
from where to import ConversationalRetrievalChain . I tried langchain.chains its not working
Sorry, something went wrong.
No branches or pull requests
Hi,
I think there are a couple updates to be made for langchain 0.1.0 if you want to keep this current.
and
The text was updated successfully, but these errors were encountered: