Files
nexus/wiki/concepts/LangChain.md

1.4 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
LangChain concept
llm
framework
agent
development
大模型相关术语和框架总结llm-mcp-prompt-rag-vllm-token-数据蒸馏
2026-04-25

LangChain

Definition

LangChain 是一个快速实现 AI Agent 的开发框架,提供了标准接口,用于:

  • 将不同的 LLM 连接在一起
  • 与其他工具和数据源的集成

LangChain 降低了构建基于 LLM 的应用程序的开发门槛提供了链式调用Chain、代理Agent、记忆Memory等抽象使开发者能够快速组装复杂的 LLM 应用。

Relationship to MCP

LangChain 和 Model Context Protocol 都试图解决"LLM 与外部工具集成"的问题,但层次不同:

  • Model Context Protocol 是一个开放协议标准(协议层)
  • LangChain 是一个应用开发框架(框架层)

LangChain 可视为 MCP 思想的具体实现之一——在 MCP 出现之前LangChain 已是 Agent 开发的事实标准。

Sources