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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -207,7 +207,7 @@ 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
- 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 = ConversationBufferWindowMemory(k=3, memory_key="history", input_key="question", initial_memory=conversation_history)
211
 
212
  # chain = RetrievalQA.from_chain_type(
213
  # llm=getLLMModel(llmID),