Skip to main content

Module embeddings

Module embeddings 

Source

Modules§

cohere
failover
Local embedding primary/backup failover.
fastembed
openai
swappable
Hot-swappable embedding backend handle.
voyage

Structs§

BackendProvenance
Instance provenance for status surfaces. Deliberately NOT part of EmbeddingFingerprint: an instance change is not a space change, so the KB space guard must never compare these fields.
EmbeddingBatch
Vectors and accounting returned by one pinned embedding backend.
EmbeddingConfig
Configuration for the embedding backend.
EmbeddingTokenUsage
Provider-reported counters. None is unavailable; Some(0) is measured zero. Counters are independent: a missing total is never inferred from the prompt.
UnavailableEmbeddingBackend
Non-fatal placeholder used when an optional embedding implementation is not compiled into the current UAR profile. Chat, tools, AG-UI and A2UI must remain available; an operation that actually requires embeddings receives the original, actionable backend error at that boundary.

Enums§

EmbeddingError
Errors that can occur when embedding texts.

Traits§

EmbeddingBackend
Unified embedding backend for RAG and skill matching.

Functions§

build_backend
Factory that builds the configured backend from EmbeddingConfig.
build_local_backend
Build the local backend for a failover member under the supplied trusted host scope. This deliberately has no hosted-provider branch.