My AI Agent can’t update after i change the data (PDF file), for example when i ask it “What is the phone number?” it won’t give the information of updated version but the old version of the PDF even after i restarted and checked whether the PDF files weren’t uploaded.
No error messages were found and it said that it executed successfully.
Its because youre storing the document in a permantent store (pinecone) and not replacing a new version. Do you want replace the existing document or only use the document to process and then disgard?
If the latter, then rather use a in mmemory vector store which will replace everything once you add a new document.
For example below every time I send a new pdf to telegram chat, I can only ask questions about that new document as it’s stored in memory and immediately overwritten
If you’re looking to version and update existing documents in pinecone, then you can follow this video explaining how to properly overwrite documents in your vector store
I actually managed to find out the solution a few hours ago, i just deleted all of the old Pinecone records and namespaces then run the workflow which worked but thank you for replying, i might try to do one where you don’t have to manually delete the old records and namespaces from Pinecone.