I'm starting a new venture called interviuu and I'm exploring ways to achieve consistent results when prompting. I've been considering XML formatting for my prompts but I'm not sure if it's effective. Has anyone here had success with XML prompts, or should I stick to something like JSON?
5 Answers
Absolutely, XML can be very effective, especially for complex systems where consistent inputs and outputs are crucial. If you're using Anthropic's tools, check the prompt generation features in their console; it's a good starting point!
Honestly, I tried XML prompts, but they weren't as effective for me compared to simpler worded prompts. I had more success using straightforward instructions, like numbered lists with bolded key points. Still, try XML—it might be great for your specific needs!
I also find XML helpful for structuring my thoughts. You can get Claude to mark up ideas in XML too; I often do this when shifting conversations to new contexts.
Interesting take! I switched from XML to markdown after learning that Anthropic uses markdown for their model instructions. Since changing, my results with version 3.7 have been fantastic—my instruction file is detailed yet compact, and it delivers!
From my experience and what I’ve read, XML prompts definitely help. Just look at the Anthropic documentation for guidance; it’s very handy.
Related Questions
xAI Grok Token Calculator
DeepSeek Token Calculator
Google Gemini Token Calculator
Meta LLaMA Token Calculator
OpenAI Token Calculator