All Questions
Vector Search hard

You serve RAG over 200M chunks embedded with your current model (1,536 dims). A new embedding model, also 1,536 dims, scores better on your eval set. An engineer proposes switching the query encoder to the new model today and re-embedding chunks lazily as they are edited. What should you do instead?

  1. A Build a separately versioned index with the new model, dual-write during backfill, and cut over after validating recall.
  2. B Proceed with the lazy plan, since equal dimensionality means both models share one coordinate space and comparable scores.
  3. C Swap the query encoder now and rely on the HNSW graph, which is model-agnostic, to keep neighborhoods valid during re-embedding.
  4. D Upsert re-embedded vectors into the existing index in place, keeping one index and avoiding doubled memory during the migration.

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

Get the app

Related questions