A vector index that spends work where each query needs it
Project focus
ANN Index
Project status
Research
Year
2025-2026
Project context
A query-adaptive ANN index with recall-targeted scanning, online updates, and cost-based partition maintenance.
Quiver builds on Quake by Jason Mohoney and the Marius team. It explores how much of an index to scan for each query, and when to reorganize partitions as vectors are inserted or removed.
BUILT WITHC++20, Python, PyTorch, Faiss, pybind11, CMake
Key decisions
Maintenance follows observed cost
After the rolling hit window fills, an explicit maintenance checkpoint combines scan-latency profiles, partition size, and observed hits. It can split a costly partition, delete and reassign another, then refine only the affected neighborhood without a full rebuild.
Recall targets replace a fixed scan budget
Adaptive partition scanning recomputes an online recall estimate as the current kth-neighbor radius changes, then stops when that estimate reaches the declared target. Easy and difficult queries no longer inherit the same scan depth.
Index structure and compute co-design
The C++ search path combines batched and multithreaded scanning with optional AVX-512 and NUMA locality. Structural decisions and the distance-compute path are tuned as one system instead of two separate layers.
Principles and honest boundaries
Observe workload change
Stop on an estimated recall target
Make maintenance decisions online
Design index and compute together
Implementation and visuals
Workflow and concept illustrations explain the project's mechanisms. Implementation details are documented in the text and project references.
Enlarge illustrationEasy and difficult queries scan different numbers of IVF partitions toward the same estimated-recall targetOriginal diagramEnlarge illustrationA filled observation window and scan-cost profile feed explicit split, reassign, and local-refinement decisionsOriginal diagram