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.
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…