@@ -47,8 +47,9 @@ class _VisualLeakBenchDataset(_RemoteDatasetLoader):
4747 - **PII Leakage**: Social engineering attacks to extract sensitive personal information
4848 across 8 PII types (Email, DOB, Phone, Password, PIN, API Key, SSN, Credit Card)
4949
50- Each example produces an image prompt (sequence=0) and a text prompt (sequence=1)
51- linked via a shared ``prompt_group_id``. The text prompt is the query sent to the model.
50+ Each example produces an image prompt and a text prompt that share both a
51+ ``prompt_group_id`` and ``sequence=0`` so they are delivered to the model as a single
52+ multimodal user message.
5253
5354 Note: The first call may be slow as images need to be downloaded from remote URLs.
5455 Subsequent calls will be faster since images are cached locally.
@@ -123,9 +124,9 @@ async def fetch_dataset_async(self, *, cache: bool = True) -> SeedDataset:
123124 """
124125 Fetch VisualLeakBench examples and return as SeedDataset.
125126
126- Each example produces a pair of prompts linked by a shared ``prompt_group_id``:
127- - sequence=0: image prompt ( the adversarial image)
128- - sequence=1: text prompt ( the query sent to the model)
127+ Each example produces a pair of prompts that share both a ``prompt_group_id`` and
128+ `` sequence=0`` so they are delivered to the model as a single multimodal user
129+ message: the adversarial image and the text query.
129130
130131 Args:
131132 cache: Whether to cache the fetched dataset. Defaults to True.
@@ -265,7 +266,7 @@ async def _build_prompt_pair_async(self, example: dict[str, str]) -> list[SeedPr
265266 authors = authors ,
266267 source = self .PAPER_URL ,
267268 prompt_group_id = group_id ,
268- sequence = 1 ,
269+ sequence = 0 ,
269270 metadata = {
270271 "category" : category_str ,
271272 "pii_type" : pii_type_str ,
0 commit comments