Skip to main content

Module embedder

Module embedder 

Source
Expand description

Local embedding generation backed by fastembed. fastembed wrapper and per-process embedding cache.

Owns the in-process TextEmbedding model and exposes batch encode/query helpers used by remember, recall, and related commands.

Functionsยง

controlled_batch_count
embed_passage
embed_passages_batch
embed_passages_controlled
embed_passages_serial
Embed multiple passages serially.
embed_query
f32_to_bytes
Convert &f32 to &u8 for sqlite-vec storage.
get_embedder
Returns the process-wide singleton embedder, initializing it on first call. Subsequent calls return the cached instance regardless of models_dir.