Upgrading the embedding model behind a live RAG index — what does that actually force you to do?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Different embedding models live in incompatible vector spaces, so upgrading one forces a full re-embed and re-index with the query encoder switched to the same model. Partial swaps produce meaningless scores.
Imagine two people sort a library by a private system only they understand — one by smell, the other by color. A book's 'address' in one system is gibberish in the other. The search works by comparing the address of your question to the addresses of the books. If the books were addressed by the old librarian and your question by the new one, the comparison is nonsense and you fetch the wrong books. So when you hire a new librarian, they have to re-address every book, and your questions have to use their system too. You cannot mix the two.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Establish the one load-bearing fact: queries and documents must share a single embedding space, and different models do not produce comparable spaces. Explain why cosine similarity cannot bridge two spaces, then walk the only correct migration — full re-embed, full re-index, query-encoder swap — and what it costs operationally at scale. Dismantle each distractor by showing the space mismatch it leaves in place, including the subtle reranker trap. Close on the embedding model being a sticky commitment and the blue-green migration pattern that de-risks the change.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Thinking cosine similarity normalizes across models, so you can embed new documents with the new model and leave the old vectors in place — it doesn't, and retrieval silently breaks.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.