Repository navigation
FIX recognize Azure SelfHarm in scorer evaluation - #2616
Roman Lutz (romanlutz) merged 2 commits into
Conversation
|
I'm going to close this for now because we have a self-harm category. But more importantly, the harm categories refer to seed prompts, i.e., on the input side. Scorers are concerned with the output side. We have no yet spent effort on unifying these two sides although the input side is in much better shape. |
OK, just realized my misunderstanding here and that I closed the PR by mistake. Apologies for that! You're not introducing a new harm category but merely an alias (which is totally fine). I'll review the PR now and see if we want it in this shape. Thanks, Imran Ahamed (@immu4989) ! |
Description
Azure Content Safety returns
SelfHarm, which is not recognized byHarmCategory.parse_many. Scorer evaluation therefore rejects it against the registeredself_harmdataset category, both when it is the only score and when selecting from all four Azure scores.Add the explicit
selfharmalias forSELF_HARM. This completes the remaining Azure case after #2575 while preserving strict rejection of unrelated categories.Related to #2570; reproduction and proposed scope: #2570 (comment).
Tests and Documentation