Users ask compound questions such as "Compare our 2025 and 2026 travel policies for contractors", and retrieval returns passages for only one year. What helps most?
- Exam domain
- Foundation Model Integration, Data Management, and Compliance31% of the exam
- Difficulty
- Hard
- In this mock
- 28 questions on this domainPractise this domain
Why the exam asks this
Task 1.5: Design retrieval mechanisms for FM augmentation.
Objective in the exam guide: Skill 1.5.5: Develop sophisticated query handling systems to improve retrieval effectiveness (for example, by using Amazon Bedrock for query expansion, Lambda functions for query decomposition).
A single embedding of a compound question tends to match only one of its parts. Query handling is how advanced RAG systems answer comparison and multi-part questions.
Why B is the answer
Query decomposition, which splits the question into smaller sub-queries
Breaking a compound question into sub-queries lets retrieval find passages for each part.
Remember: Compound questions need decomposition: one sub-query per part.
How it works
A compound question mixes several information needs. Embedded as one query, it usually matches only the strongest part.
Query decomposition splits it into sub-queries, retrieves for each, and gives the model all the results.
Bedrock Knowledge Bases offers query decomposition; custom pipelines can do it with a model call in Lambda.
Clues in the question
The words that point to the answer, and what each one tells you.
- Compare 2025 and 2026
- Two information needs in one question.
- Passages for only one year
- A single query matched only one part.
In detail
- Bedrock Knowledge Bases can break complex queries into smaller, more manageable sub-queries.
- Query expansion and reformulation are related techniques that improve recall.
Side by side with look-alikes
| Technique | Helps compound questions? |
|---|---|
| Query decomposition | Yes, one search per part |
| Query expansion | Partly, adds related terms |
| Higher temperature | No |
| Fewer results | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A shorter system promptWrong
The system prompt does not change retrieval.
B. Query decomposition, which splits the question into smaller sub-queriesRight
Compound questions need decomposition: one sub-query per part.
C. A higher temperature on the answering modelWrong
Temperature affects generation, not what is retrieved.
D. Fewer retrieved resultsWrongMost tempting
Fewer results make it even less likely both years are covered.
Why it tempts: Fewer, sharper results can help precision. But here the missing year needs more coverage, not less.
In practice
- Test with real multi-part questions from users.
- Cap the number of sub-queries to control cost and latency.
Use case
An illustrative scenario, not a real incident.
A policy assistant splits "compare 2025 and 2026" into two searches and passes both sets of passages to the model.
See how it works
flowchart LR Q["Compare 2025 and 2026 travel policies"] --> D["Decompose"] D --> S1["Sub-query: 2025 travel policy"] D --> S2["Sub-query: 2026 travel policy"] S1 --> C["Combine passages"] S2 --> C C --> M["Model writes the comparison"]
How to read this chart
- "Compare 2025 and 2026 travel policies" leads to "Decompose".
- "Decompose" leads to "Sub-query: 2025 travel policy" and "Sub-query: 2026 travel policy".
- "Sub-query: 2025 travel policy" leads to "Combine passages".
- "Sub-query: 2026 travel policy" leads to "Combine passages".
- "Combine passages" leads to "Model writes the comparison".