AI and LLMs · Junior · Question 66 of 75
Why should prompts separate instructions from user data, e.g. with tags?
- 1It helps the model tell what to follow from what to process
- 2Tags are required or the API rejects the request
- 3It makes the prompt shorter and much cheaper
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.