telys_build_ivf
Build per-partition IVF indexes and calibrate nprobe to a recall floor, enabling approximate search for partitions that have outgrown exact scans while smaller partitions remain exact.
Instructions
Build per-partition IVF indexes and calibrate nprobe to a recall floor — approximate search for partitions that have outgrown exact scans. Maintenance sibling of telys_compact (physically reclaim space from deletes) and telys_tune (plan and optionally apply tuning automatically). Required: collection. Optional: min_rows (default 20000; only partitions with at least this many rows get an IVF index — smaller ones keep exact scans) and target_recall (default 0.98). Fails when the collection does not exist; needs the optional faiss dependency — the error names the fix (pipx: pipx inject telys faiss-cpu; venv: pip install faiss-cpu).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_rows | No | only partitions with at least this many rows get an IVF index (smaller stay exact) | |
| collection | Yes | name of an existing collection in the active store | |
| target_recall | No | recall floor the nprobe calibration targets |