LocalGraph Tutorials
Welcome to AI Agents 101! Master production-ready AI agents that run entirely on your machine using LangGraph and Ollama.
What You'll Build
Through 25 hands-on tutorials, you'll master the patterns and techniques used in production AI agents:
- Core Patterns: Build conversational agents with tools, memory, and human oversight
- RAG Systems: Create search and research assistants with document retrieval
- Multi-Agent Systems: Coordinate specialized agents for complex workflows
- Advanced Reasoning: Implement cutting-edge patterns like Reflexion and LATS
Each tutorial includes:
- Step-by-step implementation guide
- Working code examples
- Interactive playground to test your agent
- Quiz to verify understanding
- Progress tracking across your learning journey
Getting Started
New to LangGraph? Start here:
- Setup Guide - Install dependencies and verify your environment
- Tutorial 01: Chatbot Basics - Learn LangGraph fundamentals
- Work through tutorials sequentially or jump to patterns that interest you
Phase 1: Core Patterns
Core Patterns
0/7 completedMaster the fundamental patterns that power all LangGraph applications. These tutorials teach you how to build conversational agents with tool calling, memory, human oversight, and self-improvement capabilities.
Chatbot Basics
Learn StateGraph, nodes, edges, and message handling. Build your first conversational agent with streaming support.
Core PatternsTool Calling
Implement the ReAct pattern from scratch. Give your agent access to tools and let it decide when to use them.
Core PatternsMemory & Persistence
Add conversation memory with checkpointers. Implement thread-based conversations that persist across sessions.
Core PatternsHuman-in-the-Loop
Pause execution for human approval. Implement approval workflows and resume from saved checkpoints.
Core PatternsReflection
Build generate-critique-revise loops. Teach your agent to improve its own outputs through self-criticism.
Core PatternsPlan & Execute
Separate planning from execution. Use structured outputs to build multi-step workflows with replanning.
Core PatternsResearch Assistant
Capstone project combining all core patterns. Build a research assistant with web search and citation tracking.
Core PatternsPhase 2: RAG Patterns
RAG Patterns
0/6 completedLearn to build retrieval-augmented generation systems that ground LLM responses in your documents. Progress from basic retrieval to advanced patterns with quality grading, web search fallbacks, and agentic control.
Basic RAG
Document loading, chunking, embeddings, and ChromaDB. Build a simple question-answering system.
RAG PatternsSelf-RAG
Add document grading and hallucination detection. Implement retry loops for better answer quality.
RAG PatternsCRAG (Corrective RAG)
Web search fallback when documents aren't relevant. Combine local retrieval with external knowledge.
RAG PatternsAdaptive RAG
Query classification and strategy routing. Choose between retrieval, web search, or direct generation.
RAG PatternsAgentic RAG
Agent-controlled retrieval with multi-step reasoning. Let the agent decide when and what to retrieve.
RAG PatternsPerplexity Clone
Build a research assistant with citations and source metadata. Implement follow-up question flows.
RAG PatternsPhase 3: Multi-Agent Patterns
Multi-Agent Patterns
0/7 completedCoordinate multiple specialized agents to tackle complex tasks. Learn patterns for collaboration, hierarchies, handoffs, and evaluation of multi-agent systems.
Multi-Agent Collaboration
Supervisor coordinates researcher, coder, and reviewer agents. Learn agent orchestration patterns.
Multi-AgentHierarchical Teams
Nested team structures with managers and workers. Build scalable multi-agent hierarchies.
Multi-AgentSubgraphs
Composable graph components for reusable agent teams. Encapsulate complex workflows.
Multi-AgentAgent Handoffs
Seamless transitions between specialized agents. Implement context-preserving handoff patterns.
Multi-AgentAgent Swarm
Decentralized agent coordination without supervisors. Emergent behavior from agent interactions.
Multi-AgentMap-Reduce Agents
Parallel processing with result aggregation. Scale work across multiple agents efficiently.
Multi-AgentMulti-Agent Evaluation
Testing and debugging multi-agent systems. Metrics, logging, and quality assurance strategies.
Multi-AgentPhase 4: Advanced Reasoning
Advanced Reasoning
0/5 completedImplement cutting-edge research patterns for complex reasoning tasks. These advanced techniques push the boundaries of what local LLMs can accomplish.
Plan-and-Execute
Strategic planning before tactical execution. Upfront planning with optional replanning based on results.
AdvancedReflection
Advanced self-improvement patterns. Multiple critique cycles for high-quality outputs.
AdvancedReflexion
Learning from trial and error. Verbal reinforcement learning with episodic memory.
AdvancedLATS (Tree Search)
Language agent tree search with value functions. Explore multiple reasoning paths.
AdvancedReWOO
Reasoning without observation overhead. Efficient tool use with decoupled planning.
AdvancedLearning Path Recommendations
For Beginners
Start with Core Patterns (1-7) and complete them sequentially. These build on each other and establish the foundation for all other patterns.
For RAG Applications
Complete Core Patterns 1-3, then move to RAG Patterns (8-13). Focus on understanding retrieval quality and when to use each pattern.
For Multi-Agent Systems
Complete Core Patterns 1-7 first, then explore Multi-Agent Patterns (14-20). Understanding single-agent patterns is essential before coordination.
For Research Implementation
Complete all Core Patterns, then jump to Advanced Reasoning (21-25). These implement cutting-edge research papers and require solid fundamentals.
Additional Resources
- Setup Guide - Installation and configuration
- GitHub Repository - Source code and examples
- LangGraph Documentation - Official LangGraph docs
- Ollama Models - Browse available models
Need Help?
- Check the Setup Guide for troubleshooting
- Review tutorial prerequisites before starting
- Test your environment with
langgraph-local check - Each tutorial includes common pitfalls and solutions
Ready to start? Head to the Setup Guide to prepare your environment.