All Questions
Vector Search medium

An internal knowledge base holds 300,000 embeddings of 1,536 dimensions and grows about 10% per year. A legal review requires that search never misses the true nearest documents. Traffic is a few queries per second. What should you choose?

  1. A Flat brute-force search on one node, which is exact and fast enough at this scale and needs no index build or tuning.
  2. B HNSW with a very high efSearch, which approaches 100% recall while keeping query latency in the single-digit milliseconds.
  3. C IVF-PQ with a large codebook, which keeps results exact while cutting the memory footprint by roughly an order of magnitude.
  4. D A disk-based graph index, since 300,000 high-dimensional vectors exceed what a single node can comfortably hold in RAM.

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

Get the app

Related questions