LangChain
The most widely used framework for building LLM applications.
- Star 数
- 147.8K
- Fork 数
- 24.8K
- 未关闭 Issue
- 647
- 最近提交
- 2026-10-15
数据来自 GitHub API · 更新于 2026-10-15
LangChain 是什么?
LangChain provides standard interfaces for models, retrievers, tools and agents, plus hundreds of integrations. LangGraph, its companion library, adds stateful agent orchestration.
主要功能
- Unified model and tool interfaces
- Hundreds of integrations
- Agents via LangGraph
- Python and JavaScript versions
系统要求
- 平台
- Windows · macOS · Linux
- Python
- 3.9+
如何安装 LangChain
根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。
pip
- 1Install the core package and a provider integration.
pip install -U langchain langchain-openai
优势
- Largest ecosystem
- Good for prototyping fast
不足
- Abstractions can feel heavy
LangChain 替代品对比
| 软件 | Star 数 | 许可证 | 平台 | 显存 |
|---|---|---|---|---|
| LangChain The most widely used framework for building LLM applications. | 147.8K | MIT | — | |
| LlamaIndex Data framework for connecting LLMs to your documents. | 52.5K | MIT | — | |
| CrewAI Python framework for orchestrating role-playing, collaborative AI agents. | 59.7K | MIT | — | |
| AutoGen Microsoft’s framework for building multi-agent AI applications. | 61.4K | CC-BY-4.0 | — | |
| Open WebUI Self-hosted ChatGPT-style interface for Ollama and OpenAI-compatible APIs. | 155.7K | Open WebUI License (BSD-3-Clause based) | — | |
| LibreChat Open-source ChatGPT clone supporting every major AI provider. | 45.7K | MIT | — |
常见问题
LangChain 免费吗?
是的——LangChain 是开源软件,采用 MIT 许可证。商用前请确认软件及模型权重的许可条款。
LangChain 支持 Windows、Mac 和 Linux 吗?
LangChain 支持:Windows, macOS, Linux。
如何安装 LangChain?
1. Install the core package and a provider integration.
LangChain 有哪些好的替代品?
常见替代品包括 LlamaIndex, CrewAI, AutoGen, Open WebUI,详见本页对比表。