fix chroma from_texts bug (#11984)

This commit is contained in:
Bagatur 2023-10-18 09:24:04 -07:00 committed by GitHub
parent c149954cc5
commit 122af2effe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -626,6 +626,8 @@ class Chroma(VectorStore):
collection_metadata=collection_metadata,
**kwargs,
)
if ids is None:
ids = [str(uuid.uuid1()) for _ in texts]
if hasattr(
chroma_collection._client, "max_batch_size"
): # for Chroma 0.4.10 and above