Retrieval Quality & RAG Applications: sections and modules
Query Transformation & Routing
Rewrite and expand queries with an LLM.
- Lessons
- 10 lessons
- By
- Sourav Banerjee
- Prerequisites
- None
Lessons
Start modulePractise and Check
- Deliverable
- Query-transformation matrix: run multi-query, RAG-Fusion, HyDE and decomposition on the same 30 questions and record which question types each one helps, which it hurts, and the added latency and cost.
- Assessment
- Answer the five Interview questions without notes, then run the lab.
- Interview probe
- You ship RAG-Fusion for Larkspur's support assistant. A customer asks "What happens if my server goes down?" and gets reboot instructions instead of the SLA credit policy. Recall on the golden set went up. What happened?
- Common mistakes
- Passing the expanded query, not the original question, to the answer prompt
- Returning
doc.idvalues from the fusion merge instead of documents - Splitting free-text decomposition output on newlines instead of structured output
Your Progress
Saved in this browser when you leave the box.