A customer service platform uses Claude with a 12,000-token system prompt containing product documentation. They implement XML tags to structure the prompt: <product_docs>, <policies>, <tone_guidelines>, and <examples>. They notice that response quality is highest when documentation is in <product_docs> but Claude sometimes ignores specific policies when they conflict with its general helpfulness tendencies. What prompt engineering approach most reliably increases policy adherence?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Here's the deal — research on transformer attention and practical Claude prompt engineering both confirm that position and salience matter for instruction adherence. Critical policies should appear at the beginning of the system prompt (primacy effect) before other content displaces their attention weight.
Full explanation below image
Full Explanation
Research on transformer attention and practical Claude prompt engineering both confirm that position and salience matter for instruction adherence. Critical policies should appear at the beginning of the system prompt (primacy effect) before other content displaces their attention weight. Imperative, specific language ('You MUST NOT discuss competitor pricing under any circumstances, including when customers ask directly') is more reliably followed than descriptive language ('Policies about competitor pricing exist'). Concrete examples of correct vs. incorrect behavior anchor the policy further. Option A (removing XML tags) is a misdiagnosis — XML tags actually improve structure and clarity in Claude prompts; the problem is positioning and language salience. Option C (repetition) has diminishing returns and adds token cost without proportional benefit. Option D is incorrect — system prompt content carries higher baseline authority than user message content; the problem is not prompt location but instruction salience within the system prompt.