Why XML tags are so fundamental to Claude
1–10 of 160 posts
Re: Why XML tags are so fundamental to Claude
#2Re: Why XML tags are so fundamental to Claude
#3Re: Why XML tags are so fundamental to Claude
#4That first image, “Structure Prompts with XML”, just screams AI-written. The bullet lists don’t line up, the numbering starts at (2), random bolding. Why would anyone trust hallucinated documentation for prompting? At least with AI-generated software documentation, the context is the code itself, being regurgitated into bulleted english. But for instructions on using the LLM itself, it seems pretty lazy to not hand-t…
Re: Why XML tags are so fundamental to Claude
#5That first image, “Structure Prompts with XML”, just screams AI-written. The bullet lists don’t line up, the numbering starts at (2), random bolding. Why would anyone trust hallucinated documentation for prompting? At least with AI-generated software documentation, the context is the code itself, being regurgitated into bulleted english. But for instructions on using the LLM itself, it seems pretty lazy to not hand-t…
The post even links to that page, although there’s a typo in the link.
Re: Why XML tags are so fundamental to Claude
#6Anthropic’s tool calling was exposed as XML tags at the beginning, before they introduced the JSON API. I expect they’re still templating those tool calls into XML before passing to the model’s context
Re: Why XML tags are so fundamental to Claude
#7And while we're at it, instead of wall-of-text, I also feel like outputs could be structured at least into thinking and content, maybe other sections.
Re: Why XML tags are so fundamental to Claude
#8Re: Why XML tags are so fundamental to Claude
#9A very minor porcelain on some of the agent input UX could present this structure for you. Instead of a single chat window, have four: task, context, constraints, output format. And while we're at it, instead of wall-of-text, I also feel like outputs could be structured at least into thinking and content, maybe other sections.