mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
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:
@ -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})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user