valeriylo commited on
Commit
259bb48
1 Parent(s): 7c916b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,