-
I need to reset the memory of the chatbot, it keeps using an older version of the file which was a test, and now I can't make it stop. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
same problem here |
Beta Was this translation helpful? Give feedback.
-
Have you specified filter or namespace or combination of both for the Pinecone node? |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. As a first question, from a new chat it is possible to notice that the chat has accumulated content or returns an error message: This model's maximum context length is 4097 tokens. However, you requested 4140 tokens (3140 in the messages, 1000 in the completion). Please reduce the length of the messages or completion. |
Beta Was this translation helpful? Give feedback.
-
Upserting new data does not mean the old data is deleted. You will first need to delete the old data. Below is some python code that I ran on Google Collab. #install pinecone client #get the project connected #delete the index If you have not added a namespace then use '' else use the actual name of the namespace. Deleting the old data, saving your chat flow and then upserting the new data should solve the problem |
Beta Was this translation helpful? Give feedback.
-
you can either delete the old data, or store the new data to a new namespace/collection, basically concept of another folder. That way you can prevent the mix of knowledge file/data |
Beta Was this translation helpful? Give feedback.
-
What you need is a Record Manager node in your flow, in particular setting the « Cleanup » option in additional parameters. |
Beta Was this translation helpful? Give feedback.
Upserting new data does not mean the old data is deleted. You will first need to delete the old data. Below is some python code that I ran on Google Collab.
#install pinecone client
!pip install pinecone-client
#get the project connected
import pinecone
pinecone.init(api_key="your key", environment="your environment")
index = pinecone.Index("your index")
#delete the index
index.delete(delete_all=True, namespace='')
If you have not added a namespace then use '' else use the actual name of the namespace.
Deleting the old data, saving your chat flow and then upserting the new data should solve the problem