Optimización de mensajes para IA

May 20, 2024

ChatGPT and Google Bard Prompt Optimization Formula Video Notes

Instructor Introduction

  • Name: Jeff
  • Profession: Tech Industry

Topic Introduction

  • Importance: Mastering AI prompts is a crucial skill.
  • Effect: Correct prompts can generate more accurate responses.

Six Basic Elements of Prompts

  1. Task
  2. Context
  3. Example
  4. Persona
  5. Format
  6. Tone

Ranking of Element Importance

  • Task > Context and Example > Persona, Format, and Tone

Task

  • Start with a verb: generate, give, write, analyze, etc.
  • Clearly state the goal
  • Examples:
    • Simple task: Generate a 3-month workout plan
    • Complex task: Analyze user feedback + share insights + categorize feedback

Context

  • Provide enough information for the output
  • Ask yourself three questions:
    1. What is the user's background?
    2. What does success look like?
    3. What is the environment?
  • Examples:
    • User: Male weighing 70 kg
    • Goal: Gain 5 kg of muscle
    • Environment: Can only work out twice a week
    • Additional info: Focus on specific muscles

Example

  • Include examples to improve output quality
  • Examples:
    • Resume optimization: Use X item, Y measurement, Z outcome
    • Interview questions (e.g., STAR model)
    • Job description referencing existing examples

Persona

  • Imagine a person who can help solve the problem
  • Specific person or character: Warren Buffett, Batman

Format

  • Visualize the final output
  • Examples: table, email, list, code block
  • Professional tip: Bold the changing parts

Tone

  • When enough adjectives aren't available, tell ChatGPT the tone you want
  • Examples:
    • Tone keywords: clear, concise, friendly, confident

Complete Prompt Example Integrating the Six Elements

  • Persona: You are a senior product marketing manager at Apple Inc.
  • Context: Release of Apple Car, presale orders are 12,000, 200% higher than expected
  • Task and Format: Write an email to the boss, including summary, project background, business achievements, and team thanks
  • Example: Refer to an existing email format
  • Tone: Clear, concise, friendly, confident