Skip to content

Commit

Permalink
fix(retrieval_service): avoid to use exception
Browse files Browse the repository at this point in the history
Signed-off-by: -LAN- <[email protected]>
  • Loading branch information
laipz8200 committed Dec 21, 2024
1 parent 786cb68 commit 9ec8d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/rag/datasource/retrieval_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def retrieve(

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(
Expand Down

0 comments on commit 9ec8d4e

Please sign in to comment.