AI Hints
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.

📚 120 lessons▶ 2:16:24+ of video💻 108 code examples🖼 129 screenshots
The complete LangChain course, free on YouTubeWatch on YouTube ↗

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

  1. What Is LangChain0:00
  2. How LLM Apps Work1:01
  3. Setting Up2:03

2. Models and Messages

  1. Your First Model Call3:03
  2. Messages4:12
  3. Conversations5:14

3. Settings, Streaming, Batches

  1. Model Settings6:20
  2. Streaming7:29
  3. Batch Calls8:27

4. Tokens and Providers

  1. Tokens and Usage9:35
  2. Switching Providers10:43
  3. Basics Quiz11:42

6. Examples, Chains, Parsers

  1. Few-Shot Prompts16:14
  2. Chains with the Pipe17:21
  3. Output Parsers18:25

7. Runnables

  1. Runnables19:38
  2. RunnableLambda20:47
  3. RunnableParallel21:49

8. Passthrough, Routing, Fallbacks

  1. RunnablePassthrough22:55
  2. Routing24:07
  3. Fallbacks and Retries25:13

9. Inside Chains and Practice

  1. Seeing Inside a Chain26:22
  2. Practice: Review Summariser27:37
  3. Chains Quiz28:42

11. Shapes, Labels, Extraction

  1. Lists and Nested Data33:08
  2. Classification34:16
  3. Extraction35:25

12. Structured Output in Practice

  1. Batch Extraction36:40
  2. When Output Goes Wrong37:49
  3. Structured Output Quiz39:05

14. Tool Calls by Hand

  1. Binding Tools43:46
  2. Reading Tool Calls44:53
  3. Running Tools Yourself45:54

16. Prompts, Streaming, Memory

  1. Agent System Prompts50:44
  2. Streaming Agent Steps51:53
  3. Agent Memory52:54

17. Structured Answers and Middleware

  1. Structured Agent Answers54:06
  2. Middleware55:20
  3. Built-in Middleware56:34

18. Context and Errors

  1. Dynamic Prompts57:54
  2. Tool Errors59:00
  3. Runtime Context1:00:05

19. Agent Practice and Approval

  1. Practice: Bookshop Agent1:01:21
  2. Human Approval1:02:31
  3. Agents Quiz1:03:38

20. RAG Foundations

  1. What Is RAG1:05:02
  2. Documents1:06:18
  3. Loading Files1:07:20

21. Chunks and Embeddings

  1. Splitting Text1:08:35
  2. Chunk Size and Overlap1:09:49
  3. Embeddings1:11:01

22. Similarity and Vector Stores

  1. Similarity1:12:17
  2. Vector Stores1:13:19
  3. Search with Scores1:14:25

23. Retrievers

  1. Retrievers1:15:41
  2. Metadata Filters1:16:46
  3. MMR Search1:18:00

24. Your First RAG Chain

  1. Your First RAG Chain1:19:17
  2. The RAG Prompt1:20:22
  3. Saying I Don't Know1:21:28

25. Better RAG

  1. Citing Sources1:22:43
  2. Conversational RAG1:23:41
  3. RAG as a Tool1:24:39

26. RAG in Practice

  1. Saving a Vector Store1:25:47
  2. Checking RAG Quality1:26:58
  3. RAG Pitfalls1:28:05

27. FAQ Bot and Async

  1. Practice: Bookshop FAQ Bot1:29:06
  2. RAG Quiz1:30:24
  3. Async Calls1:31:44

28. Cache, Limits and Timeouts

  1. Caching Model Calls1:32:58
  2. Rate Limiting1:34:10
  3. Timeouts1:35:15

29. Cost, Logging and Tracing

  1. Tracking Cost1:36:25
  2. Callbacks for Logging1:37:39
  3. Tracing with LangSmith1:38:43

30. Evaluation

  1. Evaluating Answers1:39:51
  2. Test Sets1:41:00
  3. Comparing Prompts1:42:01

31. Safety

  1. Prompt Injection1:43:11
  2. Guardrails1:44:29
  3. PII Redaction1:45:35

32. Reliability

  1. Model Fallbacks1:46:50
  2. Limiting Agent Calls1:48:01
  3. Production Quiz1:49:14

33. Serving and the Project Plan

  1. Serving with FastAPI1:50:33
  2. Streaming over HTTP1:51:55
  3. Project: Support Bot Plan1:53:03

34. Project: Building the Bot

  1. Project: Knowledge Base1:54:14
  2. Project: Tools1:55:21
  3. Project: The Agent1:56:30

35. Project: Memory, Guardrails, Tests

  1. Project: Memory1:57:41
  2. Project: Guardrails1:58:46
  3. Project: Testing1:59:53

36. Project Review and Good Habits

  1. Project: Review2:01:06
  2. Choosing Models2:02:04
  3. Prompt Habits2:03:07

37. Images and Long Documents

  1. Multimodal Input2:04:08
  2. Long Documents2:05:17
  3. Map-Reduce Summaries2:06:19

38. Rewriting and Extraction

  1. Translation and Rewriting2:07:31
  2. Data from Tables2:08:38
  3. Applied Quiz2:09:48

39. The Bigger Picture

  1. LangChain vs LangGraph2:11:06
  2. The Ecosystem2:12:14
  3. Cheat Sheet: Core2:13:25