Query rewriting and contextual retrieval
A section of the "Knowledge and memory" topic. The questions check an understanding of practice, not memory of specific library APIs. After each answer comes a review: why the correct option is right, what is wrong with each incorrect one and which chapter to read.
Quiz difficulty Formats: one correct option, several correct options
Quiz 2.3Query rewriting and contextual retrievalStart Practice or a ranked attempt — you choose after clicking.
01
What we check
- A query without context
- Rewriting the query “And his wife?”
- The step-back technique
- Expanding knowledge base chunks with questions
- Generating a graph query
- When a generated query is needed
02
Where to read
- Huyen, AI Engineeringch. 6
- Bratanič, Hane, Essential GraphRAGch. 3 · ch. 4