Find answers from the community

Home
Members
NorrisZhu
N
NorrisZhu
Offline, last seen 3 months ago
Joined September 25, 2024
N
NorrisZhu
·

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)
1 comment
L