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