<aside>

Prompt Engineering


Prompt engineering is the practice of crafting effective inputs to get the most accurate, useful, or creative outputs from AI models like ChatGPT, image generators, or coding assistants.

<aside>

In Simple Terms


It’s how you talk to AI to get what you want.

</aside>

</aside>

<aside>

Why It Matters?


AI models respond differently depending on how you phrase things. A well-designed prompt can

<aside>

Examples of Prompt Engineering


<aside>

Basic prompt


“Write a poem about the moon”

</aside>

<aside>

Engineered prompt


“Write a 5-line rhyming poem about the moon, in the style of Shakespeare, focusing on its mystery and beauty”

</aside>


The second version gives more context and constraints, helping the AI generate a more targeted result

</aside>

<aside>

Techniques


  1. Role assignment: You are a historian. Explain the causes of WWII.
  2. Few-shot prompting: Show examples first to guide the AI.
  3. Zero-shot prompting: Ask directly with no examples.
  4. Chain-of-thought prompting: Ask the AI to think step-by-step.
  5. Constraints: Specify tone, length, format, audience, etc. </aside>

<aside>

Where It’s Used


<aside>

Topic Completed!

🌟Great work! You’re one step closer to your goal.

Ready to Move On →

</aside>

<aside>