All Questions
Vector Search hard

You must serve 2B 768-dim fp32 vectors (about 6 TB raw) with recall@10 of 95% and p99 under 20 ms. The budget allows a handful of nodes, each with 512 GB of RAM and fast NVMe SSDs. Which architecture fits?

  1. A In-memory HNSW across enough nodes to hold vectors and graph, since only RAM-resident indexes meet a 20 ms p99.
  2. B An SSD-resident graph index with PQ codes in RAM for routing and full vectors on SSD for a final exact rerank.
  3. C Build HNSW and memory-map it from SSD, letting the OS page cache keep hot parts in memory and fault in the rest.
  4. D Flat search streamed from SSD across nodes, since it is exact and sequential reads avoid random I/O penalties.

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

Get the app

Related questions