Browse topics Hub · essay · articles · FAQ · glossary

Prompt structure & XML tagging

A reliable prompt is structured, not improvised. Students learn to organise prompts into clearly delimited sections — background, instructions, tool guidance…

A reliable prompt is structured, not improvised. Students learn to organise prompts
into clearly delimited sections — background, instructions, tool guidance, output
description — and to use XML-style tags to make those boundaries explicit and
machine-parseable. This reduces ambiguity, makes prompts maintainable, and improves
the consistency of structured outputs.

Sources