Prompt Engineering Fundamentals / Prompt Optimization

Specificity

Essential [1/5]
Precision Detail provision

Definition

Specificity means providing exact details about desired output format, constraints, and requirements. While clarity ensures the prompt is understandable, specificity ensures the output matches precise expectations.

Specific prompts include concrete details: word counts, formats, required elements, tone, audience, and any other parameters that define successful output.

Key Concepts

  • Quantifiable constraints: Use numbers instead of vague terms ("150 words" not "short")
  • Format requirements: Specify structure (bullet points, paragraphs, JSON)
  • Content requirements: List must-include elements
  • Style parameters: Define tone, reading level, perspective

Examples

Vague vs Specific
Content Request
Vague: "Write about machine learning." Specific: "Write a 300-word introduction to machine learning for business executives with no technical background. Format: 3 paragraphs Include: One real-world business application example Avoid: Technical jargon, mathematical notation Tone: Professional but accessible"
The specific version defines length, audience, format, required content, exclusions, and tone.
Output Format
Structured Response
Specific format request: "Analyze this product review and return JSON with: { 'sentiment': 'positive' | 'negative' | 'neutral', 'confidence': 0.0 to 1.0, 'key_points': [list of 3 main points], 'suggested_action': string }"
Exact structure specification ensures parseable, consistent output.

Interactive Exercise

Add Specificity

This prompt lacks specificity. Add concrete details:

Vague: "Summarize this article."

Pro Tips
  • Always specify output length when it matters
  • Define what "good" looks like with examples
  • Include negative constraints (what to avoid)
  • Consider who will read the output and specify accordingly

Related Terms