> ## Documentation Index
> Fetch the complete documentation index at: https://nvd-54.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IBM 集成

> 使用 LangChain Python 与 IBM 集成。

LangChain integrations related to IBM technologies, including the
[IBM watsonx.ai](https://www.ibm.com/products/watsonx-ai) platform and DB2 database.

## Watsonx AI

IBM® watsonx.ai™ AI studio is part of the IBM [watsonx](https://www.ibm.com/watsonx)™ AI and data platform, bringing together new generative
AI capabilities powered by [foundation models](https://www.ibm.com/products/watsonx-ai/foundation-models) and traditional machine learning (ML)
into a powerful studio spanning the AI lifecycle. Tune and guide models with your enterprise data to meet your needs with easy-to-use tools for
building and refining performant prompts. With watsonx.ai, you can build AI applications in a fraction of the time and with a fraction of the data.
Watsonx.ai offers:

* **Multi-model variety and flexibility:** Choose from IBM-developed, open-source and third-party models, or build your own model.
* **Differentiated client protection:** IBM stands behind IBM-developed models and indemnifies the client against third-party IP claims.
* **End-to-end AI governance:** Enterprises can scale and accelerate the impact of AI with trusted data across the business, using data wherever it resides.
* **Hybrid, multi-cloud deployments:** IBM provides the flexibility to integrate and deploy your AI workloads into your hybrid-cloud stack of choice.

### 模型接口

<Columns cols={2}>
  <Card title="ChatWatsonx" href="/oss/python/integrations/chat/ibm_watsonx" cta="开始使用" icon="message" arrow>
    IBM watsonx.ai chat models.
  </Card>

  <Card title="WatsonxLLM" href="/oss/python/integrations/llms/ibm_watsonx" cta="开始使用" icon="cursor-text" arrow>
    (Legacy) IBM watsonx.ai text completion models.
  </Card>

  <Card title="WatsonxEmbeddings" href="/oss/python/integrations/embeddings/ibm_watsonx" cta="开始使用" icon="stack-2" arrow>
    IBM watsonx.ai embedding models.
  </Card>
</Columns>

### 工具和工具包

<Columns cols={2}>
  <Card title="WatsonxToolkit" href="/oss/python/integrations/tools/ibm_watsonx" cta="开始使用" icon="tools" arrow>
    IBM watsonx.ai toolkit.
  </Card>

  <Card title="WatsonxSQLDatabaseToolkit" href="/oss/python/integrations/tools/ibm_watsonx_sql" cta="开始使用" icon="tools" arrow>
    IBM watsonx.ai SQL Database toolkit.
  </Card>
</Columns>

### 检索器

<Columns cols={2}>
  <Card title="WatsonxRerank" href="/oss/python/integrations/retrievers/ibm_watsonx_ranker" cta="开始使用" icon="download" arrow>
    IBM watsonx.ai document retriever.
  </Card>
</Columns>

## DB2

The IBM DB2 relational database v12.1.2 and above offers the abilities of vector store
and vector search. Installation of `langchain-db2` package will give LangChain users
the support of DB2 vector store and vector search.

<Note>
  `langchain-db2` is a separate package for Vector Store feature only, and can be run without the `langchain-ibm` 包。
</Note>

### 向量存储

<Columns cols={2}>
  <Card title="DB2VS" href="/oss/python/integrations/vectorstores/db2" cta="开始使用" icon="database" arrow>
    IBM DB2 Vector Store and Vector Search
  </Card>
</Columns>

***

<div className="source-links">
  <Callout icon="terminal-2">
    [将这些文档连接](/use-these-docs) 到 Claude、VSCode 等工具，通过 MCP 获取实时答案。
  </Callout>

  <Callout icon="edit">
    [在 GitHub 上编辑此页面](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/ibm.mdx)或[提交 issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>
</div>
