Back to Guide

Core Principles of Prompting

Fundamental rules and best practices for effective prompt engineering

🎯 The Foundation of Effective AI Interaction

Mastering prompt engineering starts with understanding these core principles. These fundamental rules guide every aspect of creating effective prompts, from basic instructions to complex multi-step workflows. Think of them as the "commandments" that ensure your AI interactions are clear, effective, and reliable.

💡

Clarity

Be crystal clear about what you want. Ambiguous prompts lead to unpredictable results. Your instructions should leave no room for interpretation or confusion.

Examples

❌ Vague

"Write something about technology"

✅ Clear

"Write a 300-word blog post about the impact of artificial intelligence on healthcare, targeting medical professionals, with 3 key benefits and 2 challenges."

Clarity Checklist

Use specific, actionable language
Specify exact requirements and constraints
Avoid vague terms like "good" or "better"
Define what success looks like
🌍

Context

Provide relevant background information. Context helps the AI understand the situation, audience, and purpose, leading to more appropriate and useful responses.

Examples

❌ No Context

"Create a marketing plan"

✅ With Context

"Create a marketing plan for a new eco-friendly water bottle startup targeting environmentally conscious millennials, with a $50,000 budget for Q1 2024."

Context Checklist

Include relevant background information
Specify target audience and purpose
Provide constraints and limitations
Include relevant examples or references
📝

Examples

Show, don't just tell. Examples demonstrate exactly what you want, reducing ambiguity and improving consistency. They're especially powerful for format, style, and quality specifications.

Examples

❌ No Example

"Write a professional email"

✅ With Example

"Write a professional email like this: 'Dear [Name], I hope this email finds you well. I'm writing to follow up on our recent discussion about...' Now write a similar email about scheduling a meeting."

Examples Checklist

Provide clear, representative examples
Use examples that match your requirements
Include examples for format, style, and quality
Test examples with different scenarios
🎯

Specificity

Be precise and detailed. Specific prompts eliminate guesswork and produce more targeted results. Include exact numbers, formats, and requirements when possible.

Examples

❌ Generic

"Write a summary"

✅ Specific

"Write a 150-word summary of the article in bullet points, highlighting the 3 main arguments and 2 key statistics mentioned."

Specificity Checklist

Specify exact numbers and quantities
Define format and structure requirements
Include quality and style specifications
Provide clear success criteria
🎨

Format & Style

Define how you want the output structured. Format and style specifications ensure consistency and make outputs more useful and professional.

Examples

❌ No Format

"Analyze this data"

✅ With Format

"Analyze this data and present your findings in a structured report with: Executive Summary (2 paragraphs), Key Insights (bullet points), Recommendations (numbered list), and Next Steps (action items)."

Format & Style Checklist

Specify output structure and organization
Define tone and writing style
Include layout and presentation requirements
Specify length and detail level
🔄

Iteration

Refine and improve through multiple attempts. Perfect prompts rarely happen on the first try. Iteration helps you understand what works and continuously improve your results.

Examples

❌ One-and-Done

Writing a prompt once and accepting whatever output you get

✅ Iterative Approach

Starting with a basic prompt, testing it, identifying issues, refining based on feedback, and testing again until you get the desired results

Iteration Checklist

Start simple and add complexity gradually
Test with various inputs and scenarios
Document what works and what doesn't
Use feedback to improve prompts
⚖️

Bias Awareness

Recognize and mitigate potential biases. AI models can reflect and amplify biases present in training data. Being aware of this helps you create more fair and inclusive prompts.

Examples

❌ Potentially Biased

"Write about successful business leaders" (may default to certain demographics)

✅ Inclusive

"Write about successful business leaders from diverse backgrounds, including different industries, cultures, and leadership styles."

Bias Awareness Checklist

Use inclusive and diverse language
Specify diverse perspectives when relevant
Test prompts for potential bias
Include bias mitigation in system prompts
🛡️

Error Handling

Plan for and handle potential failures. AI systems can make mistakes, misunderstand requests, or produce unexpected outputs. Good error handling makes your prompts more robust and reliable.

Examples

❌ No Error Handling

"Generate a report" (assumes success)

✅ With Error Handling

"Generate a report. If you encounter any issues or need clarification, please explain what you need and suggest alternatives."

Error Handling Checklist

Include fallback instructions
Ask for clarification when needed
Provide alternative approaches
Test edge cases and failure scenarios

📜 The 10 Commandments of Prompt Engineering

1
Thou shalt be clear and specific
Vague prompts lead to unpredictable results. Always specify exactly what you want.
2
Thou shalt provide context
Give the AI enough background information to understand your needs and situation.
3
Thou shalt use examples
Show, don't just tell. Examples demonstrate exactly what you're looking for.
4
Thou shalt specify format
Define how you want the output structured, styled, and presented.
5
Thou shalt iterate and refine
Perfect prompts rarely happen on the first try. Test, refine, and improve.
6
Thou shalt consider bias
Be aware of potential biases and use inclusive, fair language.
7
Thou shalt handle errors gracefully
Plan for failures and provide fallback instructions when needed.
8
Thou shalt test thoroughly
Test your prompts with various inputs to ensure reliability and consistency.
9
Thou shalt document success
Keep track of what works so you can reuse and improve successful patterns.
10
Thou shalt stay ethical
Always use AI responsibly and consider the broader impact of your prompts.

📊 Quick Reference Guide

💡
Clarity First
Start with clear, specific instructions before adding complexity
🌍
Context Matters
Provide relevant background information for better understanding
📝
Examples Work
Use examples to demonstrate desired output format and style
🎯
Be Specific
Include exact numbers, formats, and requirements when possible
🔄
Iterate Always
Refine and improve prompts through multiple attempts and testing
⚖️
Check Bias
Be aware of potential biases and use inclusive language

📚 Complete Guide Navigation

Access all sections of the comprehensive prompt engineering guide:

Basic Techniques

Learn essential prompting methods and strategies.

Explore Techniques

Advanced Techniques

Master sophisticated prompting strategies for complex scenarios.

Learn Advanced

Prompt Frameworks

Discover structured approaches to prompt design.

View Frameworks

Domain-Specific Guides

Learn industry-specific prompting techniques.

Browse Domains

Context + Workflow

Design production-ready prompt engineering systems.

Learn Design

Ethics & Safety

Responsible AI use and safety considerations.

Learn Safety

Glossary of Terms

Explore key concepts and terminology used in prompt engineering.

Browse Glossary

Main Guide

Return to the complete guide overview.

Back to Guide