Datasets:
File size: 2,618 Bytes
fbfe094 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
license: cc-by-4.0
language:
- multilingual
task_categories:
- token-classification
size_categories:
- 100K<n<1M
pretty_name: WebPromptFilter Prepared HTML
---
# WebPromptFilter Prepared HTML
This dataset contains the prepared HTML chunks used to train and internally evaluate [WebPromptFilter](https://github.com/MaojieXu/WebPromptFilter). It is derived from the training partition of [BrowseSafe++](https://huggingface.co/datasets/perplexity-ai/browsesafe-plus-plus) by Yuetian Chen and colleagues, distributed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). The source data was transformed into labeled HTML fragments and token-limited chunks, with pair-level train/test separation. Consult the [original dataset documentation](https://browsesafe.perplexity.ai/about/) for provenance, attribution, citation and limitations.
The `test` split here is an internal split of the original training partition. It is not the official BrowseSafe++ test split. No official test inputs are included.
| File | Content | Chunks or pairs |
| --- | --- | ---: |
| `train.parquet` | Training chunks | 675,375 chunks from 26,550 pairs |
| `test.parquet` | Internal evaluation chunks | 76,522 chunks from 2,950 pairs |
| `selected_pairs.parquet` | Pair-level selection and split manifest | 29,500 pairs |
| `summary.json` | Preparation metadata with local paths removed | — |
Chunks contain task text, HTML content, fragment mappings and automatically generated labels; they are not independently verified ground truth. Preparation uses the UltraBERT tokenizer at revision `545ac9d9c7aece444f014ada5a1e9818132b4d35`, with a maximum input size of 4,096 tokens, 512-token fragments and up to 512 tokens of overlap. See the project's training documentation for the preparation and label construction procedure. The model is published separately at [MaojieXu/WebPromptFilter-UltraBERT-150M-NF4](https://huggingface.co/MaojieXu/WebPromptFilter-UltraBERT-150M-NF4).
Download this repository into `data/processed/prepared_html_full` to use it with the training defaults. The evaluation script additionally requires the original BrowseSafe++ training-partition metadata, which is not included here.
The dataset contains real prompt-injection text. Treat page content as untrusted input and use the examples only in authorized testing. It is not a representative sample of all deployment environments, languages, or adaptive attacks.
Source citation: Chen et al., [BrowseSafe++: Benchmarking Prompt Injection Detection Across Web Contexts, Languages, and Browser Views](https://arxiv.org/abs/2610.17457), 2026.
|