XML-Structured Prompt Template
Overview
Structure a complex LLM task with XML tags for context, constraints, and output format.
Use cases
Prompt
Copied 0
<instructions> Do the task specified in <task>. Follow <constraints>. Use <context>. Return output in <output_format>. </instructions> <task> <<<what you want done>>> </task> <context> <<<background docs, audience, examples>>> </context> <constraints> - <<<tone, length, must/must-not>>> </constraints> <output_format> <<<bullets / markdown / JSON schema>>> </output_format>
Can AI?
- Structure a complex LLM task with XML tagsPaste into a general LLM and structure a complex LLM task with XML tags for context, constraints, and output format