From ccb4535d446c42d796075096267e225b24af4451 Mon Sep 17 00:00:00 2001 From: buua436 Date: Mon, 17 Nov 2025 20:13:25 +0800 Subject: [PATCH] fix: update check_embedding failed info --- api/apps/kb_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/kb_app.py b/api/apps/kb_app.py index f173b56a0..53e42303f 100644 --- a/api/apps/kb_app.py +++ b/api/apps/kb_app.py @@ -918,6 +918,6 @@ def check_embedding(): } if summary["avg_cos_sim"] > 0.9: return get_json_result(data={"summary": summary, "results": results}) - return get_json_result(code=RetCode.NOT_EFFECTIVE, message="failed", data={"summary": summary, "results": results}) + return get_json_result(code=RetCode.NOT_EFFECTIVE, message="Embedding model switch failed: the average similarity between old and new vectors is below 0.9, indicating incompatible vector spaces.", data={"summary": summary, "results": results})