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

# Chroma 集成

> 使用 LangChain Python 集成 Chroma

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

## 安装和设置

```bash pip theme={null}
pip install langchain-chroma
```

```bash uv theme={null}
uv add langchain-chroma
```

## 向量存储

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

```python theme={null}
from langchain_chroma import Chroma
```

有关 Chroma 包装器的更详细说明，请参阅 [此笔记本](https://langchain-docs-zh.mintlify.site/langchain/oss/python/integrations/vectorstores/chroma.md)。

## 检索器

```python theme={null}
from langchain_classic.retrievers import SelfQueryRetriever
```

***

> 官方原文：[src/oss/python/integrations/providers/chroma.mdx](https://github.com/langchain-ai/docs/blob/main/src/oss/python/integrations/providers/chroma.mdx) · 非官方翻译，译文由 AI 生成，以英文原文为准。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.