Chroma
vector store.
Chroma is a AI-native open-source vector database focused on developer productivity and happiness. Chroma is licensed under Apache 2.0. View the full docs of Chroma
at this page, and find the API reference for the LangChain integration at this page.
Chroma
vector stores you’ll need to install the langchain-chroma
integration package.
Chroma
vector store without any credentials, simply installing the package above is enough!
If you are a Chroma Cloud user, set your CHROMA_TENANT
, CHROMA_DATABASE
, and CHROMA_API_KEY
environment variables.
When you install the chromadb
package you also get access to the Chroma CLI, which can set these for you. First, login via the CLI, and then use the connect
command:
Chroma
instance with a collection name and your embeddings provider:
persist_directory
argument to save your data across multiple runs of your program:
host
argument.
For example, you can start a Chroma server running locally with chroma run
, and then connect it with host='localhost'
:
port
, ssl
, and headers
arguments to customize your connection.
Chroma
instance with your Chroma Cloud API key, tenant, and DB name:
Chroma
client, which is particularly useful if you want easier access to the underlying database.
chroma run
):
CHROMA_API_KEY
, CHROMA_TENANT
, and CHROMA_DATABASE
, you can simply instantiate:
add_documents
function.
update_documents
function.
AstraDBVectorStore
check out the API reference.
Chroma
vector store features and configurations head to the API reference: https://python.langchain.com/api_reference/chroma/vectorstores/langchain_chroma.vectorstores.Chroma.html