Chroma Logo
DocumentationGithubDiscordBlog

chroma

the AI-native open-source embedding database

Getting StartedColab Demo

Embeddings made easy

Chroma has all the tools you need to use embeddings

Simple

As easy as pip install, use in a notebook in 5 seconds

Feature-rich

Search, filtering,
and more

Integrations

Plugs right in to LangChain, LlamaIndex, OpenAI and others

JavaScript Client

npm install chromadb and it ships with @types

Free

Apache 2.0 and open source

install chroma

1pip install chromadb

the core API is 4 commands

1import chromadb
2client = chromadb.Client()
3
4collection = client.create_collection("sample_collection")
5
6collection.add(
7  embeddings=[[1.2, 2.3, 4.5], [6.7, 8.2, 9.2]],
8  documents=["This is a document", "This is another document"],
9  metadatas=[{"source": "my_source"}, {"source": "other_source"}],
10  ids=["doc1", "doc2"]
11)
12
13collection.query(
14  query_embeddings=[5.0, 4.0, 3.0],
15  n_results=2,
16  where={"source": "my_source"}
17)  

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. Fill out the survey to jump the waitlist. Coming Q3 2023.

30 second survey
Join DiscordGithubTwitter
AboutWork with Chroma 5Contact Us

© 2023 Chroma. All rights reserved

Twitter