Skip to main content

Module embed

Module embed 

Source
Expand description

Local embedding backend.

Compiled only with the semantic feature. Without it, this module exposes a single create that reports the feature is absent, so the caller degrades to lexical retrieval with a clear notice. With it, create initializes a fastembed model (downloaded once into the data-dir model cache) and wraps it as an Embedder.

Constants§

MODEL_ID
Stable identifier of the embedding model, recorded next to each vector so a model change invalidates the vector segment.

Functions§

create
Stub when the semantic feature is disabled — always reports unavailability.