Back to Open source

[Bug] NaN WWB similarity incorrectly passes accuracy check

Issue[Bug] NaN WWB similarity incorrectly passes accuracy check #4729

The Optimum and GenAI WWB validators can accept a NaN similarity score because comparing NaN with the accuracy threshold returns false. Invalid similarity values can therefore be reported as successful accuracy checks. The issue proposes rejecting non-finite scores before comparing the threshold.

View issue on GitHub
Our PRNo PR yetNot working