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
Easy-to-search websites – an efficient way to find what you need online
Yisou Site is a web data search engine that can help you efficiently locate high-quality websites. It is an essential tool for promotional and operational purposes, offering features such as quick filtering of SEO-friendly sites, analysis of competitors in the same industry, recommendations for similar websites, queries related to sub-sites, and comparison of website traffic data. For ordinary users, it can serve as a useful alternative to other traditional methods.
Liber3
Liber3 is an e-book search engine that uses IPFS for downloads. Although its selection of resources can't compare with Zlibrary, most common e-books can basically be found and downloaded. Its advantage is that the website is simple and easy to use—searching and downloading are easy, and you can download in just a couple of clicks! 1. Open the website and...
Source repository
Source Repository: This website serves as the source repository for both the Reading APP and the Dimensional Comics APP. Recently, it has also added TVbox video resources, as well as book materials from the “Search for Books” platform. It contains thousands of novel resources from the Reading APP and hundreds of comic images from various Dimensional Comics APPs.
Reading APP: This is an open-source application.
Sima Yue
SmartRead is an AI-based document reading and analysis tool that utilizes artificial intelligence technology and intelligent document processing methods to quickly extract information from complex documents. Through interactive chat sessions, it enables users to obtain critical information and insights in a precise and flexible manner, significantly reducing the time required for document reading and information retrieval.
Little Bunny Calligraphy Copybook
Tuxiaoguai Copybook is a free online children's copybook generator. Parents can generate copybooks online based on their child's age, and the tool supports direct printing on A4 paper. It covers Chinese character copybooks, pinyin copybooks, number copybooks, Chinese-style copybooks, and more, and also supports settings for font, font size, format, color, and more.
AI-generated paintings
"Dream Creation Diary" is a WeChat mini-program that uses AI technology for painting. With just a simple description, it can generate various styles of artwork for you! You can use it directly by scanning the QR code on WeChat. New users can create dozens of free paintings, and signing in every day will also grant you additional free generation opportunities. Just scan the QR code on WeChat to start using it for free.