Jednoduchá vector DB pro prototypy.
Instalace¶
pip install chromadb
Použití¶
import chromadb client = chromadb.Client() col = client.create_collection(‘docs’) col.add(documents=[‘PG je DB’,’Redis je cache’], ids=[‘d1’,’d2’]) results = col.query(query_texts=[‘relační databáze’], n_results=5)
Persistent¶
client = chromadb.PersistentClient(path=’/data/chroma’)
ChromaDB pro start¶
Nejjednodušší vector search. Pro produkci Pinecone/Qdrant.
chromadbvector dbpython