
Chroma Has a Free API — Here's How to Build AI Apps with the Simplest Vector Database
Why Chroma? Chroma is the simplest vector database for AI. It runs embedded in your Python or JavaScript app — no server setup, no Docker, no infrastructure. Just pip install and go. Free and open source. Chroma Cloud coming soon with managed hosting. Getting Started Python (Embedded — Zero Setup) pip install chromadb import chromadb client = chromadb . Client () # In-memory # Or persistent: # client = chromadb.PersistentClient(path="./chroma_data") # Create collection (auto-embeds with default model!) collection = client . create_collection ( name = " articles " ) # Add documents — Chroma embeds them automatically! collection . add ( documents = [ " Machine learning is transforming how we build software " , " React Server Components change the way we think about rendering " , " Docker containers simplify deployment and scaling " , " GraphQL provides a flexible alternative to REST APIs " , " Rust ' s ownership model prevents memory bugs at compile time " ], ids = [ " ml-1 " , " react-1
Continue reading on Dev.to Python
Opens in a new tab

