markdown
and the anthropic models in xml
.
Key Concepts
Emphasis
Highlight important information using various text styling techniques.
Structure
Organize your prompt with headings, lists, and nested elements.
Formatting Techniques
Here is everything you need to craft effective prompts in markdown and xml formatting:Basic Formatting
Basic Formatting
Headings and Structure
Headings and Structure
Lists and Steps
Lists and Steps
Code Blocks
Code Blocks
Always test your formatted prompts to ensure they produce the desired results with your specific AI model.
Advanced Formatting Tips
1
Combine Formats
For complex prompts, consider using a combination of Markdown and XML techniques to leverage the strengths of both formats.
2
Model-Specific Formatting
Some AI models have specific formatting preferences:
- GPT models typically work well with Markdown
- Anthropic models are designed to interpret XML Always consult the modelβs documentation for best results.
3
Test and Iterate
Experiment with different formatting styles and structures. Test your prompts with the target AI model and refine based on the results.