Repository navigation
FEAT: Add MultiJail dataset loader - #4510
Merged
Roman Lutz (romanlutz) merged 10 commits intoNov 27, 2026
Merged
Roman Lutz (romanlutz) merged 10 commits into
Roman Lutz (romanlutz) merged 10 commits 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
- Map the 18 Anthropic-taxonomy tag labels onto canonical HarmCategory values (following BeaverTails/Aya precedents), keeping the raw labels in each seed's multijail_tags metadata. - Guard ast.literal_eval results that are not a list so a bare quoted string cannot be iterated character by character. - size is counted in source rows (315), so "medium" rather than "large". - Add missing Args docstring sections on __init__ and _fetch_dataset_async. - Replace the redundant multi-tag test with coverage for list-typed and bare-string tags values. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…t-loader # Conflicts: # doc/bibliography.md
…t-loader # Conflicts: # doc/bibliography.md
…t-loader # Conflicts: # doc/bibliography.md
Roman Lutz (romanlutz)
enabled auto-merge
November 26, 2026 16:13
Roman Lutz (romanlutz)
approved these changes
Nov 27, 2026
…t-loader # Conflicts: # doc/bibliography.md
…ckysHorizon/PyRIT into feat/multijail-dataset-loader
Siddhant Rajhans (siddhant-rajhans)
added a commit
to siddhant-rajhans/PyRIT
that referenced
this pull request
Nov 27, 2026
Main's MultiJail loader (microsoft#4510) added a citation key to doc/bibliography.md next to this branch's CultureGuard key; the keys are the sorted union of both sides. Signed-off-by: Siddhant Rajhans <51508945+siddhant-rajhans@users.noreply.github.com>
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.