All Questions
Vector Search medium

A 50M-vector HNSW index is rebuilt nightly, and each rebuild takes about 6 hours. Product now requires new documents to be searchable within one minute of creation, and about 200K new documents arrive per day. What design meets this?

  1. A Search a small fresh segment by brute force alongside the main index, merge the results, and fold it in on the next rebuild.
  2. B Rebuild the full HNSW graph every minute on a larger machine, since graph build time drops linearly with added CPU cores.
  3. C Shorten the rebuild interval to every hour on a larger machine, since one hour is close to the one-minute target.
  4. D Serve fresh documents from a keyword index only, since embeddings for new content are unreliable until a model is retrained.

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

Get the app

Related questions