From 34cba2da3264ccc9100f7efd16807c8d2a51734c Mon Sep 17 00:00:00 2001 From: Jeff Huber Date: Wed, 15 Feb 2023 22:37:58 -0800 Subject: [PATCH] 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`. --- langchain/vectorstores/chroma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/vectorstores/chroma.py b/langchain/vectorstores/chroma.py index 366dc1ac1df..98379b0d0c4 100644 --- a/langchain/vectorstores/chroma.py +++ b/langchain/vectorstores/chroma.py @@ -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, )