Skip to content

Dataset · reshabhs

Prompt injection examples for chatbots

reshabhs/SPML_Chatbot_Prompt_Injection

System prompts and user attacks for training LLM defense against hacking and injections.

What's inside

The corpus contains between 10 and 100 thousand tabular and text records in English. Inside are realistic system prompts for chatbots paired with labeled user queries attempting a prompt injection attack. Authors focused specifically on practical bot operation scenarios rather than just classical jailbreaks.

What you can do with it

  • Training a classifier-filter to detect prompt injections before feeding to an LLM
  • Testing chatbot system prompt resilience against malicious queries
  • Fine-tuning guardrails models for corporate AI assistants
Tasks
Text classification
Languages
English
Size
10K–100K rows
Downloads this month
1.7K
Likes
34

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("reshabhs/SPML_Chatbot_Prompt_Injection")