mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-15 07:00:38 +00:00
Apply patch [skip ci]
This commit is contained in:
@@ -440,8 +440,8 @@ class Chroma(VectorStore):
|
||||
"""Ensure that the collection exists or create it."""
|
||||
if self._client is None:
|
||||
msg = (
|
||||
"Cannot ensure collection synchronously when only async_client is provided. "
|
||||
"Use async methods or provide a sync client."
|
||||
"Cannot ensure collection synchronously when only async_client "
|
||||
"is provided. Use async methods or provide a sync client."
|
||||
)
|
||||
raise ValueError(msg)
|
||||
self._chroma_collection = self._client.get_or_create_collection(
|
||||
@@ -1758,3 +1758,4 @@ class Chroma(VectorStore):
|
||||
metadatas = [doc.metadata for doc in documents]
|
||||
return await self.aadd_texts(texts, metadatas=metadatas, **kwargs)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user