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) Add a reply
Sign up and join the conversation on Discord