Zum Inhalt springen
Agentic Workflowdocs
v0.8.2Kostenlos installieren

knoten / builtin / ai / aidependencies / embeddings

OpenAI Embeddings

Turn text into OpenAI embeddings for knowledge bases.

KI ErweiterungWeb-App

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Turn text into vectors with OpenAI’s embedding models, so a knowledge base can find passages by meaning.

OpenAI Embeddings plugs into the Embeddings slot of a Local Knowledge node. It does not run on its own and has no output. When the knowledge base is filled or searched, the text is sent to OpenAI with your key and comes back as vectors (lists of numbers that capture meaning).

A knowledge base remembers the embedding model it was built with and always uses it. So this node decides the model when a new, empty knowledge base is first filled. After that, connect the same node to search it, or leave the slot empty.

Your passages and questions are sent to OpenAI. For text that must stay on your device, use Local Embeddings.

  • A knowledge base of large or many documents where you want good search quality.
  • You already use OpenAI and want one account for everything.

Most knowledge bases work well with the free, on-device Local Embeddings, which is the default.

EinstellungTypWas es bewirkt
Model (erforderlich)TextThe model to use.
Authentication (erforderlich)CredentialUse a Bearer Token.

Type the Model id as OpenAI names it, for example text-embedding-3-small (cheaper) or text-embedding-3-large. Don’t change it on a knowledge base that already has content: vectors from different models can’t be compared.

This node has no output port. It plugs into a slot on another node instead of passing items along.

The vectors go to the knowledge base, not to the next node.

In Authentication, save your OpenAI API key. Create it on the API keys page of the OpenAI platform (platform.openai.com/api-keys). See Create a credential.

  1. A Context Menu trigger on the page.
  2. Get All Text with Output field name pageText.
  3. Indexer with Input {{ $input.pageText }}, a Recursive Character Text Splitter in its Text Splitter slot, and a Local Knowledge pointing to a new knowledge base in its Knowledge slot.
  4. OpenAI Embeddings in the Local Knowledge’s Embeddings slot, Model text-embedding-3-small.

Later, a RAG Agent answers questions from that knowledge base.

  • “Model parameter is required and cannot be empty”. Fill in Model.
  • “… was built with … embeddings. Connect that embeddings node to use it.” The knowledge base was built with this cloud model. Connect OpenAI Embeddings with the same Model to its Local Knowledge.
  • A “Model mismatch” warning in the run log. The knowledge base was built with another model, so this node was ignored. Disconnect it, or re-embed the knowledge base with this model from its settings.
  • A 401 or 429 error. The key is wrong, or your OpenAI account has no credit or hit its rate limit.
Seite bearbeiten

Zuletzt aktualisiert:

Was this page useful?
Aria zu OpenAI Embeddings fragen