Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -233,7 +233,7 @@ def getRAGChain(customerName, customerDistrict, custDetailsPresent, vectordb,llm
|
|
233 |
chain_type_kwargs={
|
234 |
"verbose": False,
|
235 |
"prompt": createPrompt(customerName, customerDistrict, custDetailsPresent),
|
236 |
-
"memory":
|
237 |
}
|
238 |
)
|
239 |
return chain
|
|
|
233 |
chain_type_kwargs={
|
234 |
"verbose": False,
|
235 |
"prompt": createPrompt(customerName, customerDistrict, custDetailsPresent),
|
236 |
+
"memory": ConversationBufferWindowMemory(k=3, memory_key="history", input_key="question", initial_memory=conversation_history),
|
237 |
}
|
238 |
)
|
239 |
return chain
|