Skip to article
All public references
Project reference

Quiver · Query and maintenance

Recall-targeted search and measured partition maintenance in Quiver.

Updated5 sections

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

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.

IllustrationPartition maintenance feedback loop · illustrationOriginal diagram Read the source ↗
Loading image…

Partition maintenance feedback loop · illustration

Section sources2
  • src/cpp/src/maintenance_policies.cpp
  • src/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.txt
  • src/cpp/src/query_coordinator.cpp
  • src/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.md
  • docs/filtering.rst
  • LICENSE