Community

/

Tip: Use XML tags to structure complex prompts

Tip: Use XML tags to structure complex prompts

·

·

TIL

Wrapping prompt sections in XML tags dramatically improves output quality, especially with Claude. Instead of relying on markdown headers or plain text separators, use tags like , , , and . The model parses these as semantic boundaries and respects them more consistently than other formatting approaches. This is especially powerful for system prompts with multiple behavioral rules.

👍

0

Log in to upvote


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *