Lesson 2
Crafting Effective Prompts
Crafting Effective Prompts

Have you ever asked a coworker for help, only to realize you’d left out half the details they needed? That same principle applies to talking with AI models: the clearer and more detailed your instructions, the more accurate and useful the responses.

Why Clear Prompts Matter

LLMs (Large Language Models) rely on your input to generate relevant answers. Vague prompts often lead to irrelevant or off-topic responses. Compare these examples:

  • Vague: “Tell me about history.” → The AI might write about ancient Egypt, WWII, or the history of pizza.
  • Specific: “Explain the three main causes of World War II in bullet points.” → Directs the AI to focus on a specific event and format, helping it systematically organize the response.
Techniques for Effective Prompts

Try these strategies to improve your results:

  1. Be Specific: Include details like context, audience, and length.

    • Weak: “Write a poem.”
    • Strong: “Write a 4-line rhyming poem about autumn, suitable for children.”
  2. Provide Examples: Show the AI what you want.

    • Weak: “Make a workout plan.”
    • Strong: “Create a 30-minute home workout plan without equipment, formatted like this example:
      • Warm-up: 5 minutes of jumping jacks
      • Core: 3 sets of planks...”
  3. Break Down Complex Tasks: Use step-by-step language.

    • Weak: “How do I start a business?”
    • Strong: “List 5 steps to register a small business in California, prioritizing cost-effectiveness.”
Common Pitfalls to Avoid

🚫 Assuming Prior Knowledge

  • Unclear: “Fix this code.” (What’s wrong with it?)
  • Better: “Debug this Python script that’s giving a ‘list index out of range’ error.”

🚫 Ignoring Format Preferences

  • Unclear: “Summarize this article.”
  • Better: “Summarize this 2,000-word article into three short paragraphs with bold headings.”

🚫 Settling for First Drafts
Refine prompts iteratively:

  1. First output: “Write a product description for wireless headphones.”
  2. Improved: “Rewrite this with more emotional appeal, focusing on gym enthusiasts.”

By recognizing and avoiding these pitfalls, you’ll see real-world improvements in tasks like writing marketing copy, drafting reports, or brainstorming presentations.

Key Takeaways
  • Specificity = Better Results
  • Examples and structure guide the AI
  • Treat prompts as a conversation—refine as needed

Ready to practice? Let’s sharpen your prompting skills!

Enjoy this lesson? Now it's time to practice with Cosmo!
Practice is how you turn knowledge into actual skills.