All Questions
Vector Search hard

You index 1B vectors (768-dim fp32, about 3 TB raw) with IVF-PQ using 64-byte codes so that the index fits in RAM. Recall@10 is 80%, and the product needs 95%. Full-precision vectors are stored on NVMe SSD. What is the most effective change?

  1. A Fetch a larger PQ candidate set, say the top 300, then rerank it with exact distances on full vectors from SSD.
  2. B Drop PQ and build HNSW over full-precision vectors, since only graph indexes reach 95% recall at billion scale.
  3. C Increase the number of IVF lists to sharpen partitions, which removes the distance error introduced by PQ codes.
  4. D Raise nprobe until recall hits 95%, because recall loss in IVF-PQ comes from probing too few lists, not the codes.

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

Get the app

Related questions