Grokking AI: 50 Questions Every Engineer Asks
Vote

0% completed

​

What Is Prompt Injection and Why Is It Hard to Fix?

Short answer: A model reads data such as a web page, an email, or a document. Prompt injection is text inside this data that the model follows as if it were an instruction. Prompt injection is hard to fix because instructions and data arrive as one sequence of tokens, and the model has no reliable way to separate them. No filter stops every case, so engineers limit what an injected instruction can do.

Look at the tokens on the right. They all have the same form, and nothing marks the tokens that came from the developer.

This lesson uses one example

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content