fix chroma from_texts bug (#11984)

pull/11989/head
Bagatur 12 months ago committed by GitHub
parent c149954cc5
commit 122af2effe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save