Deployment and Orchestration of ML and AI Workflows

A RAG service must switch to a different embedding model without interrupting production retrieval. Both models produce vectors of equal dimension, but their embedding spaces differ; which refresh strategy should the pipeline use?

Show the answer

Correct answerD. Build a separate index with the new model, validate retrieval, then switch queries and index together.

AWhy not this: Equal vector dimensions do not make vectors from different embedding spaces semantically comparable.

BWhy not this: Mixing old and new document embeddings in one index produces inconsistent similarity comparisons.

CWhy not this: Queries would use the new embedding space while some or all stored vectors still use the old space.

DWhy this is right: A parallel rebuild preserves production and supports validated cutover of compatible query and document embeddings.

Document and query vectors must use a compatible embedding space, not merely equal dimensions. A separate, fully rebuilt index allows validation before a coordinated cutover; incremental replacement would mix incompatible embeddings.