All Questions
Vector Search hard

An IVF index with 16K lists had its coarse quantizer trained on a 1M-vector sample 18 months ago. Since then the corpus has grown 5x, mostly from a new content type (source code) that looks nothing like the original prose. At the same nprobe, recall@10 fell from 96% to 85% and p99 latency doubled. What is the root cause, and what is the fix?

  1. A nprobe is simply too low for a larger corpus; raising it restores recall without touching the quantizer or the lists.
  2. B IVF recall inherently decays with corpus size; migrate to HNSW, since graph indexes never need training or upkeep.
  3. C Centroids no longer fit the data, so new vectors pile into a few huge lists; retrain the quantizer on a fresh sample and rebuild.
  4. D The PQ sub-quantizer codebooks drifted; retraining only them restores recall while keeping existing list assignments.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions