Pinecone embeddings and n8n RAG workflow: model selection and document-schema errors

I’m building a RAG workflow in n8n. Document preprocessing and the rest of the workflow work, but I’m stuck on embeddings with Pinecone.

Pinecone only shows Microsoft and NVIDIA embedding models in the options I can access; I can’t find an OpenAI/ChatGPT embedding model. I tried NVIDIA, but the embedding model selection does not appear in the n8n workflow and I keep getting errors. When I use OpenAI text-embedding-3-small, the Pinecone node returns this error: “This index has a document schema, so writes must go through the documents API. Use POST /namespaces/{namespace}/documents/upsert, /update or /delete with the X-Pinecone-API-Version header set to 2026-07 or later. The vectors and records write endpoints do not support document schemas.” This happens on the Pinecone node; the ChatGPT node works.

I found a related confirmed report about the document-schema API issue: Pinecone Vector Store node fails on indexes with the new document schema

How should I select a compatible embedding model in the n8n Pinecone workflow, and can the Pinecone node write to a document-schema index?

Hi Aditya — you are actually hitting two separate problems, and fixing only one will still leave the other broken. I have run into both in client RAG builds, so here is how I separate them.

1. The model list is not where you think it is

The Microsoft/NVIDIA list you are seeing is Pinecone’s integrated inference list, not n8n’s embedding-model list. Do not try to pick OpenAI there.

In n8n, use a separate Embeddings OpenAI node and connect it to the Pinecone Vector Store node as its embedding model. Set text-embedding-3-small there, with your OpenAI credential. The Pinecone node then only stores and retrieves vectors; it is not the place to choose the embedding provider.

That also explains the NVIDIA confusion: a model that is available in Pinecone’s console does not automatically become a usable n8n Embeddings node.

2. The dimension must match the index, exactly

text-embedding-3-small produces 1536 dimensions by default. Your index must be created with exactly that dimension, and I normally use cosine similarity for text retrieval.

If the index was created for a different model, changing the model in n8n alone will not fix it. You need a new index and a full re-embed with the new model. Never mix embedding models in the same index — at best you get a dimension error, at worst silently poor retrieval.

Use the same Embeddings OpenAI node and the same model for both inserting documents and for the query in the AI Agent. That is the most common source of “it worked in the chat node but not in retrieval” problems.

3. Short answer on a document-schema index: no, the current Pinecone node cannot write to it

Your reading of the error is correct, and the related report you linked confirms it: the Pinecone Vector Store node still uses the legacy vectors/records endpoints, while a document-schema index requires the documents API.

So, for now, I would do one of these:

Fastest reliable path: Create a new serverless Pinecone index without a document schema, with 1536 dimensions and cosine metric, and use it with the Pinecone Vector Store node plus the Embeddings OpenAI node for both insert and retrieve.

If you must keep the document-schema index: Bypass the Pinecone node for that index and use an HTTP Request node against the documents API, as the error message says — POST /namespaces/{namespace}/documents/upsert with the X-Pinecone-API-Version: 2026-07 header. Send your chunk text and metadata as a document record, not as a raw vector. For retrieval, use the documents search endpoint in the same way, then use a Code node to normalize the results back to the pageContent and metadata shape your agent expects. Do not expect the HTTP node to behave like a Vector Store tool without that normalization step.

My recommended order

  1. Create a classic, non-document-schema index: 1536 dimensions, cosine.
  2. Add an Embeddings OpenAI node with text-embedding-3-small.
  3. Connect that embedding model to the Pinecone Vector Store node.
  4. Insert 2–3 test documents, then query with the same model before you bulk-load everything.
  5. Only move to the documents API route if you specifically need the document-schema features, and treat it as a custom integration until the Pinecone node is updated.

That setup should unblock your RAG workflow without having to change your preprocessing work.

The embedding model isn’t the problem here; the index type is.

You created your index with a document schema (Pinecone’s newer integrated setup). Those indexes only accept writes through the documents API, but the n8n Pinecone Vector Store node still writes through the old vectors endpoint. That’s exactly what the error is telling you.

Fix:

  1. In Pinecone, create a new index without a document schema (the “bring your own vectors” type).
  2. Dimension: 1536 (matches text-embedding-3-small). Metric: cosine.
  3. Point your n8n Pinecone node at the new index and keep OpenAI text-embedding-3-small as the embeddings sub-node.

The Microsoft and NVIDIA models you saw are Pinecone’s hosted embedding options. You don’t need them, since n8n is generating the embeddings with OpenAI before sending them to Pinecone.

This is also a confirmed bug: [link the “Pinecone Vector Store node fails on indexes with the new document schema” thread here]. Worth following if you’d rather keep the document-schema index once it’s fixed.

Let me know if the new index works.

Hi @Aditya_Ujjwal,the index-type fix above is the answer to your error. Two things that tend to bite right after it works:

    1. Re-runs can duplicate chunks. n8n’s vector store insert usually generates its own IDs (check your version), so loading the same file twice stores every chunk twice, and retrieval returns near-identical results. Put the file name or a document ID in each chunk’s metadata, and delete that document’s old chunks (by metadata filter or a per-document namespace, where your index supports it) before re-inserting. Deterministic IDs, so an upsert overwrites, work too.
    2. A small test set. Keep 10 to 20 real questions, each with the document you expect it to come from. After any change (embedding model, chunk size, index), run them and check that the right chunk comes back before you bulk-load everything.

Full disclosure: I’m affiliated with Pond AI, where we build custom AI agents and workflows, including RAG knowledge bases. Pond AI offers a free architecture plan you can keep even if you build it yourself or hire someone else, plus a 7-day refund if you work with us. I’ve put the structure into one diagram (attached).

What kind of documents are you loading, and roughly how many?

Hey @Aditya_Ujjwal . The fix others pointed you to is right, and here’s the why in one line so it sticks: that “writes must use the documents API” error is Pinecone telling you you’re straddling two incompatible designs. Pick one and commit.

Path A — a classic index where you own the embeddings. Use a separate embedding node (e.g. OpenAI text-embedding-3-small, 1536 dims, cosine), the Pinecone node upserts fine, and at query time you embed the question with the exact same model. Full control, and you can migrate later.

Path B — keep the document-schema index and let Pinecone embed server-side with its hosted model. Then n8n’s native Pinecone node can’t write it (that’s your error) — you drive upserts and search over the documents API with an HTTP Request node, pinning X-Pinecone-API-Version: 2026-07, and you don’t use an external embedding node at all. Less to maintain, but you’re locked to Pinecone’s model list.

On choosing the embedding model: that Microsoft/NVIDIA dropdown is Pinecone’s inference list (Path B), not something your n8n OpenAI node reads — which is exactly why mixing them threw the error.

Four things that’ll bite later, whichever path you take:

- Give each chunk a stable ID like docID#chunkNo so re-syncs upsert in place instead of duplicating.

- One namespace per source document, so you can delete/re-ingest cleanly and filter retrieval.

- Keep per-vector metadata under ~40KB or writes get rejected on big chunks.

- Before bulk-loading, sanity-check with 3–5 questions you already know the answers to — cheap way to catch a bad chunk size or dimension mismatch early.

The diagram above lays it out end to end: your docs get chunked and cleaned once, then the flow forks into the two paths — Path A (classic index + your own OpenAI embeddings) along the top, Path B (document-schema index + Pinecone’s server-side embeddings over the documents API) below it. The amber strip at the bottom is the four guardrails — stable chunk IDs, per-source namespaces, the ~40KB metadata cap, and the golden-question check — that apply no matter which path you choose. It’s yours to keep.

Full disclosure, I am affiliated with Pond AI. We build, run and maintain custom AI agents, and RAG pipelines in n8n are our daily bread. Happy to map your exact setup (index type, doc volume, update cadence) into a free architecture blueprint you keep regardless. If you ever hand a build to us, there’s a 7-day refund cover.

Which route fits you better — a fresh classic index you fully control, or staying on the document-schema one you’ve already set up?

Hey @Aditya_Ujjwal, glad the index-type fix got you unstuck. Since the write path is sorted now, I want to flag the part that quietly decides whether this RAG actually feels good to use: what comes back when you query it.

The first lever is how you cut the documents up. If chunks are too large, each one carries several ideas and the embedding blurs them together, so retrieval pulls a chunk that’s only sort of about the question. Too small and you slice sentences away from the context that made them mean anything. A sane starting point for most prose is around 500 to 800 tokens per chunk with a little overlap, maybe 10 to 15 percent, so a thought that straddles a boundary still lands whole in at least one chunk. Then adjust based on what your documents actually look like.

The second is knowing when the answer simply isn’t in there. By default the retriever always hands back its closest matches, even when nothing in the index really addresses the question, and the agent will happily turn that near-miss into a confident wrong answer. Read the similarity scores and set a floor: below it, treat it as “no relevant context found” and let the agent say so instead of inventing. That one guardrail kills most of the hallucinations people end up blaming on the model.

The third is to stop making the index do work a filter can do. If your chunks carry metadata like source, section, or date, filter on that at query time so you’re only ranking within the slice that could possibly contain the answer, then let similarity sort what’s left. It’s faster and noticeably more accurate than searching the whole space every time. If you’re pulling back a lot of candidates, a small rerank pass over the top handful tightens it further.

Quick disclosure so it’s on the table: I am affiliated with Pond AI. In plain terms we build, run and maintain custom AI agents for people, retrieval systems like this included. If it’s useful, we will be happy to sketch how we would tune the retrieval side for your specific documents and send it over as a plan that’s yours to keep, whether you build it yourself, hand it to a freelancer, or never message us again. Money only comes in if you decide to build it with us, and even then there’s a 7-days refund cover, so there’s nothing riding on finding out.

Out of curiosity, what do the real questions people will throw at this look like, short keyword lookups or longer “walk me through how X works” ones? That genuinely changes how I’d chunk and tune retrieval for you.

@Aditya_Ujjwal , one angle worth getting ahead of now rather than after launch: what happens to this index over time, once the first bulk load is done.

Start with the load itself. Embedding a full document set means a burst of OpenAI embedding calls, and at volume you’ll hit rate limits mid-run and end up with a half-populated index that’s hard to reason about. Batch the texts per request instead of one call per chunk, add a retry with backoff on 429s, and checkpoint progress so an interrupted load resumes instead of starting over or double-writing. Treat the initial ingest as a job that can fail and restart cleanly.

Then freshness. Source documents change, and a RAG that silently serves last month’s version is worse than no RAG, because people trust it. Hash each source document on ingest and store that hash in the chunk metadata. On a scheduled re-sync, only re-embed the documents whose hash changed, which also keeps the embedding bill down. The part people forget is deletions: when a source document is removed, its chunks have to be purged from the index too, or retrieval keeps surfacing content that no longer exists. Make deletion propagate, not just inserts and updates.

Last, treat the index as disposable. Your vectors are derived data, not the source of truth. The real assets are the original documents and the chunking-plus-embedding settings that produced them. Keep those two things somewhere durable and you can rebuild the whole index on demand, which you will need the day you switch embedding models or change chunk size, since that always forces a full re-embed into a fresh index. If the index is the only place your knowledge lives, you’re one bad sync away from a bad day.

On the disclosure front: II’m affiliated with Pond AI. Plainly, we build, run and maintain custom AI agents, RAG systems among them. If you want it, we’ll lay out the production side above as a one-page architecture you own outright, run it in-house, pass it to any developer, entirely your call, no strings attached. If you ever choose to build it with us, there is a 7-days refund cover.

How often does the underlying content actually change for you, is this more of a load-it-once reference base, or something you’ll be re-syncing regularly as documents get updated?

Hey @Aditya_Ujjwal ,

To answer your question directly, the current n8n Pinecone Vector Store node cannot write to document schema indexes. n8n relies on LangChain under the hood, which still calls the legacy vectors upsert endpoint. Pinecone blocks that endpoint on any index created with the new document schema.

If the Pinecone console is not showing you the classic index toggle or keeps defaulting to integrated inference, you can bypass the web interface and create a true classic vector index directly inside n8n with a single HTTP Request node:

  • Method: POST

  • URL: [https://api.pinecone.io/indexes](https://api.pinecone.io/indexes)

  • Headers:

    • Api-Key: YOUR_PINECONE_KEY

    • X-Pinecone-Api-Version: 2026-04

    • Content-Type: application/json

Pass this JSON in the body:

gemini-code-1793171338829.json (170 Bytes)

Pinning the 2026-04 API version forces Pinecone to spin up a classic index. Once created, n8n’s native Pinecone Vector Store node paired with the Embeddings OpenAI sub-node (set to text-embedding-3-small and dimension 1536) will write to it without schema errors.

One critical production tip once you start ingesting files:

The default n8n document loaders generate random UUIDs for every text chunk. If you re-run your ingestion workflow to update a file, Pinecone will treat them as new vectors instead of overwriting the old ones. That quickly bloats your index and poisons your retrieval context with duplicate chunks.

To prevent this, place a simple Code node right after your text splitter to assign deterministic chunk IDs, such as an MD5 hash of the filename plus the chunk sequence number. That way, re-indexing automatically updates existing vectors instead of duplicating them.

Full disclosure, I am with Pond AI. We build, run, and maintain custom AI agents and enterprise RAG systems across n8n. If you want someone to take care of the entire knowledge base setup, we map out the complete workflow architecture for free so you get a production ready blueprint from day one, and we back all our builds with a 7 day refund guarantee so there is zero risk.

Are you loading static documents like PDFs, or pulling dynamic data continuously from Google Drive or Notion?