Deleting Pinecone Vectors through n8n

So, inserting and updating a pinecone index is pretty doable through the pinecone node.

However, I don’t see any operations to delete certain vectors (for example, based on ID, or added Metadata).

Does anyone have some tips on how to do this? Or if it’s even possible to do this from a workflow?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

A quick workaround would be to use the Langchain Code node.
You can either set the Pinecone namespace and filters in the vector store node or as params for the delete method - I’ve chosen the former in this example.

1 Like

Thanks for making me aware that there’s a langchain JS option. I was under the impression it was Python only … So, I take it this node interacts with the langchain js / typescript library.

Yes that’s correct - it’s all langchainJS underneath.
The Langchain Code node is a really handy utility node which I assume is to allow users to fill in the gaps until the n8n team deem them popular enough use-cases to implement natively.

If you don’t mind me asking, what’s your use-case for deleting records in Pinecone? Usually with text-splitting, I find it’s hard to keep source material in sync with vectorstores so I just delete the whole thing and start afresh.

I have a few articles dotted around the forum discussing similar use-cases for this node if you want to learn more, check out my post history.

My goal was indeed testing out how effective / efficient managing source material (replacement, updates , etc) would be … Because till now, also I’ve been deleting the whole index, every time I’d like to change it … Which does not feel very efficient…

1 Like

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