- Home
- Resources
- Integrations
- Vector Store Retriever
n8n Vector Store Retriever nodeConfigure Vector Store Retriever in n8n.
The n8n Vector Store Retriever node turns a vector store into a searchable source for an AI chain. It exposes one parameter, Limit, and one required input port for the store itself. Its output feeds question answering chains, so answers stay anchored in documents.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Vector Store Retriever node actually do?
A vector store keeps mathematical representations of your documents, and a retriever is the piece that reads from it. This node sits between the two: you branch a vector store onto its Vector Store port, it queries that store with whatever question arrives, and it hands back the closest matching documents. It never runs on its own, because it is a sub-node, a helper node that only works once a root node pulls on it.
Start with a support knowledge base. Product PDFs get split, turned into embeddings (numeric fingerprints of each chunk of text) and stored. A Question and Answer Chain asks the retriever for the passages closest to the incoming question, and the chain writes the reply from those passages only. Nothing else changes in the workflow, and the Limit parameter decides how much context the chain reads.
Second scenario, an internal research assistant. A workflow drops meeting notes into a store every week. When somebody queries it, the retriever returns the handful of notes that match, and an AI Agent further down turns them into a short brief. Because the retriever hands back documents rather than prose, the same output works for a summary, a tag, or a routing decision.
Third, a compliance check. A chain compares an incoming request against stored policy text. The retriever pulls the closest clauses, the model quotes them, and a reviewer reads the source alongside the answer. Model calls go through whichever chat model sub-node the chain uses, from OpenAI or Anthropic, and that provider bills its own API calls under its own terms. n8n adds nothing on top.
When to reach for something else: if the root node you are building already talks to a vector store directly, this node adds a hop for nothing. It earns its place when a chain or another retriever expects a retriever on its input, which is exactly what the MultiQuery Retriever and the Contextual Compression Retriever do. Both wrap this node rather than replace it.
Known limits are worth stating plainly. The node reads, it never writes, so loading documents stays the job of the vector store node itself. It carries a single parameter at version 1, which means tuning happens in the store and in the chain around it, not here. For a broader look at where this fits in the platform, the n8n review covers the AI side in context.
What do you plug into this node?
n8n draws AI workflows as a root node with sub-nodes hanging off its ports, one type of sub-node per port. This node is a sub-node itself: it takes a store on one side and offers a retriever on the other.
Ports (what plugs in)
- Vector Store
ai_vectorStorerequired
Output (what it plugs into)
- Retriever
ai_retriever
01Vector Store
This port receives the store the node reads from. Drag a vector store sub-node onto it and the retriever queries that store every time a root node calls it.
Key parameters
- Required: leave this port empty and the node blocks the run, because there is nothing to search.
02Retriever
The output side. This node presents itself as a retriever, and root nodes that accept one pull the documents from it when they need context.
Key parameters
- Optional: nothing runs until a root node connects here, since a sub-node never executes alone.
- Question and Answer Chain: the shortest path, it asks a question and writes an answer from what comes back.
- MultiQuery Retriever: rewrites one question into several before searching, then merges the results.
- Contextual Compression Retriever: trims the returned documents down to the parts that matter for the question.
Which parameter is worth your attention?
The Vector Store Retriever node has one parameter. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Limit
topKWhat you see in n8n
Notes & use cases
Limit sets the maximum number of results the node returns on each search. The store ranks matches by closeness, and this number decides how far down that ranking the node reads before it stops.
Key parameters
- Limit: a number, the maximum number of results to return. A value coming from an earlier node goes in as an expression, the n8n syntax for reading a field, written
{{ $json.limit }}.
Need help automating Vector Store Retriever with n8n?
A person reads every message.
Vector Store Retriever and n8n, the usual questions
01Is the Vector Store Retriever node free in n8n?
02What do you need to authenticate to use it?
03What are the limits of the n8n Vector Store Retriever node?
04What is the minimum you have to connect, and where should you start?
05n8n or Make for a retrieval workflow?
Get our weekly integration tips.
No spam. Unsubscribe anytime.
