From b7fe405a28e206bc0b8536e8a2bcf64844cc3070 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Wed, 19 Nov 2025 16:51:25 +0800 Subject: [PATCH] Fix: refine error msg. --- api/apps/kb_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/apps/kb_app.py b/api/apps/kb_app.py index 94cb8cf5b..175e67402 100644 --- a/api/apps/kb_app.py +++ b/api/apps/kb_app.py @@ -895,8 +895,8 @@ async def check_embedding(): if sim_mix > sim: sim = sim_mix mode = "title+content" - except Exception: - return get_error_data_result(message="embedding failure") + except Exception as e: + return get_error_data_result(message=f"Embedding failure: {e}") eff_sims.append(sim) results.append({