Skip to content

The agent engineering platform.

Fix chroma vectorstore error message (#10457)

Jeremy Naccache37cb9372c2d6
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: