Skip to content

Dataset · xTRam1

Synthetic dataset for prompt injection defense

xTRam1/safe-guard-prompt-injection

Labeled text prompts for training security classifiers that separate attacks from regular queries.

What's inside

Contains user text prompts labeled as safe queries or prompt injection attacks. The sample size ranges from 10 to 100 thousand records. The data is synthetically generated based on an approach from the GLAN paper to cover a wide range of attacks.

What you can do with it

  • Training a classifier model to filter prompt injections
  • Testing security systems (guardrails) for LLMs
Size
10K–100K rows
Downloads this month
3.2K
Likes
39

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("xTRam1/safe-guard-prompt-injection")