How can I retrieve the vector ID after inserting a document via the Pinecone n8n node?

Hey everyone,

I’m using the Pinecone integration in n8n to insert documents into a Pinecone index. The node works for upserting documents, but I can’t seem to retrieve the vector ID after the insertion. The node only returns the metadata and pageContent fields, but I need to track the vector ID for future reference.

Is there any way to get the vector ID after the upsert? Or is there a workaround for this?

Any help would be appreciated!

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:

anyone facing the same issue?

This isn’t a direct answer to your question, but in case no one else has the answer you can do the insert through a direct HTTP Request like this:


And setting the JSON body to your insert query

1 Like

Hi @JayF,

thanks for the suggestion. I am already using the direct HTTP request approach. I was just wondering if I might be missing something with the Pinecone node.

It seems to me that it would be very beneficial to have this feature natively built into the node, as this is a common use case and would greatly streamline the process.

1 Like

For sure. You can also make a feature request and I will vote on it.
Cheers

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