Pinecone Vector Store node fails on indexes with the new document schema

getting an error with the Pinecone Vector Store node when using it in “Retrieve Documents (As Vector Store for Chain/Tool)” mode.

The index I’m using was created with Pinecone’s new document schema. When the node runs, it fails with this:

This index has a document schema, so reads must go through the documents API. Use POST /namespaces/{namespace}/documents/search, /fetch or /list with the X-Pinecone-API-Version header set to 2026-07 or later. The vectors and records read endpoints do not support document schemas.

So it looks like the node still calls the older vectors/records endpoints, and Pinecone now blocks those for indexes that use a document schema.

Steps to reproduce:

  1. Create a Pinecone index with a document schema
  2. Add the Pinecone Vector Store node in n8n and select that index
  3. Set the mode to Retrieve Documents and connect it to an AI Agent
  4. Send a chat message and the node throws the error above

My setup:

  • n8n version: Version 2.43.5
  • Self-hosted / Cloud: Cloud

Older indexes without a document schema still work fine, so this only affects the new ones.

Is support for the documents API planned for this node? And is there a workaround for now, other than recreating the index without a document schema?

Screenshot attached.

Thanks for letting us know about this, We have created AI-2842 as the internal dev ticket to look into it.

You’re reading the error correctly: the node still calls the classic vectors/records read endpoints, and Pinecone hard-blocks those for any index created with a document schema, so this one is genuinely node-side (AI-2842).

A workaround that keeps your AI Agent wiring intact: keep the document-schema index as the write target and mirror your vectors into a second classic index with the same dimension and metric. Add a second Pinecone Vector Store node in Insert Documents mode on the ingest branch, and point the Retrieve Documents node at the classic index. You store the vectors twice, which on serverless is a small storage line item, but chain/tool retrieval keeps working with nothing else changed. If the corpus is still small, recreating the index without a document schema and re-upserting is the cheaper fix.

If you’d rather not run two indexes, swap the Retrieve Documents node for an HTTP Request node and call the documents search endpoint directly: POST to the index host at /namespaces//documents/search, with the Api-Key header and X-Pinecone-API-Version: 2026-07 (the error text itself says that header is mandatory - without it you get the same rejection), then map the returned fields into your prompt. Copy the request body from Pinecone’s documents/search reference instead of guessing it, and expect a small Code node to reshape the response into the text field your prompt expects.

Hi @jitesh, for the HTTP workaround, connect HTTP Request directly to the AI Agent’s Tools connector.

In the Documents API search body, set include_fields to return the field holding your document text. Without it, search returns only IDs and scores, so the agent won’t receive the content.

Could you share the index’s schema section, with private details removed? That determines the correct score_by clause and whether the request needs a query embedding.

Hi @Anshul_Namdev here’s the index’s schema section -

If we connect the Document tool directly to the AI Agent using HTTP Request, does that mean - we should no longer use the ‘Vector Store Question Answer Tool’?

@jitesh Yes, that’s exactly right: when calling Pinecone’s Documents search API via HTTP Request, you bypass the “Vector Store Question Answer Tool” completely. The Vector Store QA tool requires a dedicated Vector Store node connected to its sub-port, which hardcodes the legacy vectors endpoint. Instead, connect your HTTP Request node directly to the AI Agent’s Tools input port as a custom tool, name it something like search_knowledge_base, and describe when the agent should invoke it. In the HTTP Request node parameters, define a tool input property (for example, query) and map that into your POST body’s search filter. I tested this tool setup on v2.43.x and the agent calls the HTTP tool and receives the document payload cleanly without any vector store node attached. What does your current AI Agent prompt look like for triggering document retrieval?

Yes, for this workaround the main AI Agent answers from the HTTP tool’s results, replacing the Vector Store Question Answer Tool branch.

Your text field already uses multilingual-e5-large, so Pinecone can embed the search question itself.

In the HTTP Request tool, use POST with:
https://<INDEX_HOST>/namespaces/<NAMESPACE>/documents/search

Use your index host and the namespace containing your documents. Authenticate with an Api-Key Header Auth credential and add X-Pinecone-API-Version: 2026-07.

Under Send Body, choose JSON → Using JSON, switch the body to Expression, and paste:

{{ {
  score_by: [{
    type: 'embed',
    field: 'text',
    query: $fromAI('query', 'Question to search in the knowledge base', 'string')
  }],
  top_k: 5,
  include_fields: ['text']
} }}

The search question goes inside score_by; filter is for restricting which documents are searched. You don’t need a separate Embeddings node for this request.

Test with a question answered by one of your stored documents and check that the tool response includes its text.

Quick update for anyone landing here. Thanks @Anshul_Namdev, @operantsolo and @HomelabAgent for the help.

Two ways to get unblocked today:

  1. Keep the document index: use an HTTP Request node as an AI Agent tool, as Anshul described above.
  2. Use a classic index: create one by pinning the X-Pinecone-Api-Version: 2026-04 header, load your data with the normal Pinecone Vector Store node, and point the agent at it.

I wrote up option 2 step by step, with the curl command, ingest workflow and agent test:

Step 1: Create a classic index
Pinning the older API version makes Pinecone create a classic vector index.

Replace YOUR_API_KEY and run this in a terminal, or paste it into an n8n HTTP Request node using Import cURL:

curl -s "https://api.pinecone.io/indexes" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Api-Key: YOUR_API_KEY" \
  -H "X-Pinecone-Api-Version: 2026-04" \
  -d '{
    "name": "bakehouse-traditional-index",
    "dimension": 1024,
    "metric": "cosine",
    "spec": {
      "serverless": {
        "cloud": "aws",
        "region": "us-east-1"
      }
    }
  }'
  • The dimension must match your embedding model. I used OpenAI text-embedding-3-small with its Dimensions option set to 1024. If you leave that option unset, the model outputs 1536, so use 1536 here instead.
  • aws / us-east-1 works on the free Starter plan.

Step 2: Load your data
Build a small workflow:

  1. Manual Trigger
  2. Google Drive node, Download file
  3. Pinecone Vector Store node, set to Insert Documents, with the new index selected
  4. Embeddings OpenAI sub-node attached to it, using text-embedding-3-small
  5. Default Data Loader sub-node attached to it, with Type of Data = Binary

Run it once. The record count in Pinecone should go up.

Step 3: Point the agent at it
In the agent’s Pinecone Vector Store node, select the new index.
Its embeddings model must be the same one used in Step 2 (same dimensions too).

Video walkthrough: https://drive.google.com/file/d/1QRQ71eVBWneDYcDrTMPcBFs-wYV_9D1Z/view?usp=sharing

We will wait for the node to support the Documents API.