LangChain Tutorial
Welcome to the LangChain tutorial. Based on official LangChain docs and the open-source langchain-ai/langchain project, this guide focuses on LangChain 1.0 agent development—from first run to production-ready apps.
Table of Contents
Basics
- Introduction — Ecosystem, 1.0 changes, LangGraph & LangSmith
- Installation — Python deps, API keys, virtual env
- Quick Start —
create_agentand your first agent chat
Architecture
- Architecture & Core Concepts — Agent loop, harness, LangChain vs LangGraph
- Models & Messages — Provider strings, messages, structured output
Development
- Tools & Agents —
@tool, tool calling,invoke/stream - Middleware — Hooks, human-in-the-loop, context engineering
- Memory & Checkpoints — State,
thread_id, persistence
Applications
- RAG — Loaders, vector stores, retrievers, agentic RAG
- LangGraph Workflows — Graphs, nodes, workflows vs agents
Operations
- Production & LangSmith — Tracing, eval, deployment
- Practical Examples — Q&A bot, multi-tool agent, orchestration
- Resources — Official docs and community
Learning Path
Prerequisites
- Python 3.10+ basics
- Familiarity with LLM / Chat APIs
- At least one provider API key (OpenAI, Anthropic, etc.)