From 37cb9372c2d65182c228446bf7276fe78e744b95 Mon Sep 17 00:00:00 2001 From: Jeremy Naccache <63456504+jeremynac@users.noreply.github.com> Date: Mon, 11 Sep 2023 20:52:44 +0200 Subject: [PATCH] Fix chroma vectorstore error message (#10457) - Description: Updated the error message in the Chroma vectorestore, that displayed a wrong import path for langchain.vectorstores.utils.filter_complex_metadata. - Tag maintainer: @sbusso --- libs/langchain/langchain/vectorstores/chroma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/vectorstores/chroma.py b/libs/langchain/langchain/vectorstores/chroma.py index 706588202b..3b8edc2212 100644 --- a/libs/langchain/langchain/vectorstores/chroma.py +++ b/libs/langchain/langchain/vectorstores/chroma.py @@ -217,7 +217,7 @@ class Chroma(VectorStore): if "Expected metadata value to be" in str(e): msg = ( "Try filtering complex metadata from the document using " - "langchain.vectorstore.utils.filter_complex_metadata." + "langchain.vectorstores.utils.filter_complex_metadata." ) raise ValueError(e.args[0] + "\n\n" + msg) else: