Chroma Slim
ChromaSlim Class Documentation
Overview
Usage
import chromadb
from RAGchain.utils.vectorstore import ChromaSlim
from RAGchain.utils.embed import EmbeddingFactory
chroma_path = "your/chroma/path"
chroma_slim = ChromaSlim(
client=chromadb.PersistentClient(path=chroma_path),
collection_name="your-chroma-collection",
embedding_function=EmbeddingFactory('openai').get()
)
# add passage to ChromaSlim
passages =[...list_of_passages...] # Assume we have list_of_passages retrieved earlier
chroma_slim.add_passages(passages)Last updated