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

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN- 2024-12-21 21:19:46 +08:00 committed by GitHub
parent 786cb6859b
commit 8c559d6231
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ class RetrievalService:
if exceptions: if exceptions:
exception_message = ";\n".join(exceptions) exception_message = ";\n".join(exceptions)
raise Exception(exception_message) raise ValueError(exception_message)
if retrieval_method == RetrievalMethod.HYBRID_SEARCH.value: if retrieval_method == RetrievalMethod.HYBRID_SEARCH.value:
data_post_processor = DataPostProcessor( data_post_processor = DataPostProcessor(