Skip to content
Forward Deployed

Forward Deployed
Retrieval Quality & RAG Applications: sections and modules
T6.2

Query Transformation & Routing

Rewrite and expand queries with an LLM.

Lessons
10 lessons
By
Sourav Banerjee
Prerequisites
None
10 lessons

Practise 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.id values from the fusion merge instead of documents
  • Splitting free-text decomposition output on newlines instead of structured output

Your Progress

How confident are you with this module?

1 means "I could not explain it yet"; 5 means "I could teach it". Rate again any time.

 

Saved in this browser when you leave the box.