Jido.AI.Directive.LLMEmbed (Jido AI v2.2.0)

Copy Markdown View Source

Directive asking the runtime to generate embeddings via ReqLLM.

Uses ReqLLM.Embedding.embed/3 for embedding generation. The runtime will execute this asynchronously and send the result as a ai.embed.result signal.

Supports both single text and batch embedding (list of texts).

Summary

Functions

Create a new LLMEmbed directive.

Types

t()

@type t() :: %Jido.AI.Directive.LLMEmbed{
  dimensions: nil | integer(),
  id: binary(),
  metadata: map(),
  model: binary(),
  texts: any(),
  timeout: nil | integer()
}

Functions

new!(attrs)

Create a new LLMEmbed directive.