LangChain 有多个官方主页和资源,主要分为以下几个:

一、核心官方网站

1. 主文档网站 🌟

https://python.langchain.com/

  • 最新、最全面的官方文档

  • 包含所有模块的API参考

  • 教程、指南和示例代码

  • 支持中文翻译(部分)

2. 旧版文档

https://docs.langchain.com/

  • 旧版本的文档

  • 可能包含一些新版本没有的内容

  • 正在逐步迁移到新站点

3. GitHub 仓库

https://github.com/langchain-ai/langchain

  • 源代码

  • Issues 和 Discussions

  • 贡献指南

  • 版本发布信息

二、中文资源

1. 中文文档

https://python.langchain.cn/

  • 由社区维护的中文翻译

  • 包含大部分核心文档

  • 适合中文用户快速上手

2. 中文教程和博客

https://www.langchain.com.cn/

  • 中文教程和案例分享

  • 本地化最佳实践

三、主要模块链接

模块 文档链接 GitHub 仓库
LangChain 核心 https://python.langchain.com/docs/ https://github.com/langchain-ai/langchain
LangSmith https://docs.smith.langchain.com/ https://github.com/langchain-ai/langsmith
LangGraph https://langchain-ai.github.io/langgraph/ https://github.com/langchain-ai/langgraph
LangServe https://python.langchain.com/docs/langserve/ https://github.com/langchain-ai/langserve

四、快速访问指南

新手入门路径:

  1. 安装指南https://python.langchain.com/docs/get_started/installation

  2. 快速开始https://python.langchain.com/docs/get_started/quickstart

  3. 概念解释https://python.langchain.com/docs/concepts/

核心功能:

  1. LLMshttps://python.langchain.com/docs/modules/model_io/llms/

  2. Prompt Templateshttps://python.langchain.com/docs/concepts/#prompt-templates

  3. Chainshttps://python.langchain.com/docs/concepts/#chains

  4. Agentshttps://python.langchain.com/docs/concepts/#agents

  5. RAGhttps://python.langchain.com/docs/use_cases/question_answering/

工具和集成:

  1. 集成列表https://python.langchain.com/docs/integrations/

  2. 向量数据库https://python.langchain.com/docs/integrations/vectorstores/

  3. 工具https://python.langchain.com/docs/integrations/tools/

五、实用资源链接

1. Cookbook 示例

https://github.com/langchain-ai/langchain-cookbook

  • 实际应用示例

  • 特定场景的解决方案

  • 最佳实践代码

2. LangChain Templates

https://github.com/langchain-ai/langchain/tree/master/templates

  • 预构建的应用模板

  • 一键部署的示例

  • 包含各种使用场景

3. YouTube 频道

https://www.youtube.com/@LangChain

  • 视频教程

  • 新功能演示

  • 社区分享

4. Discord 社区

https://discord.gg/langchain

  • 实时讨论

  • 技术问答

  • 社区支持

5. 官方博客

https://blog.langchain.dev/

  • 最新发布

  • 技术深度解析

  • 行业应用案例

六、国内访问建议

由于网络原因,国内用户可能会遇到访问困难,以下建议:

1. 使用镜像或代理

# 设置pip镜像
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

# 或者使用镜像安装
pip install langchain -i https://pypi.tuna.tsinghua.edu.cn/simple

2. 备用文档源

3. 本地文档

# 克隆文档仓库
git clone https://github.com/langchain-ai/langchain
cd langchain/docs

# 本地启动文档(需要安装mkdocs)
pip install mkdocs-material
mkdocs serve
# 然后在浏览器访问 http://localhost:8000

七、最新动态关注

1. X/Twitter

https://twitter.com/LangChainAI

  • 官方发布

  • 最新功能

  • 社区活动

2. GitHub Stars

# 查看项目趋势
https://github.com/langchain-ai/langchain/stargazers

# 查看更新日志
https://github.com/langchain-ai/langchain/releases

3. 官方公告

  • 重大版本:关注 GitHub Releases

  • 架构变更:查看官方博客和文档

  • 弃用通知:查看 Deprecation Warnings

八、学习路径推荐

初学者(1-2周):

  1. 访问中文文档:https://python.langchain.cn/

  2. 学习基本概念

  3. 完成快速开始教程

中级用户(1-2个月):

  1. 阅读官方文档的 Concepts 部分

  2. 实践各种 Modules

  3. 查看 Cookbook 示例

高级用户:

  1. 深入源码:https://github.com/langchain-ai/langchain

  2. 关注 LangGraph 和 LangSmith

  3. 参与社区讨论

九、常见问题直达

  1. 安装问题https://python.langchain.com/docs/get_started/installation

  2. API 密钥设置https://python.langchain.com/docs/security/

  3. 版本迁移https://python.langchain.com/docs/versions/migration/

  4. 故障排除https://python.langchain.com/docs/guides/debugging

十、其他有用链接

1. 官方演示应用

https://smith.langchain.com/hub

  • LangSmith Hub

  • 预构建的工作流

  • 社区分享的模板

2. API 参考

https://api.python.langchain.com/

  • 完整的 API 文档

  • 类型提示和参数说明

3. 社区资源


总结建议

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐