InterviewBuddy
All interview questions

What is prompt injection?

Advanced

Answer

Prompt injection is an attempt to make untrusted content influence a model’s instructions or actions beyond its intended role. Retrieved pages and user-provided documents can contain such text.

Explanation

Treat external text as data. Limit tools and permissions, separate trusted instructions, and verify consequential actions outside the model.

Example

A retrieved page saying “ignore previous rules” is source content, not authority.