TokenCalculator.com
Use XML Tags for Structured Output
Trick

Use XML Tags for Structured Output

July 29, 2024
When you need structured responses, instruct the model to use XML tags. For example: 'Provide your answer in the following format: <summary>Brief overview</summary> <pros>List of advantages</pros> <cons>List of disadvantages</cons>'
Category: Output Formatting

Share This Content

Explore More Content

Discover hundreds of AI tips, quotes, facts, and tutorials in our content hub.

Browse AI Content Hub

Get Weekly Tips

Subscribe to receive the latest AI tips and insights directly to your inbox.

We respect your privacy. Unsubscribe anytime.