mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 23:29:21 +00:00
Fix typo in integration with Chroma (#1070)
We introduced a breaking change but missed this call. This PR fixes `langchain` to work with upstream `chroma`.
This commit is contained in:
parent
05df480376
commit
34cba2da32
@ -64,7 +64,7 @@ class Chroma(VectorStore):
|
|||||||
else:
|
else:
|
||||||
self._collection = self._client.create_collection(
|
self._collection = self._client.create_collection(
|
||||||
name=collection_name,
|
name=collection_name,
|
||||||
embedding_fn=self._embedding_function.embed_documents
|
embedding_function=self._embedding_function.embed_documents
|
||||||
if self._embedding_function is not None
|
if self._embedding_function is not None
|
||||||
else None,
|
else None,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user