Introduction
Prompt engineering is the practice of designing and refining inputs to guide an AI model toward generating the desired output. It is part science and part art.
Core Principles
- Be Specific and Clear: Avoid ambiguity. Tell the model exactly what format, tone, and constraints to use.
- Provide Context: Give the AI the necessary background information so it doesn't have to guess.
- Assign a Persona: Starting a prompt with "Act as an expert software engineer..." can significantly improve the quality of the response.
Assignment
- Review OpenAI's Prompt Engineering Guide. Take a vague prompt and iterate on it to make it highly specific based on their principles.