--- title: "LangChain" type: entity tags: [RAG框架, LLM, 开发框架] --- ## Definition LangChain是一个简化RAG流程的开发框架,提供Chain、Agent、Memory等抽象。 ## Core Mechanism - Chain:串联LLM与工具/数据源 - Agent:自主决策执行路径 - Memory:会话记忆管理 ## Key Properties - Python和JavaScript双版本 - 丰富的内置组件 - 活跃的开源社区 ## Connections - [[RAG]] ← 工具 ← [[LangChain]] - [[LlamaIndex]] ← 类似 ← [[LangChain]]