Your search index holds 80 million chunks, and a new embedding model gives 6% better recall on your test set, but moving to it means re-embedding everything. Would you do it, and how would you run the change with no downtime?
RAG · Pro 2
Short answer
First I would check that 6% recall changes the answers users see, not only a retrieval number. If it does, I would estimate re-embedding cost and time, build the new index beside the old one, write new documents to both, compare on live traffic in shadow, then switch by flag and keep the old index until we are sure.
Deeper answer
Vectors from two embedding models cannot be mixed in one index, so this is a full rebuild, not an upgrade in place. That makes it a cost and risk decision. A recall gain on a test set may vanish after reranking, so measure end-to-end answer quality first. Sometimes a reranker or better chunking gives the same gain for far less work.
If the gain is real, run a parallel index: backfill 80 million chunks in batches with rate limits and checkpoints, write new and changed documents to both indexes, and verify counts. Send a copy of live queries to the new index and compare results before any user sees them. Then shift traffic gradually and keep the old index for a rollback window, accepting double storage cost for some weeks. Interviewers listen for questioning the benefit, dual writes, shadow comparison and a rollback plan.
What a strong answer covers
- Checks the gain end to end, after reranking, not only recall
- Estimates cost and time of re-embedding; considers cheaper options
- Builds a parallel index with backfill and writes to both
- Compares on live queries in shadow before switching
- Gradual switch with the old index kept for rollback
Answer it out loud in the mock interview about 3 min
Follow-ups to expect
- Why can you not mix vectors from the old and the new model in one index?
- The backfill will take nine days. What can go wrong in that time?
- When would you decide that the 6% is not worth it?
Common mistakes
- Trusting a recall number without checking final answers
- Re-embedding in place with no way back
- Forgetting documents that change during the backfill
Learn it
- How do you choose a chunk size for RAG?
- Your RAG app gives wrong answers. How do you find the cause?
- Design a RAG system that lets a law firm search and ask questions about 50,000 contracts.
- How would you detect hallucinations in a production RAG application?
- What are embeddings, and how are they used in search?
- How do you make a RAG system cite sources and stay grounded?
- What are hybrid search and reranking, and when do they help?
- How do you keep a RAG index up to date as documents change?
- How do metadata filters improve retrieval?
- How would you build RAG over documents full of charts and images?
- Your RAG system must handle scanned PDFs, tables and slides. How do you ingest them?
- How do you make sure users only get answers from documents they are allowed to see?
- What are query rewriting and HyDE, and when do they help?
- Your HR assistant keeps quoting last year's leave policy. How do you fix it?
- Tell me about a RAG system you built and how you measured whether it worked.
- Can you do retrieval for long documents without a vector database?
- Six teams have each built their own RAG pipeline, and leadership offers you a choice: buy a vendor RAG platform for about ₹1.5 crore a year, or put five engineers on a shared internal one. How do you decide?
- What is RAG, and why would you use it?
- When would you use graph RAG instead of standard vector RAG?