Agentic RAG: sections and modules
Agentic RAG Foundations: Grading & Query Rewriting
Wrap a retriever as a LangGraph tool.
- Lessons
- 5 lessons
- By
- Sourav Banerjee
- Prerequisites
- None
Lessons
Start modulePractise and Check
- Deliverable
- Grader loop: add a relevance grader and a two-retry rewrite loop to your T6 system and log how often each path fires on the golden set.
- Assessment
- Answer the five Interview questions without notes, then run the lab.
- Interview probe
- A week after the Larkspur handbook moved to a new document system, the support assistant's LLM bill doubled while traffic stayed flat. Traces show most questions now making three retrievals. What happened, and what do you check first?
- Common mistakes
- Passing a chunk that is about the topic but lacks the answer
- Comparing
binary_scoreexactly with "yes" without normalising it first - Leaving off-topic questions for the document grader to reject
Your Progress
Saved in this browser when you leave the box.