Prompt engineering is the skill of asking AI clearly to get reliable, useful results. The same model gives wildly different answers depending on the prompt.
Prompt Engineering
Asking AI clearly for reliable results.
Tap or hover a part to learn more.
Set the scene.
Tell the model who it is ('You are a senior analyst') and give the relevant background. Context steers the whole response.
Check your understanding
1. What is few-shot prompting?
2. What improves accuracy on complex tasks?
Keep learning
Techniques that work
- Role & context — tell the model who it is and give the relevant background.
- Clear, specific instructions — say exactly what you want and any constraints.
- Few-shot examples — show one or two examples of the desired output.
- Chain-of-thought — ask it to reason step by step for complex tasks.
- Output format — specify the structure (JSON, bullet list, table).
- Iterate — refine the prompt based on the result.
Good prompting turns a generic tool into a precise one, and underpins assistants, RAG and agents.
