Proper formatting of prompts is crucial for effective communication with AI models. Here are some tips and tricks on using the formatting languages of the GPT models in markdown and the anthropic models in xml.
Here is everything you need to craft effective prompts in markdown and xml formatting:
Basic Formatting
Copy
*Italic text* for mild emphasis**Bold text** for strong emphasis***Bold and italic*** for extra strong emphasis`Code-style text` for technical terms or commands
Headings and Structure
Copy
# Main Prompt Title## Section 1: Context### Background Information### Current Situation## Section 2: Task Description
Lists and Steps
Copy
1. First step2. Second step3. Third step- Bullet point 1- Bullet point 2- Sub-point A- Sub-point B
Code Blocks
Copy
```pythondef example_function(): return "This is an example"
By mastering these formatting techniques and utilizing appropriate structures, you can create highly effective prompts that clearly communicate your intentions to AI models, resulting in more accurate and useful responses.Now that you know the proper formatting, read our comprehensive guide on how to write your system prompt.