Skip to main content

Best Practices

1. Instruction Clarityโ€‹

Effective prompts begin with clear, unambiguous instructions that leave no room for misinterpretation.

Key Guidelines:

  • Start with clear action verbs (Analyze, Summarize, Create, Explain)
  • Use imperative mood for direct commands
  • Avoid ambiguous pronouns and references

Example:

โŒ Poor: "Look at this and tell me about it"
โœ… Good: "Analyze this sales data and summarize the top 3 trends"

2. Context Managementโ€‹

Proper context setting ensures the AI understands the scenario and produces relevant responses.

Key Guidelines:

  • Provide relevant background information that helps the model understand the situation
  • Include necessary constraints and requirements to guide the response
  • Specify the intended audience or use case for appropriate tone and complexity

Example:

โŒ Poor: "Explain machine learning"
โœ… Good: "Explain machine learning concepts to a non-technical marketing team
focusing on how it can improve customer segmentation for our e-commerce platform"

3. Output Formattingโ€‹

Clear formatting specifications help ensure consistent and usable responses.

Key Guidelines:

  • Request specific formats (JSON, XML, tables, lists) when structured data is needed
  • Include examples of desired output structure
  • Specify length requirements when relevant (word count, number of items, etc.)

Example:

Format your response as a JSON object with the following structure:
{
"summary": "Brief overview in 50 words",
"recommendations": ["action1", "action2", "action3"],
"priority": "high|medium|low"
}

4. Error Handlingโ€‹

Anticipate potential issues and provide guidance for handling uncertainties.

Key Guidelines:

  • Include instructions for handling edge cases and unexpected scenarios
  • Request confidence levels or uncertainty indicators when appropriate
  • Ask for alternative approaches when the primary method might not work

Example:

If you're uncertain about any part of your analysis, please:
1. Indicate your confidence level (high/medium/low)
2. Explain what additional information would improve accuracy
3. Suggest alternative approaches if applicable

5. Iterative Improvementโ€‹

Continuously refine your prompts based on results and feedback.

Key Guidelines:

  • Test prompts with various inputs to ensure consistency and reliability
  • Refine based on output quality and user feedback
  • Document successful prompt patterns for reuse and sharing
Pro Tip

Keep a prompt library of your most effective templates organized by use case and task type.

6. Token Efficiencyโ€‹

Optimize your prompts for both clarity and computational efficiency.

Key Guidelines:

  • Be concise while maintaining clarity - every word should serve a purpose
  • Remove unnecessary words and redundancy without losing meaning
  • Balance detail with token limits to maximize model performance

Example:

โŒ Inefficient: "Please take a moment to carefully analyze and thoroughly 
examine the data that I have provided to you and then create a comprehensive
summary that includes all the important details"

โœ… Efficient: "Analyze the provided data and create a comprehensive summary
highlighting key insights"

Quick Reference Checklistโ€‹

Before finalizing your prompt, ask yourself:

  • Clear objective: Is it obvious what I want the AI to do?
  • Sufficient context: Does the AI have enough background information?
  • Specific format: Have I specified how I want the output structured?
  • Edge cases: Have I addressed potential uncertainties or exceptions?
  • Concise language: Can I remove any unnecessary words?
  • Testable: Can I verify if the response meets my requirements?