All Questions
Vector Search easy

Your product search team replaced exact search with an HNSW index. A QA engineer notices that the true closest item is occasionally missing from the top 10 results. What is the most likely explanation?

  1. A The HNSW graph is corrupted and must be rebuilt from scratch before results can be trusted.
  2. B The embedding model is non-deterministic, so the same query produces different vectors each call.
  3. C ANN indexes trade a small amount of recall for speed, so occasional misses are expected behavior.
  4. D The cosine metric is unstable for top-10 queries and should be replaced with exact L2 distance scoring.

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

Get the app

Related questions