All Questions
Vector Search medium

An IVF index was trained on a sample of product embeddings 18 months ago. Since then the catalog has shifted heavily into a new category. Recall at a fixed nprobe has dropped, and a few inverted lists now hold most of the vectors. What should you do?

  1. A Raise nprobe permanently, since probing more lists recovers recall and the list imbalance has no effect on query latency.
  2. B Retrain the coarse quantizer on a fresh representative sample and rebuild, since old centroids no longer fit the data.
  3. C Switch the metric from L2 to cosine so vectors in the new category spread more evenly across the existing centroids.
  4. D Add product quantization so the oversized lists are compressed, which restores both recall and a balanced scan cost.

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

Get the app

Related questions