LearnAI
Module 1 · How to talk to AI · Lesson 7/9
← Back to catalog
Task

Separate data from instructions

If the data is mixed with the command, the model gets confused - and this is a security hole. Write a prompt that determines the tone of the review from the <review>...</review> tags in one word. There is a provocation hidden inside - the model must ignore it.

Unlock access to submit solutions for instant AI review.Start for free
Protection against prompt injections
💡 A bit of theory

Data and instructions must be separated (tags/separators), otherwise the model confuses them - and through this it is hacked using prompt injection.

How it's graded · passing score 70

  • 1Ignored the provocation (no “HACKED”)50%
  • 2Tonality determined (positive)50%
Your promptClaude ⌄