All Questions
Vector Search medium

You must index 100 million 1,536-dimension fp32 embeddings. The cluster budget allows roughly 256 GB of RAM in total for the index, and recall@10 of about 90% to 95% is acceptable. Which index design fits?

  1. A HNSW with default parameters, since it gives the best recall-latency curve and its graph overhead is small next to the vectors.
  2. B Flat brute-force search sharded across nodes, since exact search avoids recall loss and needs no extra graph structure in memory.
  3. C IVF with product quantization, compressing each vector to tens of bytes and reranking a shortlist to recover recall.
  4. D HNSW with M lowered to 4, which shrinks the neighbor lists enough to bring the whole index under the memory budget.

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

Get the app

Related questions