Custom agentic RAG and SQL agents in LangGraph
Notebook· 07.07· 90–120 min· Lesson 62 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Build a custom RAG graph:
retrieve→grade_documents→ (rewrite→retrieve) →answer, with a bounded retry. - Build a SQL graph:
list_tables→get_schema→generate_query→check_query→run_query, read-only, with an error-fix loop. - Compose both as subgraphs under a router and read the combined diagram with
xray=True. - Explain why each step is a node: you can test it, time it and see it in Studio.
Before you start
Lessons 07.02–07.04; Module 06 (corpus, BM25, cited answers).
Python in this lesson
Python guideNew hereCallable[…]
