Resources · n8n integration

n8n Embeddings Ollama nodeConfigure Embeddings Ollama in n8n.

Embeddings are the layer that lets an AI compare meaning instead of matching words. The n8n Embeddings Ollama node builds them with a model served by Ollama, exposes a single parameter, and plugs into the embeddings port of a root node. Built for anyone assembling retrieval on their own hardware.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does the n8n Embeddings Ollama node do?

The Embeddings Ollama node turns text into embeddings, the numerical vectors an AI uses to place pieces of content close to each other when they mean the same thing. It calls a model served by Ollama to produce those vectors. It is a sub-node, meaning it has no main input of its own and never runs alone: it attaches to the embeddings port of a root node, and that root node decides when it fires.

The first scenario is an internal knowledge base you do not want to send anywhere. A document loader splits your handbook into chunks, this node vectorizes each chunk through the model picked in Model, and a vector store, a database built to hold and search vectors, keeps the result. The three published templates that use this node all follow that shape, starting with the local retrieval chatbot built around Ollama and Qdrant.

The second one is question answering on top of that store. The same node has to run again at query time, because a question can only be compared to your chunks if both were embedded by the same model. Wire it to the store used by an AI Agent, and the agent retrieves passages instead of guessing from its training data.

The third is a workflow split across machines. Retrieval stays local through Ollama while the conversation itself runs on a hosted chat model, the pattern used by the template that pairs this node with an OpenAI chat model. Vectors never leave your infrastructure, only prompts go out.

Pick a different embeddings sub-node when you have no Ollama server to point at. This node only speaks to Ollama, so a provider that bills its own API calls is the alternative to weigh against running and maintaining the model yourself. Our n8n review covers the self-hosting side of that choice, and the n8n training walks through building the store itself.

Two limits are worth knowing before you build. The node exposes one parameter and nothing else, so batch size, timeouts and retries are not yours to tune here. And the model choice is sticky: change it later and every vector already stored was produced with different dimensions, which means reindexing the whole collection.

Connect

What do you set up before the first run?

  1. 01

    Pull the model into Ollama

    The node does not download anything for you. Get the embedding model onto your Ollama server first, from the Ollama models library that the node description points to. Until the model is there, the Model parameter has nothing real behind it and the run fails on the first chunk you try to vectorize.

  2. 02

    Create the Ollama credential in n8n

    This node authenticates against your Ollama server, so it needs a credential. Create it once from the Credentials menu in n8n, following the Ollama credential page in the n8n documentation for the exact values to enter. Once saved, it is reusable: every workflow that touches Ollama points at that same credential instead of redeclaring it.

  3. 03

    Attach the credential and wire the port

    Drop the node on the canvas, select the credential you just created, then choose the model in Model. Last step is the connection itself: drag the ai_embedding output up to the embeddings slot of a root node. A sub-node with no parent stays inert, whatever its credential says.

Connections

Where does this sub-node plug in?

n8n splits AI work between a root node that receives the workflow items and sub-nodes attached to its ports, one type of sub-node per port. This node is a sub-node, so it only has an output.

Output (what it plugs into)

  • Embeddingsai_embedding
01EmbeddingsThis is the port the node offers to a root node that needs text turned into vectors. Drag the connection up to the embeddings slot of the parent, and the parent calls it whenever it has content to index or a query to match. Nothing else on the canvas can reach this node.

This is the port the node offers to a root node that needs text turned into vectors. Drag the connection up to the embeddings slot of the parent, and the parent calls it whenever it has content to index or a query to match. Nothing else on the canvas can reach this node.

Key parameters

  • Required: a sub-node never executes by itself, so an Embeddings Ollama node left unconnected stays inert and no run will ever touch it.
Use cases
connect it to a Qdrant Vector Store in insert mode to build the collection, then to the same store in query mode so retrieval compares vectors made the same way. A Postgres PGVector Store plays that part when Postgres is already in place, with a Default Data Loader feeding the chunks during indexing.
Parameters

Which parameter do you actually set?

The Embeddings Ollama node has one parameter. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.

01

Model

model

What you see in n8n

Notes & use cases

The node has exactly one setting: which Ollama model generates the embedding. The choice decides the shape of every vector you produce, so it is worth making before you index anything.

Key parameters

  • Model: required, picked from a list. all-minilm returns vectors of 384 dimensions, the lighter option. nomic-embed-text returns 768 dimensions.
Use cases
a support archive indexed with all-minilm stays small and quick to search; a knowledge base where wording matters gets more room to work with nomic-embed-text. Models are pulled from the Ollama models library first, otherwise the node has nothing to call.
Need help

Need help automating Embeddings Ollama with n8n?

A person reads every message.

FAQ

Questions people ask next

01Is the Embeddings Ollama node included in n8n?
Yes. It ships inside the n8n AI package, so it is there on n8n Cloud, the hosted offer run by n8n, and on a self-hosted instance under the Community Edition and its Sustainable Use license. Nothing to install, nothing extra to pay on the n8n side. The cost question moves elsewhere: with a model provider you pay for the API calls that provider bills, while here the model runs on the Ollama server you operate, so what you spend is the machine it runs on. Workflows behave the same whether you host n8n yourself with Docker or npm or use n8n Cloud.
02What credentials does the n8n Embeddings Ollama node need?
An Ollama credential, which you create once from the Credentials menu in n8n and then reuse in every workflow that talks to Ollama. The n8n documentation has a dedicated Ollama credential page with the exact values to enter. Two things have to be true besides that credential: the embedding model you select in Model is already pulled onto the server, and a root node is connected to the embeddings port of this node. If nothing is attached to that port, the node sits idle whatever you configured, because a sub-node never executes on its own.
03What are the limits of this node?
It is deliberately narrow. Version 1 of the node exposes a single parameter, Model, with no options collection behind it, so there is no batching control, no timeout and no retry setting to reach from here. It only talks to Ollama, and only offers the models documented for it, all-minilm at 384 dimensions and nomic-embed-text at 768. An older workflow may show an earlier version of the node with fewer options. And it produces vectors only: storing them, splitting the source text and searching the result are jobs for the nodes around it.
04What do you need to connect at minimum, and which node should you start with?
Three things: a reachable Ollama server with an embedding model pulled, the Ollama credential saved in n8n, and a root node with an embeddings port. Start with a vector store as that root node, in insert mode, and a data loader feeding it text. Qdrant Vector Store is the one used by the local retrieval templates, and Postgres PGVector Store fits teams already on Postgres. Once the collection is filled, add the same pairing in query mode behind an AI Agent. Keep the same model on both sides, since vectors made by different models cannot be compared.
05n8n or Make for a local embeddings pipeline?
It depends on where the data has to stay. Make is hosted only and billed per operation, which is fine when your sources are cloud tools anyway. n8n can run on your own Docker or npm install, next to the Ollama server, which is the whole point of embedding locally: the text and the vectors stay inside your network. If you want a hosted setup without servers to maintain, Make and n8n Cloud are closer than people assume. If the reason you chose Ollama is data control, self-hosted n8n is the one that keeps that promise end to end.
Hack'celeration Lab

Get our weekly integration tips.

No spam. Unsubscribe anytime.