Embeddings made easy
Chroma has all the tools you need to use embeddings
As easy as pip install
, use in a notebook in 5 seconds
Search, filtering,
and more
Plugs right in to LangChain, LlamaIndex, OpenAI and others
npm install chromadb
and it ships with @types
Free Apache 2.0 and open source
install chroma
pip install chromadb
the core API is 4 commands
import chromadb
client = chromadb.Client()
collection = client.create_collection("sample_collection")
# Add docs to the collection. Can also update and delete. Row-based API coming soon!collection.add(
documents=["This is document1", "This is document2"], # we embed for you, or bring your own metadatas=[{"source": "notion"}, {"source": "google-docs"}], # filter on arbitrary metadata! ids=["doc1", "doc2"], # must be unique for each doc )
results = collection.query(
query_texts=["This is a query document"],
n_results=2,
# where={"metadata_field": "is_equal_to_this"}, # optional filter # where_document={"$contains":"search_string"} # optional filter)
Roadmap
Chroma is building the database that learns. Pick up an issue, create a PR, or participate in our Discord and let the community know what features you would like.
Hosted Chroma
Yes! We want to offer hosted Chroma and we need your help. Sign up for the cloud product waitlist. Coming Q3 2023.