Ligantic
Knowledge Base
Tutorials
Updates
Search Articles
Login
Free Sign Up
Home
Get Started
Tutorials
How-to guides
Reference
Explanation
Spaces
Schemas
Flows
Experiences
Endpoints
SDK and CLI
Browse documentation
Home
Get Started
Spaces
Schemas
Flows
Experiences
Endpoints
SDK and CLI
Docs
/

AI - Compute Embedding

Type identifier: ai:llm:computeEmbedding Category: AI Operations

Description

The AI - Compute Embedding node converts text into high-dimensional vector representations (embeddings) that capture semantic meaning. These embeddings can be used for semantic search, similarity comparison, and vector context operations.

Input Handles

Handle

Type

Description

text

string

The text to compute embeddings for.

<label>

varies

Dynamic handles for label values.

Output Handles

Handle

Type

Description

embedding

number[]

The computed embedding vector.

Configuration Options

Option

Type

Default

Description

Labels

string[]

[]

Labels for categorising embeddings.

Behaviour

  1. Receives text input from the input handle
  2. Resolves any label values from dynamic handles
  3. Sends text to embedding model (OpenAI text-embedding-ada-002)
  4. Returns the embedding vector

Embedding Models

Currently supported:

  • OpenAI text-embedding-ada-002: 1536-dimensional vectors
  • Cohere embed-multilingual-v3: 1024-dimensional vectors
  • Cohere embed-english-v3: 1024-dimensional vectors

For the canonical model list, see AI - Model Reference — Compute Embedding Models.

Labels

Labels provide metadata for embeddings stored in vector contexts:

  • Used for filtering in vector queries
  • Each label creates a dynamic input handle for its value

Examples

Basic Embedding

Configuration:

  • Labels: (empty)

Input:

"The quick brown fox jumps over the lazy dog."

Output (embedding):

[0.0023, -0.0089, 0.0145, ...]  // 1536 dimensions

Labelled Embedding for Vector Storage

Configuration:

  • Labels: ["category", "source"]

Dynamic inputs:

  • category: "documentation"
  • source: "user-manual"

Use case: Compute embeddings with metadata for organised vector storage.

Related pages

AI - Vector Context Add
The AI - Vector Context Add node stores text embeddings in a vector context, enabling later semantic search operations. It automatically computes embeddings and indexes them with optional labels for filtering.
Page not found. It may have moved or may not be published.
Browse documentation