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`.
searx-api
Jeff Huber 1 year ago committed by GitHub
parent 05df480376
commit 34cba2da32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save