Skip to main content

EmbeddingModelHandle

Type Alias EmbeddingModelHandle 

Source
pub type EmbeddingModelHandle = Model<Local<Embedding>, EmbeddingRuntime>;
Expand description

A loaded embedding model: Rig’s local embedding wire over the embedding worker.

Obtained via EmbeddingClient::embedding_model. Call it directly (model.embed_text(..), model.call(texts)), or erase it with .erase() / .into() wherever Rig takes a DynModel<Embedding>, such as EmbeddingsBuilder.

Aliased Type§

pub struct EmbeddingModelHandle {
    pub wire: Local<Embedding>,
    pub transport: EmbeddingRuntime,
}

Fields§

§wire: Local<Embedding>

What to send and how to read the reply.

§transport: EmbeddingRuntime

How the payload travels.