All Questions
Vector Search medium

You moved a 200M-vector index to IVF-PQ to cut memory by about 30x. Recall@10 dropped from 96% to 78%. Full-precision vectors are still stored on SSD. How do you recover most of the recall without restoring the original RAM footprint?

  1. A Raise the number of PQ subquantizers until codes approach the original vector size, which removes compression error.
  2. B Fetch a larger shortlist, such as top-200, by PQ distance, then rerank it with exact distances from full vectors on SSD.
  3. C Switch the metric from L2 to inner product, since PQ distance errors tend to cancel out when vectors are compared by dot product.
  4. D Move the PQ codes to SSD and keep the full vectors in RAM, so the coarse search computes exact distances on the hot path.

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

Get the app

Related questions