Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Design and implement a multi-agent RAG architecture, including chunking, embedding quality, and retrieval precision

A worked example

Single answer

A multi-agent clinical assistant uses an Azure AI Search index named formulary-v1 containing 50,000 formulary documents. All document vectors in it were created with text-embedding-3-small. You plan to move to text-embedding-3-large.

Requirements:

  • Agents must keep answering queries throughout the migration.
  • You must confirm, using parallel queries against old and new configurations, that retrieval quality improves before agents switch.
  • The index that agents query must never hold vectors from two different embedding models.
  • After the switch, agents must have access to the full formulary.

Which migration approach meets all the requirements?

Choose one answer
Why

Document and query embeddings must use compatible model configurations for meaningful similarity comparisons. Blue-green deployment re-embeds the entire collection into a separate index while agents continue using the old configuration. Parallel queries validate retrieval quality using the corresponding model for each index. After confirming improvement, switch agents to the new configuration and remove the old index.

  • Not correct: Build a new index with the new model, switch agents to it as soon as indexing finishes, then delete the old index. This skips the parallel-query comparison required before switching. The source uses that comparison to validate retrieval improvement before committing to the new configuration.
  • Correct: Re-embed all documents into a new index, compare both indexes with parallel queries, then switch agents and delete the old index. This is the blue-green approach in the source. Agents continue using the old configuration while the complete collection is re-embedded into a separate index, and parallel queries validate quality before switching.
  • Not correct: Switch query embeddings to the new model now, and re-embed each document in the current index as it is next updated. This immediately pairs new-model query embeddings with old-model document embeddings, which the source states do not support meaningful similarity comparisons. It also skips the required parallel-query validation before switching.
  • Not correct: Re-embed a 1,000-document sample into a new index, compare both indexes with parallel queries, then switch agents to it. The source uses a 1,000-document sample to assess whether full reindexing is worthwhile. Switching to that sample would leave 49,000 formulary documents unavailable.
  • Not correct: Delete the current index, recreate it under the same name with the new model, then re-embed and reload all documents. Agents lose access to the existing index while it is rebuilt. The source describes keeping the old index available during reindexing to avoid this interruption.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free