What it does
Quiver is a dynamic approximate nearest-neighbor index with a C++ core and a PyTorch Tensor Python interface. It supports search, insertion, removal, maintenance, and save/load. The research question is how search effort and partition layout can adapt to queries and changing data.
The upstream project is Quake by Jason Mohoney and the Marius team. Quiver extends that implementation with features such as filtered search on supported serial paths and a cost model for partition maintenance.
Section sources2
README.md- marius-team/quake
Adaptive search
A fixed nprobe assigns every query a preset partition budget. Adaptive search instead compares an online estimate with a requested recall target and adjusts how much it scans. Easier and harder queries can therefore receive different amounts of work.
The recall target is an estimated or average target, not a guarantee for each query. Parameter validation and path compatibility matter: an optimization available on one search path is not automatically active in serial, worker, and batched modes alike.
Section sources1
src/cpp/src/query_coordinator.cpp
Online maintenance
Maintenance waits for a complete observation window and combines partition size, observed hit rates, and measured scan costs. It can split, delete, reassign, and refine partitions according to that cost model rather than using size alone.
The query loop controls work for the current request; maintenance changes the layout for later requests. These are connected but distinct feedback loops, so an improvement in one must be evaluated together with update and maintenance costs.
Section sources2
src/cpp/src/maintenance_policies.cppsrc/cpp/include/maintenance_policies.h
Implementation choices
The current build uses C++20, Python, PyTorch, Faiss, and pybind11. CPU float32 vectors and unique nonnegative int64 IDs are the core interface; L2 and inner-product search are supported, and -1 is reserved for padding.
Packed RaBitQ supports L2 and inner product on its documented paths. A centroid graph can be built explicitly or created during maintenance when an eligible index has seen enough queries. Searches use a ready graph, and otherwise fall back to the index’s standard routing.
Section sources3
CMakeLists.txtsrc/cpp/src/query_coordinator.cppsrc/cpp/src/quiver_index.cpp
Attribution and limits
Quiver is maintained in a private repository. Its benchmark suite compares recall, latency, updates, and maintenance costs on fixed workloads. This portfolio publishes no measured speedup.
Optional filtered search supports composite scalar predicates on specified fixed-budget serial raw/packed paths, with synchronized label updates. It is not a multi-node service. Dynamic updates do not guarantee arbitrary concurrent mutation is safe, and average recall targets are not per-query guarantees.
Section sources3
README.mddocs/filtering.rstLICENSE