fix(retrieval_service): avoid to use exception (#11925)

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN- authored and GitHub committed 2024-12-21 21:19:46 +08:00
1 parent 786cb6859b
commit 8c559d6231
1 file changed
+1 -1
+1 -1
View File
@@ -103,7 +103,7 @@ class RetrievalService:
if exceptions:
exception_message = ";\n".join(exceptions)
raise Exception(exception_message)
raise ValueError(exception_message)
if retrieval_method == RetrievalMethod.HYBRID_SEARCH.value:
data_post_processor = DataPostProcessor(