All Questions
Vector Search hard

Your HNSW index (M=16) reaches recall@10 of 91% at ef_search=64 with a p99 of 6 ms. The target is 97% recall within a 15 ms p99. A full rebuild takes 14 hours. What is the right tuning order?

  1. A Raise M on the live index; M controls neighbors visited per hop, so increasing it lifts recall with no rebuild.
  2. B Raise ef_construction alone, since recall depends on how the graph was built and query-time settings cannot move it.
  3. C Raise ef_search first and measure; rebuild with higher M or ef_construction only if the 15 ms budget runs out first.
  4. D Switch the index metric from cosine to L2, since L2 graphs reach higher recall at the same M and ef_search.

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

Get the app

Related questions