Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def get_conversation_chain(vectorstore:FAISS) -> ConversationalRetrievalChain:
|
|
60 |
|
61 |
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
|
62 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|
63 |
-
llm=llm, retriever=vectorstore.as_retriever()
|
64 |
)
|
65 |
return conversation_chain
|
66 |
|
|
|
60 |
|
61 |
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
|
62 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|
63 |
+
llm=llm, retriever=vectorstore.as_retriever(),memory=memory
|
64 |
)
|
65 |
return conversation_chain
|
66 |
|