ELI5: Explain Like I'm 5

Prompt injection

Okay, kiddo, so imagine you're playing a game where you get to choose what your character says. You can choose different things to say to other characters in the game.

Now, sometimes the game developers want to make it so that the character you're talking to responds differently depending on what you say. This is where prompt injection comes in.

It's kind of like when you tell your friend a secret and then they tell someone else, but they change the story a little bit. Prompt injection is when the game developers change what your character says just a little bit, to make the other character respond in a certain way.

They do this by inserting a "prompt" - a little cue - into what you say. It's like a little hint that tells the game what kind of response to generate. So even though you might have chosen to say one thing, the game might change it just a little bit so that the other character responds in a certain way.

The really cool thing is that prompt injection can be used to make the game feel more realistic and immersive. It's like you're really having a conversation with the other characters in the game!