demoPOC commited on
Commit
6ebc995
·
verified ·
1 Parent(s): 608c61b

Update app.py

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