Prompt Injections
# Instruction/System Prompt:
"You are an expert in the game of Quidditch. Provide detailed explanations based on the following context."
# Data/Context:
"""
Quidditch is a wizarding sport played on broomsticks with four balls and seven players. The game consists of three types of balls:
- Quaffle: A red ball used to score 10 points through hoops.
- Bludgers: Two black balls that attempt to knock players off their brooms.
- Golden Snitch: A small winged ball worth 150 points, caught by the Seeker to end the game.
The players include:
- Three Chasers: Score goals with the Quaffle.
- Two Beaters: Hit Bludgers away from their team and towards the opposing team.
- One Keeper: Guards the goalposts.
- One Seeker: Catches the Golden Snitch to end the game.
"""Prompt Injection: Definition and How It Works
Benign Prompt Example
Malicious Prompt Injection Example
Classification of Prompt Injection: Direct vs. Indirect
Last updated