epochs

Learn · Module 08 · Prompting and context · Lesson 6 of 6

Prompt injection

A model can't reliably tell your instructions from instructions hidden in the text it reads. Attackers use that.

3 minute read

In short
  • Prompt injection is text that tries to override your instructions, directly or hidden in data.
  • Models can't reliably separate instructions from data, so prompts alone aren't a defence.
  • Limit permissions and require confirmation for risky actions.

This lesson is part of Pro

The first two lessons of every module are free. Pro opens every lesson and every project.

See Pro plansFrom ₹119 a month. No auto-renewal.