https://github.com/langchain-ai/langchain
🦜🔗 Build context-aware reasoning applications
https://github.com/langchain-ai/langchain
Last synced: 9 days ago
JSON representation
🦜🔗 Build context-aware reasoning applications
- Host: GitHub
- URL: https://github.com/langchain-ai/langchain
- Owner: langchain-ai
- License: mit
- Created: 2022-10-17T02:58:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-05-12T16:19:58.000Z (9 months ago)
- Last Synced: 2025-05-12T16:26:31.042Z (9 months ago)
- Language: Jupyter Notebook
- Homepage: https://python.langchain.com
- Size: 407 MB
- Stars: 107,272
- Watchers: 751
- Forks: 17,434
- Open Issues: 318
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
- awesome_open_llms - langchain
- awesome-deep-research - LangChain - A framework for building applications powered by large language models, with components for research workflows. (🤖 Agent Technologies for Research / 🛠️ Agent Frameworks)
- my-awesome-starred - langchain-ai/langchain - 🦜🔗 The platform for reliable agents. (Python)
- awesome-ai-sdks - GitHub
- awesome-systematic-trading - LangChain - ai/langchain?style=social) - Building applications with LLMs through composability (Basic Components / Fundamental libraries)
- awesome - langchain-ai/langchain - 🦜🔗 The platform for reliable agents. (Python)
- awesome-mlops - LangChain
- awesome-llm - LangChain - ai/langchain?style=social) |  | (🏆 State-of-the-Art Repositories / 🥇 Must-Star Repositories)
- awesome-ml-python-packages - LangChain
- Awesome-Tool-Learning - LangChain - ai/langchain) (📱 Applications / 🧪 Evalution)
- awesome-openai - LangChain - Framework for building LLM-powered applications with modular components. (Libraries & SDKs / Frameworks & Tools)
- ai-game-devtools - LangChain
- awesome-llm-json - LangChain
- awesome-refreshing-llms - LangChain
- Awesome-AI-Agents - langchain - ⚡ Building applications with LLMs through composability ⚡  (Frameworks / Advanced Components)
- awesome-langchain-zh - LangChain - ai/langchain?style=social): 原始的🐍 (LangChain框架)
- awesome-genai - Langchain - Build context-aware reasoning applications. [](https://github.com/langchain-ai/langchain/network/members) [](https://github.com/langchain-ai/langchain/stargazers) (Tools & Frameworks / Development Frameworks)
- awesome-llm-and-aigc - LangChain
- awesome-generative-ai-data-scientist - LangChain
- awesome-ai-papers - [LangChain - rag/)\]\[[LangChain Hub](https://smith.langchain.com/hub)\]\[[LangGraph](https://github.com/langchain-ai/langgraph)\]\[[LangGraph 101](https://github.com/langchain-ai/langgraph-101)\]\[[executive-ai-assistant](https://github.com/langchain-ai/executive-ai-assistant)\] (NLP / 3. Pretraining)
- awesome-LLM-resources - LangChain - aware reasoning applications. (推理 Inference)
- awesome-multimodal-search - GitHub
- awesome-ai-agents - LangChain
- alan_awesome_llm - LangChain - aware reasoning applications. (推理 Inference)
- awesome-engineering - Langchain
- awesome-data-analysis - LangChain - Framework for developing applications powered by language models. (🧠 AI Applications & Platforms / Tools)
- awesome-repositories - langchain-ai/langchain - 🦜🔗 The platform for reliable agents. (Python)
- awesome-data-engineer - LangChain
- redis-ai-resources - LangChain Python
- Awesome-LLM4Security - langchain - 6B的微调模型对该事件进行分类。然后,根据分类后的结果,使用对应的prompt模板对ChatGLM-pro大模型进行请求,大模型根据向量库中的知识以及自身的逻辑推理能力,生成该类事件的分析研判流程。接着,Agent 根据事件的分析研判流程通过调用工具、访问大模型、请求网络等方式来对该事件进行研判。最后,根据分析的结果输出研判结论以及形成对应的研判报告。 | [AutoMSS](https://github.com/1700111005/autoMSS) | (资源列表 / 项目)
- awesome-generative-ai-meets-julia-language - LangChain - The best option for building applications on top of LLMs (eg, Chains, Agents). It has a lot of adapters for common models, databases, and other services. (Must-Know Python Projects / Generative AI - Previous Generation)
- awesome-ai - LangChain - LangChain is a framework for developing applications powered by large language models (LLMs). (Agent)
- awesome-ChatGPT-repositories - langchain - 🦜🔗 Build context-aware reasoning applications (Langchain)
- awesome-hacking-lists - langchain-ai/langchain - 🦜🔗 Build context-aware reasoning applications (Jupyter Notebook)
- awesome-production-machine-learning - LangChain - ai/langchain.svg?style=social) - LangChain assists in building applications with LLMs through composability. (Industry Strength Natural Language Processing)
- awesome-docker - langchain-ai/langchain
- my-awesome - langchain-ai/langchain - agents,anthropic,chatgpt,deepagents,enterprise,framework,gemini,generative-ai,langchain,langgraph,llm,multiagent,open-source,openai,pydantic,python,rag pushed_at:2026-02 star:125.6k fork:20.7k 🦜🔗 The platform for reliable agents. (Python)
- Awesome-AITools - Github - ai/langchain?style=social)|免费| (精选文章 / GPT-LLMs应用)
- awesome_ai_agents - LangChain Agents - Build context-aware reasoning applications. (Building / Frameworks)
- awesome-vibe-coding - LangChain - Build LLM apps. (Open Source Projects / Frameworks & Libraries)
- awesome-openai - LangChain
- awesome-langchain - LangChain GitHub - source repo. (Official Resources)
- Awesome-Long-Chain-of-Thought-Reasoning - LangChain
- awesome - langchain-ai/langchain - 🦜🔗 The platform for reliable agents. (Python)
- awesome - LangChain
- awesome - langchain-ai/langchain - 🦜🔗 The platform for reliable agents. (Python)
- awesome-github-star - langchain - ai | 63463 | (Python)
- A-to-Z-Resources-for-Students - LangChain + OpenAI Agent Playground
- jimsghstars - langchain-ai/langchain - 🦜🔗 Build context-aware reasoning applications (Jupyter Notebook)
- awesome-agent-papers - LangChain
- awesome-ai-agent-testing - LangChain - **15k+ stars** - Framework for developing applications powered by language models with extensive testing utilities. (Testing Frameworks / Open Source Frameworks)
- AiTreasureBox - langchain-ai/langchain - 11-09_119220_30](https://img.shields.io/github/stars/langchain-ai/langchain.svg)|⚡ Building applications with LLMs through composability ⚡| (Repos)
- awesome-python - LangChain - Building applications with LLMs through composability. (Machine Learning)
- awesome-ai-agents - LangChain - ai/langchain) |Tool integration, memory management, agent chaining | (🌟 Core Frameworks)
- awesome-prompt-engineering - LangChain - Framework for developing LLM applications (Tools & Frameworks / Prompt Testing & Optimization)
- awesome-ai-agents - langchain-ai/langchain - LangChain is a versatile framework for building and deploying applications powered by large language models, offering interoperability, real-time data integration, and advanced agent orchestration capabilities. (AI Agent Frameworks & SDKs / Orchestration Frameworks)
- Awesome-RAG - LangChain - ai/langchain?style=flat)](https://github.com/langchain-ai/langchain/stargazers) | (Libraries/Frameworks)
- awesome-production-llm - langchain - ai/langchain.svg?style=social) Build context-aware reasoning applications (LLM Application / RAG)
- awesome-local-llm - langchain - build context-aware reasoning applications (Tools / Agent Frameworks)
- stars - langchain-ai/langchain - 🦜🔗 Build context-aware reasoning applications (Python)
- awesome-vibe-coding - LangChain
- Awesome-RAG-Production - LangGraph
- Ultimate-AI-Resources - LangChain
- awesome-x-ops - LangChain
- awesome-agents - langchain - aware reasoning applications | framework | 107,188 | 17,419 | 326 | 476 | 0 days, 8 hrs, 0 mins | 885 | MIT License | (Table of Open-Source AI Agents Projects)
- Awesome-LLMOps - LangChain - aware reasoning applications.    (Orchestration / Workflow)
- fucking-awesome-python - LangChain - Building applications with LLMs through composability. (Machine Learning)
- awesome-ccamel - langchain-ai/langchain - 🦜🔗 The platform for reliable agents. (Python)
- awesome - langchain-ai/langchain - 🦜🔗 The platform for reliable agents. (Python)
- best-of-ai-open-source - GitHub - 3% open · ⏱️ 07.01.2025): (LLM Frameworks & Libraries)
- llmops - LangChain - ai/langchain?style=flat-square) | (Orchestration / Application Frameworks)
README
The platform for reliable agents.
LangChain is a framework for building agents and LLM-powered applications. It helps you chain together interoperable components and third-party integrations to simplify AI application development – all while future-proofing decisions as the underlying technology evolves.
```bash
pip install langchain
```
If you're looking for more advanced customization or agent orchestration, check out [LangGraph](https://docs.langchain.com/oss/python/langgraph/overview), our framework for building controllable agent workflows.
---
**Documentation**:
- [docs.langchain.com](https://docs.langchain.com/oss/python/langchain/overview) – Comprehensive documentation, including conceptual overviews and guides
- [reference.langchain.com/python](https://reference.langchain.com/python) – API reference docs for LangChain packages
- [Chat LangChain](https://chat.langchain.com/) – Chat with the LangChain documentation and get answers to your questions
**Discussions**: Visit the [LangChain Forum](https://forum.langchain.com) to connect with the community and share all of your technical questions, ideas, and feedback.
> [!NOTE]
> Looking for the JS/TS library? Check out [LangChain.js](https://github.com/langchain-ai/langchainjs).
## Why use LangChain?
LangChain helps developers build applications powered by LLMs through a standard interface for models, embeddings, vector stores, and more.
Use LangChain for:
- **Real-time data augmentation**. Easily connect LLMs to diverse data sources and external/internal systems, drawing from LangChain's vast library of integrations with model providers, tools, vector stores, retrievers, and more.
- **Model interoperability**. Swap models in and out as your engineering team experiments to find the best choice for your application's needs. As the industry frontier evolves, adapt quickly – LangChain's abstractions keep you moving without losing momentum.
- **Rapid prototyping**. Quickly build and iterate on LLM applications with LangChain's modular, component-based architecture. Test different approaches and workflows without rebuilding from scratch, accelerating your development cycle.
- **Production-ready features**. Deploy reliable applications with built-in support for monitoring, evaluation, and debugging through integrations like LangSmith. Scale with confidence using battle-tested patterns and best practices.
- **Vibrant community and ecosystem**. Leverage a rich ecosystem of integrations, templates, and community-contributed components. Benefit from continuous improvements and stay up-to-date with the latest AI developments through an active open-source community.
- **Flexible abstraction layers**. Work at the level of abstraction that suits your needs - from high-level chains for quick starts to low-level components for fine-grained control. LangChain grows with your application's complexity.
## LangChain ecosystem
While the LangChain framework can be used standalone, it also integrates seamlessly with any LangChain product, giving developers a full suite of tools when building LLM applications.
To improve your LLM application development, pair LangChain with:
- [Deep Agents](https://github.com/langchain-ai/deepagents) *(new!)* – Build agents that can plan, use subagents, and leverage file systems for complex tasks
- [LangGraph](https://docs.langchain.com/oss/python/langgraph/overview) – Build agents that can reliably handle complex tasks with LangGraph, our low-level agent orchestration framework. LangGraph offers customizable architecture, long-term memory, and human-in-the-loop workflows – and is trusted in production by companies like LinkedIn, Uber, Klarna, and GitLab.
- [Integrations](https://docs.langchain.com/oss/python/integrations/providers/overview) – List of LangChain integrations, including chat & embedding models, tools & toolkits, and more
- [LangSmith](https://www.langchain.com/langsmith) – Helpful for agent evals and observability. Debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and improve performance over time.
- [LangSmith Deployment](https://docs.langchain.com/langsmith/deployments) – Deploy and scale agents effortlessly with a purpose-built deployment platform for long-running, stateful workflows. Discover, reuse, configure, and share agents across teams – and iterate quickly with visual prototyping in [LangSmith Studio](https://docs.langchain.com/langsmith/studio).
## Additional resources
- [API Reference](https://reference.langchain.com/python) – Detailed reference on navigating base packages and integrations for LangChain.
- [Contributing Guide](https://docs.langchain.com/oss/python/contributing/overview) – Learn how to contribute to LangChain projects and find good first issues.
- [Code of Conduct](https://github.com/langchain-ai/langchain/?tab=coc-ov-file) – Our community guidelines and standards for participation.
- [LangChain Academy](https://academy.langchain.com/) – Comprehensive, free courses on LangChain libraries and products, made by the LangChain team.