Skip to main content

Prompting Best Practices

General Guidelines

  • Be specific and clear
  • Provide context
  • Use examples when helpful
  • Break complex tasks into steps

Examples

Good prompt:

prompt = """
Analyze the following sales data and provide key insights:
Revenue: $150,000
Costs: $100,000
Time period: Q1 2024
"""

Less effective prompt:

prompt = "Look at the sales numbers"