
ChromaDB Has a Free API: The Simplest Vector Database for AI Prototyping
ChromaDB is the simplest vector database — pip install, 4 lines of code, and you have a working semantic search. It runs embedded (in-process) or as a server, with a clean Python and JavaScript API. Why ChromaDB? 4 lines to start — simplest API of any vector database Embedded mode — runs in-process, no server needed Auto-embedding — built-in OpenAI, Sentence Transformers, etc. Multi-modal — text, images, documents Free — open source, Apache 2.0 Install pip install chromadb Minimal Example (4 Lines!) import chromadb client = chromadb . Client () collection = client . create_collection ( " docs " ) collection . add ( documents = [ " AI is transforming search " , " Vector databases store embeddings " , " RAG combines retrieval and generation " ], ids = [ " doc1 " , " doc2 " , " doc3 " ], ) results = collection . query ( query_texts = [ " how does AI search work? " ], n_results = 2 ) print ( results [ ' documents ' ]) # Most relevant documents With Metadata Filtering import chromadb client
Continue reading on Dev.to Python
Opens in a new tab



