A problem-centric, phase-by-phase curriculum for a YouTube course/playlist covering the full modern LangChain ecosystem: LangChain → RAG → Agents → LangGraph → Deep Agents → LangSmith → Production.
This repo is the source-of-truth for the course: one folder per phase, one folder per
topic inside each phase, and (where built out) a doc.md + code.py pair per topic —
doc.md is the script/notes for the video, code.py is the runnable example to record
on screen.
Curriculum is condensed to ~60–70 lessons (not the raw ~195 micro-topic map some planning tools produce) — closely related micro-topics are merged into single, meatier lessons that match a realistic 10–25 minute video.
| Phase | Folder | Status |
|---|---|---|
| 0 — Foundations | phase-0-foundations/ |
✅ Fully built (doc + code) |
| 1 — LangChain Fundamentals | phase-1-langchain-fundamentals/ |
✅ Fully built (doc + code) |
| 2 — Integrations | phase-2-integrations/ |
✅ Fully built (doc + code) |
| 3 — RAG Fundamentals | phase-3-rag-fundamentals/ |
✅ Fully built (doc + code) |
| 4 — Advanced RAG | phase-4-advanced-rag/ |
✅ Fully built (doc + code) |
| 5 — Agentic RAG | phase-5-agentic-rag/ |
✅ Fully built (doc + code) |
| 6 — LangGraph | phase-6-langgraph/ |
✅ Fully built (doc + code) |
| 7 — Advanced Agents | phase-7-advanced-agents/ |
✅ Fully built (doc + code) |
| 8 — Deep Agents | phase-8-deep-agents/ |
✅ Fully built (doc + code) |
| 9 — LangSmith | phase-9-langsmith/ |
✅ Fully built (doc + code) |
| 10 — Production AI Engineering | phase-10-production/ |
✅ Fully built (doc + code) |
| Capstones | capstones/ |
✅ Fully built (doc + code) |
Every phase and capstone now has a complete doc.md + code.py per topic — 99
runnable examples in total, all syntax-verified with python -m py_compile.
- Some packages moved between major versions. LangChain's v1 reorganization split
several retrievers/storage classes out of core
langchaininto a newlangchain-classicpackage (Phase 4 depends on it), and Deep Agents is its owndeepagentspackage (Phase 8).requirements.txtis updated for this — justpip install -r requirements.txtand everything needed is included. - Phase 6 (LangGraph), Phase 8 (Deep Agents), and Phase 9 (LangSmith) move the
fastest of any part of this ecosystem. Every API used in those phases was verified
against current docs and/or the actually-installed package source (not written from
memory) — see each phase's own topic docs for verification notes on trickier calls
(checkpointers, interrupts, the functional API,
TodoListMiddleware, tracing env vars). - Phase 10 topics needing Postgres/Redis/Docker (Topics 06 and 10) write real
client code but can't fully execute in every environment — they degrade to clear
setup instructions (e.g. the exact
docker runcommand) instead of crashing when that infra isn't running locally. - Capstone 04 intentionally uses a hand-rolled
create_agent-based deep-research pattern rather than the realdeepagentspackage, to avoid depending on it before Phase 8 introduces it on its own terms — see the capstone's doc.md.
AI APPLICATION ENGINEERING
│
┌─────┴─────┐
KNOWLEDGE ACTION
(RAG) (AGENTS)
│ │
└──────┬───────┘
LANGGRAPH (orchestration/runtime)
│
DEEP AGENTS (planning + subagents harness)
│
LANGSMITH (trace / eval / observe)
│
PRODUCTION (deploy / scale / secure)
Each phase answers "why does this technology exist?" before showing the API.
Instead of unrelated toy demos, one application evolves across phases:
Simple Chatbot → Document Q&A → Production RAG → Agentic RAG →
LangGraph Research Agent → Multi-Agent Research System →
Deep Research Agent → Production AI Application
- Problem (2–5 min) — what breaks / what's missing without this
- Concept (5–10 min) — the architecture, in plain terms
- Minimal code (5–15 min) — smallest possible working example →
code.py - Production notes (10–20 min) — how this looks for real
- Debugging (5–10 min) — common failure modes
- LangSmith (3–5 min, where relevant) — trace/eval view
- Mini challenge — a prompt for the viewer to extend the example
- Language: Python 3.11+
- Frameworks: LangChain, LangGraph, Deep Agents
- Observability: LangSmith
- Models: OpenAI (primary), Anthropic (alternative), Ollama (local)
- Vector DB: Qdrant (embedded/local for lessons, server/cloud for production) / FAISS to start; pgvector shown later
- Database: PostgreSQL
- API layer: FastAPI
- Frontend (later phases): Streamlit → custom web frontend
- Deployment: Docker, LangSmith Deployment
phase-N-<name>/
README.md # topic list + phase-level project(s) for this phase
NN-<topic-slug>/
doc.md # video script/notes: Problem → Concept → Code walk-through
code.py # standalone, runnable example (guarded __main__, .env driven)
Every code.py is written to run standalone with python code.py given a populated
.env (see .env.example). Examples fail with a clear message rather than a stack
trace when an API key is missing.
python -m venv .venv
. .venv/Scripts/activate # Windows (PowerShell: .venv\Scripts\Activate.ps1)
pip install -r requirements.txt
cp .env.example .env # then fill in your API keys- LangChain Complete Course — Foundations — Phases 0–1
- LangChain RAG Complete Course — Phases 3–4
- LangChain Agents Complete Course — parts of Phase 1 + Phases 5, 7
- LangGraph Complete Course — Phase 6
- Deep Agents Complete Course — Phase 8
- LangSmith Complete Course — Phase 9
- Production AI Engineering — Phase 10
- LangChain Real-World Projects — Capstones
Reference docs kept in sync with: LangChain overview, retrieval/RAG guide, LangGraph overview, Deep Agents quickstart, LangSmith docs (all at docs.langchain.com).