Einfache Vektordatenbank für Prototypen.
Installation¶
pip install chromadb
Verwendung¶
import chromadb
client = chromadb.Client()
col = client.create_collection('docs')
col.add(documents=['PG ist eine DB','Redis ist ein Cache'], ids=['d1','d2'])
results = col.query(query_texts=['relationale Datenbank'], n_results=5)
Persistent¶
client = chromadb.PersistentClient(path='/data/chroma')
ChromaDB zum Einstieg¶
Einfachste Vektorsuche. Für Produktion Pinecone/Qdrant verwenden.
chromadbvector dbpython