vector stores
. For detailed documentation of all Chroma
features and configurations head to the API reference.
Class | Package | PY support | Package latest |
---|---|---|---|
Chroma | @langchain/community | ✅ |
@langchain/community
integration package along with the Chroma JS SDK as a peer dependency.
This guide will also use OpenAI embeddings, which require you to install the @langchain/openai
integration package. You can also use other supported embeddings models if you wish.
chromadb
package:
CHROMA_TENANT
, CHROMA_DATABASE
, and CHROMA_API_KEY
environment variables.
The Chroma CLI can set these for you. First, login via the CLI, and then use the connect
command:
OpenAIEmbeddings
:
Chroma
instantiation will connect to a Chroma server running locally on http://localhost:8000
:
host
, port
and whether to connect using ssl
:
tenant
, database
, and chromaCloudAPIKey
:
Chroma
features and configurations head to the API reference