Datasets:
Publish prepared HTML training and internal test splits
Browse filesFiles changed (4)
- README.mdAdded+31
- selected_pairs.parquetAdded+3
- test.parquetAdded+3
- train.parquetAdded+3
12345678910111213141516171819202122232425262728293031---license: cc-by-4.0language:- multilingualtask_categories:- token-classificationsize_categories:- 100K<n<1Mpretty_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.123version https://git-lfs.github.com/spec/v1oid sha256:df86e929f4ded4a3d88b37eee9ff484c835d8b9ad901f9cf45c46de5c46d046csize 727631123version https://git-lfs.github.com/spec/v1oid sha256:3c41ee3a3056b58dd9c6d31285fdd2412221b7aadcb73a8da27e5167e04a0099size 248117881123version https://git-lfs.github.com/spec/v1oid sha256:14dc33aeb263da47a614fe6d52beb7f201d277572a2e769e53da9448db8fe21fsize 2141701889README.mdAdded+31
selected_pairs.parquetAdded+3
test.parquetAdded+3
train.parquetAdded+3