The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
exception: update Exception to ValueError for clearer error handling (#31915)
Michael Li0a17a625484e
diff --git a/libs/langchain/langchain/retrievers/multi_vector.py b/libs/langchain/langchain/retrievers/multi_vector.pyindex 32ad274d0e..ad9f90befc 100644--- a/libs/langchain/langchain/retrievers/multi_vector.py+++ b/libs/langchain/langchain/retrievers/multi_vector.py@@ -50,7 +50,7 @@ class MultiVectorRetriever(BaseRetriever):docstore = create_kv_docstore(byte_store)elif docstore is None:msg = "You must pass a `byte_store` parameter."- raise Exception(msg)+ raise ValueError(msg)values["docstore"] = docstorereturn values