Prompt Engineering Basics

Prompt Structures

Basic Structure

Write a [type of content] about [topic] that includes:
- Point 1
- Point 2
- Point 3
Format as [desired format]

Advanced Structure

Role: [specific role/expertise]
Task: [detailed description]
Context: [background information]
Requirements:
- Requirement 1
- Requirement 2
Format: [specific format]
Additional Notes: [any constraints or preferences]

Iterative Approach

Initial draft: [topic/concept]
Current text: [existing content]
Next step: [what to add/modify]
Style guide: [formatting requirements]

Example Templates

{
  "name": "Academic Analysis",
  "template": "Write a detailed academic analysis of {topic} considering:\n1. Historical context\n2. Current research\n3. Future implications\n\nFormat using {style_guide} with {word_count} words.",
  "variables": {
    "topic": "string",
    "style_guide": ["APA", "MLA", "Chicago"],
    "word_count": "number"
  }
}

Best Practices

Be Specific

Avoid ambiguity in instructions

Provide Context

Include relevant background

Iterate

Refine prompts for better results

Quality Improvement Tips

For more advanced prompt engineering techniques, visit Learn Prompting