demoPOC commited on
Commit
b324e50
·
verified ·
1 Parent(s): a670d9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -207,7 +207,8 @@ def getRAGChain(customerName, customerDistrict, custDetailsPresent, vectordb,llm
207
 
208
  # Retrieve conversation history if available
209
  #memory = ConversationBufferWindowMemory(k=3, memory_key="history", input_key="question")
210
- global memory = ConversationBufferWindowMemory(k=3, memory_key="history", input_key="question", initial_memory=conversation_history)
 
211
 
212
  # chain = RetrievalQA.from_chain_type(
213
  # llm=getLLMModel(llmID),
 
207
 
208
  # Retrieve conversation history if available
209
  #memory = ConversationBufferWindowMemory(k=3, memory_key="history", input_key="question")
210
+ global memory
211
+ memory = ConversationBufferWindowMemory(k=3, memory_key="history", input_key="question", initial_memory=conversation_history)
212
 
213
  # chain = RetrievalQA.from_chain_type(
214
  # llm=getLLMModel(llmID),