Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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),
|