You operate a 500M-document RAG index built on OpenAI text-embedding-3-small (1536 dim). You want to migrate to text-embedding-3-large (3072 dim) for the quality gain. Outline the migration plan including cost, downtime risk, and the cutover strategy.
Run a parallel-index migration: re-embed all 500M docs to a new index for around $16K via batch, dual-write, shadow-test recall on a labeled set, then atomic cutover.
Picture moving a giant library from one cataloguing system to another. You cannot mix the two systems on the shelf because the call numbers will not line up. So you build a parallel set of shelves in the next room, copy every book over with the new catalogue, run patrons against both libraries quietly to confirm the new shelves find the same books, then on a Saturday night you switch all the signs and start sending patrons to the new room. The old shelves stay in place for a week in case you have to roll back. That is exactly what a search-index upgrade looks like.
Detailed answer & concept explanation~5 min readEverything 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. 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.
4 min: incremental-upgrade impossibility + sizing arithmetic + parallel-index build + dual-write and shadow-test + atomic cutover + rollback window + MTEB vs corpus generalization risk.
Real products, models, and research that use this idea.
- OpenAI's text-embedding-3 documentation explicitly recommends a parallel-index pattern for migrating from text-embedding-3-small to text-embedding-3-large.
- Pinecone's 2026 embedding-migration guide ships templates for the dual-write plus shadow-test stages on managed indexes.
- Notion and Cursor have publicly described shadow-test windows of one to two weeks before cutting over embedding-model upgrades on their RAG stacks.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you reduce the cost of the migration if budget is tight?
QHow would you handle ongoing ingestion during the build window?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating the migration as an incremental refresh where old documents stay on the old model; this produces a silently broken mixed-model index.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.