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.