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

# Chroma 集成

> 使用 LangChain Python 与 Chroma 进行集成。

> [Chroma](https://docs.trychroma.com/getting-started) 是一个用于构建带有嵌入功能的 AI 应用程序的数据库。

## 安装和设置

<CodeGroup>
  ```bash pip theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  pip install langchain-chroma
  ```

  ```bash uv theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  uv add langchain-chroma
  ```
</CodeGroup>

## 向量存储

存在一个针对 Chroma 向量数据库的包装器，允许您将其用作向量存储，无论是用于语义搜索还是示例选择。

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_chroma import Chroma
```

有关 Chroma 包装器的更详细教程，请参阅 [此笔记本](/oss/python/integrations/vectorstores/chroma)

## 检索器

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_classic.retrievers import SelfQueryRetriever
```

***

<div className="source-links">
  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/i18n\zh-CN\oss\python\integrations\providers\chroma.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
