Spaces:
Runtime error
Runtime error
captain-awesome
commited on
Commit
•
6d34105
1
Parent(s):
825380b
Update app.py
Browse files
app.py
CHANGED
@@ -223,7 +223,7 @@ def create_chain(llm, prompt, CONDENSE_QUESTION_PROMPT, db):
|
|
223 |
Returns:
|
224 |
ConversationalRetrievalChain: The initialized conversational chain.
|
225 |
"""
|
226 |
-
memory = ConversationTokenBufferMemory(llm=llm, memory_key="chat_history", return_messages=True, input_key='question')
|
227 |
chain = ConversationalRetrievalChain.from_llm(
|
228 |
llm=llm,
|
229 |
chain_type="stuff",
|
|
|
223 |
Returns:
|
224 |
ConversationalRetrievalChain: The initialized conversational chain.
|
225 |
"""
|
226 |
+
memory = ConversationTokenBufferMemory(llm=llm, memory_key="chat_history", return_messages=True, input_key='question', output_key='answer')
|
227 |
chain = ConversationalRetrievalChain.from_llm(
|
228 |
llm=llm,
|
229 |
chain_type="stuff",
|