Agentic RAG: sections and modules
RAG as an Agent Tool
Expose a RAG pipeline as a tool the agent chooses to call in LangGraph.
- Lessons
- 5 lessons
- By
- Sourav Banerjee
- Prerequisites
- None
Lessons
Start modulePractise and Check
- Deliverable
- Two-tool agent: give an agent a private-docs RAG tool and a web-search tool, and tune the tool descriptions until it picks the right one on 20 mixed questions.
- Assessment
- Answer the five Interview questions without notes, then run the lab.
- Interview probe
- Larkspur adds a `web_search` tool to the support agent. A week later a customer asks "Can I get a refund on my annual plan?" and the agent quotes another provider's refund policy. How do you find out what happened?
- Common mistakes
- Tool descriptions that never say where each tool's scope stops
- Trusting tuned tool descriptions without checking held-out questions
- Keeping the Chainlit index and agent in module globals
Your Progress
Saved in this browser when you leave the box.