- Home
- Resources
- Integrations
- MultiQuery Retriever
n8n MultiQuery Retriever nodeConfigure MultiQuery Retriever in n8n.
A single question rarely matches the wording stored in your documents. The n8n MultiQuery Retriever node hands that question to a chat model, gets several rewrites back, and runs each one through the retriever plugged underneath. One option, 2 required ports, nothing to authenticate.
Verified Trustpilot reviews · AI, automation & growth agency
Why add the n8n MultiQuery Retriever node to a search workflow?
The MultiQuery Retriever sits between a question and the place your documents live. Instead of searching once with the exact words someone typed, it asks a chat model (the sub-node that talks to a provider like OpenAI or Anthropic) to write several versions of that question, sends each one to the retriever below it, and gives back the pooled documents. It is a sub-node, so it never runs on its own: a root node such as Question and Answer Chain pulls it.
Take a support knowledge base. Someone asks about "the invoice never arrived". The stored article talks about failed billing emails and delivery bounces. A plain search on the typed words can miss it; three rewrites of the same intent usually catch it. That is the whole point of this node, and it costs you one parameter to set.
Second scenario, an internal documentation search glued to a chat interface. Questions arrive short and half typed. Raising Query Count widens the net without touching the vector store or the documents themselves, because the rewriting happens upstream, in the chat model on the ai_languageModel port.
Third, a research step feeding a report. The retriever you connect stays the same, so the same pool of documents can serve a AI Agent answering live and a scheduled workflow writing a digest into Google Sheets or posting it to Slack. Only the root node changes.
When to skip it: if answers already land on the right passage, plug the retriever straight into the root node. Every rewrite is an extra call to the model provider, and providers bill their own API calls under their own terms. On a small, well worded corpus that spend buys little. There is also no reranking here: the node widens the pool, it does not reorder it. For that, Contextual Compression Retriever accepts this node as its input.
Limits worth knowing before you build. The node exposes a single option, so the rewriting prompt itself is not editable from the panel. Both ports are required, which means an empty one stops the execution. And the page describes version 1 of the node; an older workflow may show fewer options. Model choice matters more than anything you configure here, whether you go with OpenAI or Anthropic.
What do you plug into the MultiQuery Retriever ?
In n8n, a root node receives the workflow items and sub-nodes hang off its ports, one type of sub-node per port; this node is itself a sub-node with two ports of its own.
Ports (what plugs in)
- Chat Model
ai_languageModelrequired - Retriever
ai_retrieverrequired
Output (what it plugs into)
- Retriever
ai_retriever
01Chat Model
This port holds the model that rewrites the incoming question into several search queries. No model, no rewriting, and the node has nothing to send to the retriever.
Key parameters
- Required: leave it empty and the execution stops on this node.
- OpenAI Chat Model and Anthropic Chat Model: the usual starting points, each carrying its own provider credential.
- Ollama Chat Model: for a model running on your own machine, when the questions should not leave the network.
02Retriever
Below this port sits the thing that actually fetches documents. Each rewritten query goes through it, and the node merges what comes back into one pool.
Key parameters
- Required: the node has nothing to query without it.
- Vector Store Retriever: the common choice, reading from the store where your embedded documents live.
- Workflow Retriever: when the documents come from another n8n workflow rather than a store.
Which parameters does the node expose?
The MultiQuery 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
Options
optionsWhat you see in n8n
Notes & use cases
Everything configurable on this node lives behind one collection, opened with Add Option. Left untouched, the node still works: it rewrites and merges with its built-in behavior.
Key parameters
- Query Count: how many different versions of the question the chat model generates. More versions widen the document pool and add one model call each.
Need help automating MultiQuery Retriever with n8n?
A person reads every message.
MultiQuery Retriever in n8n, answered
01Is the MultiQuery Retriever node included in n8n?
02What credentials does the MultiQuery Retriever need?
03What are the limits of the n8n MultiQuery Retriever node?
04What do you have to connect for it to run?
05n8n or Make for this kind of retrieval?
Get our weekly integration tips.
No spam. Unsubscribe anytime.


