Remix.run Logo
simonw a day ago

I don't know if the XML is better than JSON thing still holds with this year's frontier models, but it was definitely a thing last year. Here's Anthropic's documentation about that: https://docs.claude.com/en/docs/build-with-claude/prompt-eng...

Note that they don't actually suggest that the XML needs to be VALID!

My guess was that JSON requires more characters to be escaped than XML-ish syntax does, plus matching opening and closing tags makes it a little easier for the LLM not to lose track of which string corresponds to which key.

bird0861 a day ago | parent [-]

the Qwen team is still all in on XML and they make a good case for it

roflcopter69 a day ago | parent [-]

Can you please provide a source? I'd love to know their exact reasoning and/or evidence that XML is the way to go.