Explaing Prompt Engineering
Slide notes
Prompt engineering, explained
Prompt engineering sounds technical. It just means writing and revising the instructions you give an AI assistant. Here is how it works, using one cracked lamp.
The problem: a cracked lamp
Your new lamp arrives with a cracked shade. You want a replacement, so you ask an AI to help you write the email to the shop.
The vague prompt
Type only "Help me write an email" and the assistant has to guess. In this example, ChatGPT asks who you are writing to and what you want to say.
What's wrong with it
The request names no reader, no purpose, no facts and no length. An email to a neighbor needs different details from an email to a shop about a refund.
The four-part framework
A good brief has four parts. Goal: what to do. Context: who reads it. Source: the facts to use. Output: format, tone and limits. OpenAI's own guide says to be specific about format and length.
The lamp prompt, all four parts
Put the four parts together in one prompt. “Draft an email to the shop asking for a replacement. The lamp arrived yesterday with a cracked shade, and I have a photo of the damage. Use those facts. Include a subject line, keep the email under 100 words, and leave a blank for the order number.”
The specific reply
The sample draft has a subject line, asks for a replacement, keeps the facts and leaves the order number blank. That is close to ready to send.