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:
Jeff Huber 2023-02-15 22:37:58 -08:00 committed by GitHub
parent 05df480376
commit 34cba2da32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ class Chroma(VectorStore):
else:
self._collection = self._client.create_collection(
name=collection_name,
embedding_fn=self._embedding_function.embed_documents
embedding_function=self._embedding_function.embed_documents
if self._embedding_function is not None
else None,
)