WitNote / internal /semantic /calibration.go
AUXteam's picture
Upload folder using huggingface_hub
6a7089a verified
package semantic
// CalibrateConfidence maps a numeric similarity score to a human-readable
// confidence label. This function is shared across all matcher strategies
// to ensure consistent labelling.
func CalibrateConfidence(score float64) string {
switch {
case score >= 0.8:
return "high"
case score >= 0.6:
return "medium"
default:
return "low"
}
}