6.6 Prompt Engineering Basics
A prompt is your instruction to the AI. Better prompts = better answers. Give it a role, context, a clear task and a format.
Chapter 6: Generative AI
Prompt engineering is just the skill of asking AI clearly. Vague prompt, vague answer. Specific prompt, useful answer.
A simple recipe that works: Role (who should the AI act as?), Context (what's the situation?), Task (what exactly do you want?), Format (how should the answer look?).
Pro moves: give an example of what you want, ask it to think step by step for tricky problems, and iterate - if the first answer is off, tell it what to change instead of starting over.
Key takeaways
Recipe: Role + Context + Task + Format
Give examples of what you want
Iterate instead of restarting