Skip to main content
InterviewHubPRO
Section Overview
Q27

Question 27 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

54%
Vector DBs & RAG (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

What is Embedding Model Drift and how do you handle version migrations?

senior LevelTerraform & IaC

In Simple Words: Vector databases cannot mix embeddings from different models or different versions of the same model because each model creates an incompatible coordinate space:

  • If you upgrade from text-embedding-ada-002 to text-embedding-3-small, old vectors and new query vectors are mathematically meaningless relative to each other!
  • Migration Strategy:
    1. Create a new collection/table with the new model schema.
    2. Dual-write incoming new documents with both embeddings.
    3. Run batch backfill jobs to re-embed historical documents.
    4. Switch query traffic to the new collection once parity is validated.
    5. Tear down the old collection.