Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def get_conversation_chain(vectorstore):
|
|
| 42 |
# llm = HuggingFaceHub(repo_id="NousResearch/Llama-2-7b-hf", model_kwargs={"temperature":0.5, "max_length":512})
|
| 43 |
|
| 44 |
memory = ConversationBufferMemory(
|
| 45 |
-
|
| 46 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|
| 47 |
llm=llm,
|
| 48 |
retriever=vectorstore.as_retriever(),
|
|
|
|
| 42 |
# llm = HuggingFaceHub(repo_id="NousResearch/Llama-2-7b-hf", model_kwargs={"temperature":0.5, "max_length":512})
|
| 43 |
|
| 44 |
memory = ConversationBufferMemory(
|
| 45 |
+
memory_key='chat_history', return_messages=True)
|
| 46 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|
| 47 |
llm=llm,
|
| 48 |
retriever=vectorstore.as_retriever(),
|