AI and LLMs · Junior · Question 66 of 75

Why should prompts separate instructions from user data, e.g. with tags?

Show the answer

Correct answer: It helps the model tell what to follow from what to process

Explanation

Wrapping documents in tags like <document> makes the structure clear. It reduces confusion but doesn't fully stop injection.

Further reading

Problem with a question

AI and LLMs · Junior · question 66

Test yourself

Take the AI and LLMs · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz