Find answers from the community

Updated 2 months ago

Chroma

create a collection

chroma_collection = chroma_client.create_collection("newspieces")

print(chroma_collection.count())

documents = SimpleDirectoryReader("news").load_data()

print(documents)
print(type(documents))

index = GPTVectorStoreIndex.from_documents(documents, chroma_collection=chroma_collection, show_progress=True)
L
1 comment
Please see the guide for chroma here

https://gpt-index.readthedocs.io/en/latest/examples/vector_stores/ChromaIndexDemo.html

You'll have to use the vector store and storage context
Add a reply
Sign up and join the conversation on Discord