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
pull/10449/head^2
Jeremy Naccache 1 year ago committed by GitHub
parent 4c732c8894
commit 37cb9372c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -217,7 +217,7 @@ class Chroma(VectorStore):
if "Expected metadata value to be" in str(e): if "Expected metadata value to be" in str(e):
msg = ( msg = (
"Try filtering complex metadata from the document using " "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) raise ValueError(e.args[0] + "\n\n" + msg)
else: else:

Loading…
Cancel
Save