FrontierAI.Engineer
Prompt Engineering

XML-Tagged Prompting

XML-tagged prompting wraps distinct parts of a prompt — instructions, context, examples, and the user's input — in named tags so the model can tell them apart reliably. Clear delimiters reduce the chance that retrieved text or user input is mistaken for instructions, and they make long prompts easier to template and maintain. Many models follow tagged structure more consistently than loose prose.