All Questions
Rag And Retrieval hard

You are switching to a new embedding model with better recall. The index holds 300M chunks, and re-embedding takes about a week. A teammate proposes upserting new-model vectors into the existing index as chunks are re-embedded, so quality improves gradually. Why is this wrong, and what should you do instead?

  1. A Vectors from different models are not comparable. Build a parallel index, backfill it, shadow-evaluate recall, then cut over.
  2. B Nothing is wrong if both models share the same dimension, because cosine similarity normalizes away the differences between the two embedding spaces.
  3. C Mixing only fails for HNSW. Switching the index to IVF-flat during the transition makes old and new vectors safely comparable to each other.
  4. D Nothing is wrong as long as each query is embedded with both models and the higher of the two scores is kept for every candidate in the index.

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

Get the app

Related questions