Skip to content

Releases

v0.7.0 — IVFPQ completes four index families

Choose a tag to compare

@SMC17 SMC17 released this 28 May 01:45

Errata (2026-11-12). IVFPQ is approximate. The 3.43x speedup over FlatIndex below was measured at nlist=100, nprobe=10, M=8 on N=10k, D=128, where recall@10 was 0.78 on clustered data and 0.10 on uniform random data. Speed without recall is not a fair comparison; #5 tracks a recall-vs-QPS sweep on SIFT1M.

Inverted-File Product Quantization index. With this, faiss-zig now covers the four FAISS index families that matter most in production: Flat + HNSW + IVFFlat + IVFPQ.

IVFPQ defaults at N=10K D=128 (nlist=100, nprobe=10, M=8)

  • 522 μs/q, 1,915 q/s
  • 3.43x speedup vs FlatIndex
  • 16.94x total memory compression vs raw f32 (295 KB vs 5,000 KB)
  • 42.67x per-vector compression (12 bytes/vec vs 512)

Recall trades against memory: 0.10 on uniform [0,1]^128 random data at default config; expected to recover toward FAISS-published 0.6–0.8 R@10 on real clustered embeddings.

Honest non-claims (v0.7)

  • L2-squared only on HNSW / IVFFlat / IVFPQ; cosine + IP land v0.7.1
  • No OPQ rotation, no k-means++ init (v0.8 roadmap)
  • No GPU

Full changelog: CHANGELOG.md