AI TOOL / #12918
Chroma
An AI-oriented retrieval infrastructure: a lightweight, embedded vector database.
Introduction
Chroma - the open-source data infrastructure for AI.
| Docs |
pip install chromadb # python client
# for javascript, npm install chromadb!
# for client-server mode, chroma run --path /chroma_db_path
Chroma Cloud
Our hosted service, Chroma Cloud, powers serverless vector, hybrid, and full-text search. It's extremely fast, cost-effective, scalable and painless. Create a DB and try it out in under 30 seconds with $5 of free credits.
API
The core API is only 4 functions (run our 💡 Google Colab):
import chromadb
# setup Chroma in-memory, for easy prototyping. Can add persistence easily!
client = chromadb.Client()
# Create collection. get_collection, get_or_create_collection, delete_collection also available!
collection = client.create_collection("all-my-documents")
# 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 handle tokenization, embedding, and indexing automatically. You can skip that and add your own embeddings as well
metadatas=[{"source": "notion"}, {"source": "google-docs"}], # filter on these!
ids=["doc1", "doc2"], # unique for each doc
)
# Query/search 2 most similar results. You can also .get by id
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
)
Learn about all features on our Docs
Get involved
Chroma is a rapidly developing project. We welcome PR contributors and ideas for how to improve the project.
- Join the conversation on Discord -
#contributingchannel - Review the 🛣️ Roadmap and contribute your ideas
- Grab an issue and open a PR -
Good first issue tag - Read our contributing guide
Release Cadence We currently release new tagged versions of the pypi and npm packages on Mondays. Hotfixes go out at any time during the week.
License
Related
HelloGitHub
HelloGitHub is a community platform dedicated to discovering and sharing interesting, beginner-friendly open-source projects. It was originally launched in the form of a monthly publication called "HelloGitHub Monthly" – designed to help novice programmers and developers easily find valuable open-source resources. Key features: The core functionality of this community...
Memory of the World
“Memory of the World” is an international initiative launched by UNESCO, aimed at preserving and promoting documentary heritage of global significance. This program includes a collection of precious archival materials from all over the world.
Calligraphy Jungle
“Calligraphy Jungle” is an online typing course offered by edclub, and it is also the only Chinese-language course available on edclub. This is a highly comprehensive tutorial for practicing pinyin-based typing, consisting of nearly 500 carefully selected lessons designed to help you improve your typing speed more efficiently. These courses include various typing games as well.
PlayUnb
PlayUnb is a gaming platform that allows you to relive the classics of your childhood. It brings together hundreds of classic and modern games from various genres, including NES, GBA, HTML5, and Flash. Titles such as "Super Mario", "Pac-Man", "Bomberman", and "Ninjapoid" are all available on this platform.
Funny meme stickers
Funny Dude Saves the World
"Funny Dude Saves the World" is a fun meme search website where you can find memes featuring all kinds of elements. The website is currently inaccessible: http://www.dbbqb.com. For now, it has been replaced by Doutu La: https://www.dou
cat scratch
Cat Catch is an extension designed to help users identify and access media resources on the web. It automatically analyzes audio and video elements within web pages, enabling users to quickly download online content. Whether it’s videos or audio on a webpage, this plugin makes downloading them much easier. For example, it can easily handle segmented videos on platforms like Bilibili.