Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. AI-300/
  4. AI-300 Learning Path/
  5. Study FAQs/
  6. How do I compare RAG retrieval configurations fairly in an offline experiment?

Study FAQ

How do I compare RAG retrieval configurations fairly in an offline experiment?

Exam · AI-300Knowledge domain · Optimize generative AI systems and model performanceUpdated Nov 25, 2026
Also asked as 2
  • How do I isolate a chunking, candidate-depth or hybrid retrieval change in a RAG test?
  • What should stay fixed when comparing two RAG retrieval configurations offline?

Answer

Run baseline and candidate against the same frozen questions and raw source snapshot, changing one retrieval factor at a time. Keep generation settings and the context-selection rule fixed so the comparison can identify what changed.

Use approved nonproduction resources and non-sensitive or synthetic material. Set indexing/model/evaluator budgets and cleanup ownership; do not direct production clients to candidate indexes.

Label expected evidence by source passage, not generated chunk ID. Chunking changes boundaries and IDs, so retain each chunk's mapping to its original passage range. Freeze query text, eligibility rules, answer criteria and reviewed labels, keeping labels/reference answers out of generation input.

Retain embedding model and query vectorization, text configuration, vector algorithm, access rules, prompt/deployment, evaluator versions and timing method. A chunking candidate needs its own index and recomputed vectors for the new text. A depth candidate changes k; a hybrid candidate changes retrieval strategy. Do not combine them and attribute the result to one factor. Keep semantic reranking out of that first comparison or define it as a separate experiment with an adequate candidate pool; the documented vector-plus-semantic pattern uses k=50, distinct from prompt context size.

Apply the same context-selection algorithm and token budget to all candidates, even though selected text changes. Record any unavoidable differences. Capture ordered retrieval evidence before generation and retain the exact context actually used. This is a paired offline comparison, not randomized live traffic or demonstrated production impact.

For a practice comparison, start with fixed chunks, vector-only retrieval and k=5. Test k=10 on that index before changing retrieval mode. In a separate chunking test, compare 400-token and 200-token windows with the same 50-token overlap and embedding model, provided the corpus and model support the setup. Test hybrid with the original index and match the number of returned results and context budget where possible. These settings illustrate isolation of changes.

Microsoft Learn

  • Generate embeddings for search queries and documents
  • Create a vector query in Foundry IQ (Azure AI Search)
  • Semantic ranking in Foundry IQ (Azure AI Search)
  • Create a hybrid query in Foundry IQ (Azure AI Search)

Full explanation

AI-300: Lab: Comparing RAG Retrieval Configurations

Study guide · AI-300

Read the full explanation →
← Back to AI-300 FAQsView learning path →

Related questions

When should a RAG system use keyword, vector or hybrid retrieval? →How do I choose between SFT, DPO and RFT in Microsoft Foundry? →How do Developer training and Developer serving differ for fine-tuned models? →Can I fine-tune any hosted embedding model for my domain? →What evidence justifies changing a RAG embedding model? →What happens to a fine-tuned workload when its base model approaches retirement? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.