fix: update check_embedding failed info (#11321)
### What problem does this PR solve? change: update check_embedding failed info ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
89e8818dda
commit
912b6b023e
1 changed files with 1 additions and 1 deletions
|
|
@ -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})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue