All Questions
Vector Search medium

You need to serve 1 billion 768-dimension fp32 vectors. A full in-memory HNSW index would need several terabytes of RAM. The p99 target is 50 ms, and recall@10 must stay above 95%. What is the most cost-effective design?

  1. A In-memory HNSW across many large-RAM nodes, since any disk access will push query latency far past the 50 ms p99 budget.
  2. B Flat brute-force search over memory-mapped files on SSD, since sequential reads are fast enough to scan a billion vectors.
  3. C A disk-based graph index on NVMe, with compressed vectors in RAM for navigation and full vectors on SSD for reranking.
  4. D IVF-PQ held entirely in RAM with no reranking, since PQ codes alone reliably reach 95%+ recall at billion-vector scale.

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

Get the app

Related questions