Embed
Embed turns text chunks into embedding vectors through a provider’s embedding API. It reads the chunk list from Split Text or Contextualize Chunks (a plain text output works too and is embedded as one chunk) and hands the embedded chunks to Knowledge Base Insert. You find it on the node picker’s AI shelf.
Ingest: Read a File as Text → Split Text → Contextualize Chunks (optional) → Embed → Knowledge Base InsertRead back: Knowledge Base Query (search) or Read Knowledge Base (read whole)The node has one input handle and one output handle. It calls a paid embedding API: pick a secret or a connection for the provider, or leave the credential empty when the provider’s key is already configured for the workspace or the server.
Reuse instead of re-paying
Section titled “Reuse instead of re-paying”Set reuseFromCollectionId to the knowledge base the chunks are headed for, and any chunk whose text is byte-identical to one already stored there reuses the stored vector instead of calling the API. Reuse changes cost, never output: identical text yields an identical vector either way. It only engages when the knowledge base was embedded with this node’s provider and model, because vectors from different models are not comparable. On a scheduled ingest this is the difference between paying for the whole corpus every run and paying only for what changed.
All chunks that do need embedding go to the provider in batches, and two identical chunks in one run become a single API input.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Provider (provider) | one of openai, anthropic, gemini, ollama, mistral, groq, xai, voyageai, openrouter, typesafe, eleven, openai-compatible, soniox ✦ (required) |
— | The AI provider used to generate the embedding vectors. |
Model (model) | string ✦ (optional) | text-embedding-3-small |
The embedding model to use, e.g. text-embedding-3-small. |
Credential (credential) | string ✦ (optional) | — | The API key for the embedding provider, picked from your secrets. Leave empty only if this provider’s key is already configured on the server; otherwise add a secret and select it here. |
Reuse from knowledge base (reuseFromCollectionId) | string ✦ (optional) | — | Optional. The knowledge base these embeddings are headed for. Set it, and a chunk whose text is unchanged since the last run reuses the embedding already stored there instead of paying to generate it again — the saving is the whole of an unchanged source and the untouched parts of an edited one. |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
Output
Section titled “Output”{ "chunks": [ { "text": "First chunk...", "embedding": [0.0132, -0.0244], "metadata": { "title": "Employee handbook" }, "index": 0 } ], "provider": "openai", "model": "text-embedding-3-small", "secretId": null, "embedded": 1, "reused": 0}provider and model travel with the chunks so that Knowledge Base Insert can record them on the knowledge base and refuse vectors that disagree with what is already stored. secretId is only ever a secret store id, never key material. embedded and reused report how many chunks were paid for against how many were served from the reuse knowledge base.
Example
Section titled “Example”The template Rag / Embed under Automation → Templates embeds one injected sentence with text-embedding-3-small on OpenAI, using a secret for the API key. The dimension of the chosen model must match the target knowledge base: text-embedding-3-small produces 1536-dimension vectors, the default for a new knowledge base.
Limitations
Section titled “Limitations”- A model whose vector dimension differs from the target knowledge base does not fail here; it fails at Knowledge Base Insert, before anything is written.
- Reuse silently stays off when the reuse knowledge base was embedded with a different provider or model, or has no recorded embedding provenance yet; every chunk is then embedded fresh.
Related
Section titled “Related”- Knowledge Base Insert is the next step in the ingest pipeline.
- Knowledge Base Query embeds a question with the knowledge base’s own model at answer time.
- Knowledge bases explains the dimensions a knowledge base is fixed at, which the model you pick here has to match.
- How to choose between searching and reading covers how agents use what you ingest.