Index Ai Academy
Glossary · Phase 1 · Building with LLMs

XML tags

Also written: XML-style tags

Labels like <document> and </document> that mark where each part of a prompt starts and ends, so the model can't mix them up.

Try it now

Send the vague prompt first. Then replace it with the detailed version above and send again. It's the same model, but you'll get a very different email. If a reply comes back cut off, raise max_tokens.

Learn it properly

Prompt fundamentals · Clear instructions, context and constraints: the 80% of prompting. About 30 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write