Langchain1.0-Langgraph1.0-Learning  by BrandPeng

Mastering LLM agents and RAG with LangChain 1.0 & LangGraph

Created 3 months ago
343 stars

Top 80.7% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This repository offers a structured, phased learning curriculum for mastering LangChain 1.0 and LangGraph 1.0, with a strong emphasis on agent development. It targets developers aiming to build sophisticated LLM-driven applications, providing a complete path from fundamental concepts to practical, end-to-end project implementations. The project serves as a hands-on guide to the latest features and best practices in the LangChain ecosystem.

How It Works

The project leverages LangChain 1.0's core architecture, which is built upon the LangGraph runtime. This foundation enables enhanced capabilities such as persistence, streaming, and human-in-the-loop interactions. Key components include the simplified create_agent API, a flexible middleware system for fine-grained execution control, robust multimodal support (text, image, video, file), and structured output generation using Pydantic models. LangGraph's state management and graph-based execution are central to orchestrating complex agentic workflows.

Quick Start & Requirements

  • Installation: Clone the repository, create a Python 3.10+ virtual environment, and install dependencies using pip install -r requirements.txt.
  • Configuration: Copy .env.example to .env and populate required API keys.
  • Prerequisites: Python 3.10 or higher is mandatory; Python 3.9 is unsupported.
  • API Keys: GROQ_API_KEY (https://console.groq.com/keys) and PINECONE_API_KEY (https://www.pinecone.io/) are essential. OPENAI_API_KEY (https://platform.openai.com/api-keys) and LANGSMITH_API_KEY (https://smith.langchain.com/) are optional.
  • Verification: Execute python phase1_fundamentals/01_hello_langchain/main.py to confirm setup.

Highlighted Details

  • LangChain 1.0 Features: Built on LangGraph runtime, new create_agent API, middleware architecture, multimodal input handling, and Pydantic-based structured output.
  • Learning Structure: A four-phase curriculum (Fundamentals, Practical, Advanced, Projects) comprising 22 distinct modules and 3 comprehensive projects.
  • Project Scope: Includes end-to-end implementations for RAG systems, multi-agent customer support solutions, and advanced research assistants.
  • Core Technologies: Utilizes Agentic RAG, Agents, LangChain, LangGraph, ChromaDB, SQLite, FastAPI, Vue, and MCP.

Maintenance & Community

This repository appears to be a personal learning project. The README does not provide details on active maintainers, community channels (e.g., Discord, Slack), or specific sponsorships.

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: The MIT license is highly permissive, allowing for commercial use and integration into closed-source projects without significant restrictions.

Limitations & Caveats

  • Python Version: Strictly requires Python 3.10 or newer; Python 3.9 is explicitly unsupported.
  • API Dependencies: Functionality relies on external API keys, with potential costs associated with services like OpenAI and Pinecone beyond their free tiers.
  • Deprecation: The project utilizes langchain.agents.create_agent, noting that langgraph.prebuilt.create_react_agent is deprecated and slated for removal in V2.0.
Health Check
Last Commit

3 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
2
Star History
124 stars in the last 30 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Shizhe Diao Shizhe Diao(Author of LMFlow; Research Scientist at NVIDIA), and
20 more.

dify by langgenius

0.8%
137k
Open-source LLM app development platform
Created 3 years ago
Updated 4 hours ago
Feedback? Help us improve.