Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def get_conversation_chain(vectorstore, model_name):
|
|
62 |
|
63 |
# llm = ChatOpenAI()
|
64 |
|
65 |
-
memory = ConversationBufferMemory(memory_key='chat_history', return_messages=True)
|
66 |
|
67 |
conversation_chain = ConversationalRetrievalChain.from_llm(llm=llm,
|
68 |
# condense_question_prompt=CONDENSE_QUESTION_PROMPT,
|
|
|
62 |
|
63 |
# llm = ChatOpenAI()
|
64 |
|
65 |
+
memory = ConversationBufferMemory(memory_key='chat_history', input_key='question', output_key='answer', return_messages=True)
|
66 |
|
67 |
conversation_chain = ConversationalRetrievalChain.from_llm(llm=llm,
|
68 |
# condense_question_prompt=CONDENSE_QUESTION_PROMPT,
|