Skip to main content

Chroma integrations

还没翻译译自英文(docs.langchain.com)本页 8 段都还没译

Chroma is a database for building AI applications with embeddings.

Installation and setup

pip install langchain-chroma
uv add langchain-chroma

VectorStore

There exists a wrapper around Chroma vector databases, allowing you to use it as a vectorstore, whether for semantic search or example selection.

from langchain_chroma import Chroma

For a more detailed walkthrough of the Chroma wrapper, see this notebook.

Retriever

from langchain_classic.retrievers import SelfQueryRetriever