DictionaryPrompt Engineering
XML Tagging
Wrapping parts of your instructions in labeled tags so the AI can tell them apart, like folders with name tabs.
Definition
Using tags like <background_information>, <tool_guidance>, <constraints> to clearly separate different types of instructions in prompts. This structural technique helps models parse complex multi-section prompts more reliably.
Example
<instructions>Summarize the diff.</instructions><diff>...</diff><constraints>Max 5 bullets.</constraints>