All Questions
Vector Search hard

Your team is choosing ef_search for a production HNSW index and needs to report recall@10 for each candidate setting. Which methodology measures ANN recall correctly?

  1. A Treat the same index at ef_search 10x higher as ground truth, since a wider search converges on true neighbors.
  2. B Use click-through rate on the top 10 results as recall, since users click whatever the true nearest neighbors are.
  3. C Generate random query vectors uniformly over the space, run exact search for them, and compare to the index.
  4. D Sample real production queries, compute the exact top 10 by flat search on the same snapshot, and compare each setting.

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

Get the app

Related questions