
ChromaDB Has a Free API — The Simplest Vector Database
ChromaDB is the easiest vector database to get started with. Install, embed, search — three lines of code. Perfect for RAG and AI prototypes. What Is ChromaDB? ChromaDB is an open-source embedding database designed for AI applications. It handles embedding, storing, and searching vectors with minimal code. Quick Start pip install chromadb Python API (3 lines to search) import chromadb client = chromadb . Client () collection = client . create_collection ( " docs " ) # Add documents (ChromaDB auto-embeds!) collection . add ( documents = [ " AI is transforming healthcare " , " Python is great for data science " , " Docker simplifies deployment " ], ids = [ " doc1 " , " doc2 " , " doc3 " ] ) # Search by meaning results = collection . query ( query_texts = [ " machine learning in medicine " ], n_results = 2 ) print ( results [ " documents " ]) # Returns: [["AI is transforming healthcare", ...]] REST API (Server Mode) # Start server chroma run --path ./data --port 8000 # Add documents curl
Continue reading on Dev.to Python
Opens in a new tab



