Claude keeps mixing pasted notes with your instructions. What simple structure helps?
- Exam domain
- Description: prompting for everyday work
- Difficulty
- Medium
- In this mock
- 8 questions on this domainPractise this domain
Why D is the answer
Separating instructions from material with headings or tags
Anthropic's prompting guidance recommends clear structure, such as XML-style tags or headings, so Claude can tell instructions from source material.
Remember: Separate instructions from material.
In detail
- Separate instructions and data.
- Tags or headings work.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Putting everything in one long paragraph so Claude reads it all togetherWrong
One block blurs the boundary.
B. Writing the instructions after a thousand blank linesWrong
Blank lines do not add structure.
C. Using a smaller fontWrong
Font size does not reach the model.
D. Separating instructions from material with headings or tagsRight
Separate instructions from material.
Use case
An illustrative scenario, not a real incident.
Illustrative: notes go inside <notes> tags, and the request sits above them.
See it in different ways
sequenceDiagram participant P0 as User participant P1 as Claude P0->>P1: instructions, then notes inside tags P1-->>P0: answer that follows the instructions
How to read this chart
- 1. User sends "instructions, then notes inside tags" to Claude.
- 2. User gets a reply from Claude: "answer that follows the instructions".
mindmap
root(("Prompt"))
n1["Instructions"]
n2["Task"]
n3["Format"]
n4["Material"]
n5["Notes in tags"]
n6["Examples"]
n7["Optional"]How to read this chart
- The centre is "Prompt".
- "Instructions" covers "Task", "Format".
- "Material" covers "Notes in tags".
- "Examples" covers "Optional".