Help , RAG data update

My current RAG flow is:

  1. Upload files to Google Drive

  2. n8n downloads → chunks/embeds → upserts to Pinecone

  3. Chatbot queries Pinecone

But what’s the best way to handle deletes/updates?

  • If a file on Drive is deleted, how do I remove its vectors from Pinecone?

  • If a file is updated, should I delete old vectors first, then re-embed?

  • Do I need to wipe and rebuild the whole index/namespace every time there’s a change, or is there a better pattern?

Any examples or node setups in n8n would help a lot. Thanks!

One solution could be this.

or you can try using supabase:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.