A RAG assistant returns passages that share keywords with the question but miss its meaning. Which change to the retrieval components helps most?
- Exam domain
- ML Model and Foundation Model (FM) Development24% of the exam
- Difficulty
- Medium
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Task 2.2: Train, fine-tune, and customize models for ML and AI solutions.
Objective in the exam guide: Skill 2.2.9: Optimize retrieval components and embedding models.
Most RAG quality problems are retrieval problems. Engineers who can tune retrieval fix them without touching the model.
Why A is the answer
Use a better-suited embedding model and add a reranker that scores passages against the question
Better embeddings capture meaning, and a reranker puts the truly relevant passages first.
Remember: Fix meaning-poor retrieval with better embeddings and reranking.
How it works
Retrieval finds candidate passages; generation writes the answer from them.
An embedding model suited to the domain matches meaning, not just shared words.
A reranker re-scores the top candidates against the question, so the most relevant reach the model.
Clues in the question
The words that point to the answer, and what each one tells you.
- Share keywords but miss meaning
- Weak semantic matching.
In detail
- RAG quality depends on retrieval more than on the generating model.
- Retrieval components can be tuned like any model.
Side by side with look-alikes
| Change | Improves relevance? |
|---|---|
| Better embeddings plus reranker | Yes |
| Higher temperature | No |
| Remove metadata | No |
| First passage only | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Use a better-suited embedding model and add a reranker that scores passages against the questionRight
Fix meaning-poor retrieval with better embeddings and reranking.
B. Raise the temperature of the answering modelWrong
Temperature affects generation after retrieval.
C. Remove metadata from the documentsWrong
Metadata helps filtering; removing it does not help.
D. Return only the first retrieved passageWrongMost tempting
Taking only the first passage makes things worse when ranking is poor.
Why it tempts: Fewer passages can reduce noise. But when ranking is poor, the first passage is often the wrong one.
In practice
- Measure retrieval relevance on labeled questions before and after each change.
Use case
An illustrative scenario, not a real incident.
A team swaps to a domain-fit embedding model and adds a reranker; the share of relevant top-3 passages rises from 55% to 82%.
See how it works
xychart-beta x-axis ["Original", "Better embeddings", "Plus reranker"] y-axis "Relevant in top 3 (%)" 0 --> 100 bar [55, 70, 82]
How to read this chart
- Each bar is the share of questions with a relevant passage in the top three.
- Better embeddings help; adding a reranker helps more.
- Neither change touched the answering model.