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({