This is the code for creating collection in ChromaDB:
client = chromadb.Client()
collection = client.create_collection(
name="collection_name",
metadata={"hnsw:space": "cosine"}
)
and this is for adding data to collection:
collection.add(
documents=a['documents'],
metadatas=b['metadatas'],
ids=c['ids']
)
Is there a way to speed up this process? I was expecting it to work faster or more efficiently.