bentobytes commited on
Commit
3766553
·
1 Parent(s): 6b3f443

Update conversation.py

Browse files
Files changed (1) hide show
  1. conversation.py +3 -1
conversation.py CHANGED
@@ -28,7 +28,9 @@ def create_conversation(query: str, chat_history: list, collection_name: str) ->
28
 
29
  memory = ConversationBufferMemory(
30
  memory_key='chat_history',
31
- return_messages=False
 
 
32
  )
33
  cqa = ConversationalRetrievalChain.from_llm(
34
  llm=ChatOpenAI(temperature=0.0,
 
28
 
29
  memory = ConversationBufferMemory(
30
  memory_key='chat_history',
31
+ return_messages=False,
32
+ input_key='question',
33
+ output_key='answer',
34
  )
35
  cqa = ConversationalRetrievalChain.from_llm(
36
  llm=ChatOpenAI(temperature=0.0,