Home›LangChain Tutorial
Free course
LangChain Tutorial
Learn LangChain from zero, one small and easy step at a time. Every idea is explained in plain words, then shown in real Python code with real model output.
Course contents
Every lesson has its own page with the explanation, code you can copy, the real output, screenshots from the video, and a link that jumps straight to that moment in the video.
1. Getting Started
- What Is LangChain0:00
- How LLM Apps Work1:01
- Setting Up2:03
2. Models and Messages
- Your First Model Call3:03
- Messages4:12
- Conversations5:14
3. Settings, Streaming, Batches
- Model Settings6:20
- Streaming7:29
- Batch Calls8:27
4. Tokens and Providers
- Tokens and Usage9:35
- Switching Providers10:43
- Basics Quiz11:42
5. Prompt Templates
- Prompt Templates12:58
- Chat Prompt Templates14:07
- MessagesPlaceholder15:10
6. Examples, Chains, Parsers
- Few-Shot Prompts16:14
- Chains with the Pipe17:21
- Output Parsers18:25
7. Runnables
- Runnables19:38
- RunnableLambda20:47
- RunnableParallel21:49
8. Passthrough, Routing, Fallbacks
- RunnablePassthrough22:55
- Routing24:07
- Fallbacks and Retries25:13
9. Inside Chains and Practice
- Seeing Inside a Chain26:22
- Practice: Review Summariser27:37
- Chains Quiz28:42
10. Structured Output
- Why Structured Output30:01
- Pydantic Models31:06
- with_structured_output32:07
11. Shapes, Labels, Extraction
- Lists and Nested Data33:08
- Classification34:16
- Extraction35:25
12. Structured Output in Practice
- Batch Extraction36:40
- When Output Goes Wrong37:49
- Structured Output Quiz39:05
13. Tools
- What Are Tools40:25
- The tool Decorator41:33
- Tool Schemas42:35
14. Tool Calls by Hand
- Binding Tools43:46
- Reading Tool Calls44:53
- Running Tools Yourself45:54
15. Agents
- The Agent Loop47:06
- create_agent48:17
- Several Tools49:26
16. Prompts, Streaming, Memory
- Agent System Prompts50:44
- Streaming Agent Steps51:53
- Agent Memory52:54
17. Structured Answers and Middleware
- Structured Agent Answers54:06
- Middleware55:20
- Built-in Middleware56:34
18. Context and Errors
- Dynamic Prompts57:54
- Tool Errors59:00
- Runtime Context1:00:05
19. Agent Practice and Approval
- Practice: Bookshop Agent1:01:21
- Human Approval1:02:31
- Agents Quiz1:03:38
20. RAG Foundations
- What Is RAG1:05:02
- Documents1:06:18
- Loading Files1:07:20
21. Chunks and Embeddings
- Splitting Text1:08:35
- Chunk Size and Overlap1:09:49
- Embeddings1:11:01
22. Similarity and Vector Stores
- Similarity1:12:17
- Vector Stores1:13:19
- Search with Scores1:14:25
23. Retrievers
- Retrievers1:15:41
- Metadata Filters1:16:46
- MMR Search1:18:00
24. Your First RAG Chain
- Your First RAG Chain1:19:17
- The RAG Prompt1:20:22
- Saying I Don't Know1:21:28
25. Better RAG
- Citing Sources1:22:43
- Conversational RAG1:23:41
- RAG as a Tool1:24:39
26. RAG in Practice
- Saving a Vector Store1:25:47
- Checking RAG Quality1:26:58
- RAG Pitfalls1:28:05
27. FAQ Bot and Async
- Practice: Bookshop FAQ Bot1:29:06
- RAG Quiz1:30:24
- Async Calls1:31:44
28. Cache, Limits and Timeouts
- Caching Model Calls1:32:58
- Rate Limiting1:34:10
- Timeouts1:35:15
29. Cost, Logging and Tracing
- Tracking Cost1:36:25
- Callbacks for Logging1:37:39
- Tracing with LangSmith1:38:43
30. Evaluation
- Evaluating Answers1:39:51
- Test Sets1:41:00
- Comparing Prompts1:42:01
31. Safety
- Prompt Injection1:43:11
- Guardrails1:44:29
- PII Redaction1:45:35
32. Reliability
- Model Fallbacks1:46:50
- Limiting Agent Calls1:48:01
- Production Quiz1:49:14
33. Serving and the Project Plan
- Serving with FastAPI1:50:33
- Streaming over HTTP1:51:55
- Project: Support Bot Plan1:53:03
34. Project: Building the Bot
- Project: Knowledge Base1:54:14
- Project: Tools1:55:21
- Project: The Agent1:56:30
35. Project: Memory, Guardrails, Tests
- Project: Memory1:57:41
- Project: Guardrails1:58:46
- Project: Testing1:59:53
36. Project Review and Good Habits
- Project: Review2:01:06
- Choosing Models2:02:04
- Prompt Habits2:03:07
37. Images and Long Documents
- Multimodal Input2:04:08
- Long Documents2:05:17
- Map-Reduce Summaries2:06:19
38. Rewriting and Extraction
- Translation and Rewriting2:07:31
- Data from Tables2:08:38
- Applied Quiz2:09:48
39. The Bigger Picture
- LangChain vs LangGraph2:11:06
- The Ecosystem2:12:14
- Cheat Sheet: Core2:13:25
40. Wrapping Up
- Cheat Sheet: Agents and RAG2:14:29
- Common Mistakes2:15:26
- What to Learn Next2:16:24