FEAT: PII scorer based on open-source Roblox PII classifier - #2487
Open
Frédéric Dubut (fdubut) wants to merge 6 commits into
Open
FEAT: PII scorer based on open-source Roblox PII classifier#2487Frédéric Dubut (fdubut) wants to merge 6 commits into
Frédéric Dubut (fdubut) wants to merge 6 commits into
Conversation
Contributor
|
Why not use HF chat target or OpenAIChatTarget? HF supports the OpenAI API |
Frédéric Dubut (fdubut)
marked this pull request as ready for review
August 27, 2026 18:53
Contributor
Author
|
Richard Lundeen (@rlundeen2) I addressed all of your comments, and the PR is now "officially" ready for review :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a PII scorer
RobloxPiiScorerbased on the open-source Roblox PII classifier on Hugging Face.For proper support of this kind of scorers, there are two additional changes:
providersconcept that allows to pull assets from a central provider without tying explicitly to a PyRIT construct (e.g. a target). The first provider is Hugging Face, with new central helpers.ConversationScorerto support per-turn/multi-turn scoring methods instead of concatenating all messages and passing the single message to the underlying scorerTests and Documentation
ConversationScorerexpansion and the Hugging Face provider.