Skip to main content

Module embedding_access

Module embedding_access 

Source
Expand description

Policy-gated access to the shared embedding engine. Moved down from tools/ctx_knowledge/embeddings.rs so engine callers (entropy, extractive, telemetry) do not depend on the tools layer.

Functions§

embedding_engine
embedding_engine_nonblocking
Non-blocking: returns engine only if already loaded. Never blocks the calling path — but kicks off a one-time background load/download (#551) so the first semantic need self-activates the engine for later calls.
embeddings_auto_download_allowed
Auto-download policy (#551): the env var, when set, wins in either direction; otherwise [embedding].auto_download from config; otherwise allowed — the soft default that lights up the semantic features (semantic recall, EFF-7 redundancy filtering) without manual setup.
engine_status_line
Engine status for diagnostics (#551): one honest word + reason.