Skip to main content

Module embedder

Module embedder 

Source
Expand description

Embedder — text-to-vector abstraction and implementations.

Supports local (fastembed) and remote (Gemini 2.0) embedding generation.

Structs§

Gemini2Embedder
Remote embedder using Google Gemini Embedding 2 API.
LocalEmbedder
Local embedder using fastembed-rs. Currently only uses the text parts of multimodal input.

Enums§

EmbedError

Constants§

GEMINI_EMBED_MODEL
GEMINI_EMBED_PROVIDER
LOCAL_EMBED_MODEL
LOCAL_EMBED_PROVIDER

Traits§

Embedder
Core trait for generating multimodal embeddings.

Functions§

to_vector32_json
Helper to serialize a Vec<f32> to a JSON array string for Turso vector32.