Welcome to the LangGraph Learning Repository! This comprehensive collection contains hands-on examples, tutorials, and practical implementations of LangGraph - a powerful library for building stateful, multi-actor applications with LLMs.
LangGraph is a library for building stateful, multi-actor applications with Large Language Models (LLMs). It extends LangChain with the ability to coordinate multiple actors in a structured graph format, enabling complex workflows, agent interactions, and stateful conversations.
| Folder | Description | Key Features |
|---|---|---|
| LangGraph Basics | Foundation concepts and basic implementations | Core concepts, state management, simple graphs |
| LangGraph Debugging | Debugging tools and techniques | LangSmith integration, debugging workflows |
| LangGraph Multi Agents | Multi-agent systems and coordination | Agent communication, supervised workflows |
| LangGraph RAG Agents | Retrieval-Augmented Generation implementations | Document retrieval, knowledge-based agents |
| LangGraph SQL Agent | Database interaction and SQL query agents | Database connectivity, SQL generation |
| LangGraph Tools | Custom tools and integrations | Tool creation, external API integration |
| Curie Radiation Documents | Sample documents for RAG examples | Historical documents, text corpus |
- Python 3.11+
- Virtual environment (recommended)
- API keys for LLM services (OpenAI, Groq, etc.)
- Clone or navigate to this repository
- Activate your virtual environment (langgraph-handson folder contains the virtual environment)
# Windows .\langgraph-handson\Scripts\Activate.ps1 # Or activate.bat for Command Prompt .\langgraph-handson\Scripts\activate.bat
- Set up environment variables
- Copy
.env.exampleto.env(if available) - Add your API keys:
OPENAI_API_KEY=your_openai_key GROQ_API_KEY=your_groq_key LANGSMITH_API_KEY=your_langsmith_key
- Copy
- LangGraph Basics - Learn core concepts
- LangGraph Tools - Understand tool integration
- LangGraph Multi Agents - Multi-agent coordination
- LangGraph RAG Agents - Document-based reasoning
- LangGraph SQL Agent - Database interactions
- LangGraph Debugging - Production debugging
By working through this repository, you'll learn:
- State Management: How to maintain conversation and application state
- Graph Construction: Building complex workflows as directed graphs
- Agent Coordination: Managing multiple AI agents working together
- Tool Integration: Creating and using custom tools with agents
- RAG Implementation: Building retrieval-augmented generation systems
- Database Integration: Creating SQL-capable AI agents
- Debugging & Monitoring: Using LangSmith for debugging and observability
- Define state structure
- Create nodes (functions)
- Build the graph
- Add edges and conditions
- Compile and run
- Define shared state
- Create specialized agents
- Set up communication patterns
- Implement supervision logic
- Handle conflicts and coordination
- Prepare document corpus
- Set up vector store
- Create retrieval tools
- Build reasoning agent
- Implement answer synthesis
Happy learning! π