mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 19:11:33 +00:00
fix chroma from_texts bug (#11984)
This commit is contained in:
parent
c149954cc5
commit
122af2effe
@ -626,6 +626,8 @@ class Chroma(VectorStore):
|
|||||||
collection_metadata=collection_metadata,
|
collection_metadata=collection_metadata,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
if ids is None:
|
||||||
|
ids = [str(uuid.uuid1()) for _ in texts]
|
||||||
if hasattr(
|
if hasattr(
|
||||||
chroma_collection._client, "max_batch_size"
|
chroma_collection._client, "max_batch_size"
|
||||||
): # for Chroma 0.4.10 and above
|
): # for Chroma 0.4.10 and above
|
||||||
|
Loading…
Reference in New Issue
Block a user