Skip to main content

Module embedder

Module embedder 

Source
Expand description

Host-agnostic Embedder trait, joint embedding output, and error helpers.

Structs§

JointEmbeddingOutput
Output container for single-pass joint multi-modal / BGE-M3 embedding.
SparseEmbedder
Local sparse-only helper (no dense model). Default English pipeline only — hosts needing other languages use Bm25TextConfig / Bm25Pipeline directly.

Traits§

Embedder
Host-agnostic embedding backend.
EmbedderBound
Send/Sync bound helper for Embedder implementations on native targets.

Functions§

cross_rerank_unsupported_error
Error when cross-encoder pair rerank is requested without a scorer host.
dense_model_unsupported_error
Error when a dense model is requested that this embedder cannot satisfy.
image_unsupported_error
Error when image embedding is requested but the host has no image path.
multi_unsupported_error
Error when multi-vector embedding is requested but the host has no multi path.
sparse_model_unsupported_error
Error when a sparse model is requested that this embedder cannot satisfy.