fix: update check_embedding failed info

This commit is contained in:
buua436 2025-11-17 20:13:25 +08:00
parent 3fcf2ee54c
commit ccb4535d44

View file

@ -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})