Skip to main content

Module model

Module model 

Source
Expand description

Where vector recall’s model and indexes live and whether they are there, without loading either: what the hooks check before a query, and what borg doctor reads (doctor.rs). No dependency on lessons or the engine.

Constants§

MANIFEST
Beside the SeekStorm files: which model the vectors come from and which lesson versions they hold.
MODEL_FILES
The files --fetch downloads, with their sha256 at MODEL_REVISION.
MODEL_REPO
The Hugging Face repository of the default model and the revision --fetch pins.
MODEL_REVISION

Functions§

built_with
Whether the index of lessons exists (None if not) and was built with model: the one rule for a current index, the engine’s as doctor’s and setup’s.
enabled
Off only with BORG_VECTORS=off (or a build without the vectors feature).
index_dir
The vector index of a lessons file: vectors/ beside it.
model_dir
The model directory: BORG_VECTOR_MODEL, default ~/.local/share/borg/models/potion-multilingual-128M.
model_present
Whether the model’s files are there (no load).