Spaces:
Sleeping
Sleeping
thoristhor
commited on
Commit
•
3003569
1
Parent(s):
480f01a
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ tools = [
|
|
23 |
return_direct=True
|
24 |
),
|
25 |
]
|
26 |
-
memory = GPTIndexMemory(index=
|
27 |
llm=OpenAI(temperature=0)
|
28 |
agent_chain = initialize_agent([], llm, agent="conversational-react-description", memory=memory)
|
29 |
|
|
|
23 |
return_direct=True
|
24 |
),
|
25 |
]
|
26 |
+
memory = GPTIndexMemory(index=indexed_pinecone, memory_key="chat_history", query_kwargs={"response_mode": "compact"})
|
27 |
llm=OpenAI(temperature=0)
|
28 |
agent_chain = initialize_agent([], llm, agent="conversational-react-description", memory=memory)
|
29 |
|