集成包是用户可以安装以在其项目中使用的 Python 包。它们实现符合 LangChain 接口标准的一个或多个组件。 LangChain 组件是 langchain-core 中基类的子类。示例包括聊天模型工具检索器等。 您的集成包通常将实现至少一个这些组件的子类。展开下面的选项卡以查看每个的详细信息。
  • Chat Models
  • Tools
  • Retrievers
  • Vector Stores
  • Embeddings
Chat models are subclasses of the BaseChatModel class. They implement methods for generating chat completions, handling message formatting, and managing model parameters.
The chat model integration guide is currently WIP. In the meantime, read the chat model conceptual guide for details on how LangChain chat models function.

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.