All Questions
Vector Search medium

After tuning HNSW, a team declares success because the top-10 results 'look relevant' in spot checks. You need to know whether the index actually meets a 95% recall@10 target. How should you measure it?

  1. A Run a sample of real queries through exact flat search to get ground truth, then compute overlap with the ANN top-10.
  2. B Compare ANN results against human relevance labels, since recall@10 measures how many relevant documents users see.
  3. C Use the similarity scores directly, since an average top-10 score above 0.9 shows the index found the true neighbors.
  4. D Rely on the library's published benchmark recall for the same M and efSearch, since recall depends only on those parameters.

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

Get the app

Related questions