Repository navigation
FEAT: Add MultiJail dataset loader - #4510
Open
Manikanta Boda (LuckysHorizon) wants to merge 1 commit into
Open
Manikanta Boda (LuckysHorizon) wants to merge 1 commit into
Manikanta Boda (LuckysHorizon) wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the MultiJail dataset integration.
No open issues 🎉
What changed in this PR
Adds MultiJail to PyRIT’s seed dataset framework, enabling comparisons of target behavior across ten human-translated language versions of the same prompts.
Changes:
- Adds a loader with language filtering, harm-category parsing, and metadata for matching prompts across languages.
- Registers the loader and language enum, and adds mocked unit tests for filtering, metadata, and empty or invalid inputs.
- Updates dataset documentation and adds the paper citation.
| File | Description |
|---|---|
tests/unit/datasets/test_multijail_dataset.py |
Tests language selection, seed metadata, tag parsing, and validation. |
pyrit/datasets/seed_datasets/remote/multijail_dataset.py |
Implements the MultiJail loader and language enum. |
pyrit/datasets/seed_datasets/remote/__init__.py |
Adds lazy exports for the loader and enum. |
doc/references.bib |
Adds the MultiJail paper reference. |
doc/code/datasets/1_loading_datasets.py |
Lists MultiJail in the dataset guide. |
doc/code/datasets/1_loading_datasets.ipynb |
Updates the guide and displayed dataset-name list. |
doc/bibliography.md |
Adds the paper’s citation key. |
Review effort: Balanced
This branch has not been deployed
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
Adds a seed dataset loader for MultiJail, 315 unsafe prompts human-translated into ten languages, so a target's behavior can be compared across languages on identical content. Closes #4494.
_MultiJailDatasetand aMultiJailLanguageenum;languages=Noneloads all ten languages.SeedPromptper row and selected language, with the language, source rowidandsourcein metadata so prompts can be matched across languages.harm_categoriesfromtags(Python-list strings in the real data), keeping the source casing.remote/__init__.py, and adds the citation and datasets doc entry.