I am using AI since 2023. Many times I think, I could deliver better if I had these tools couple of years back.
But second time is now.
Here are my notes for Prompot Engineering. And why it is called engineering.
A prompt typically has three main parts:
- Top (Role & Output Expectation)
Define the role you want the AI to take and specify the type of output you expect. - Middle (Task & Context)
Clearly describe the task and provide the necessary background or context. - Bottom (Format & Constraints)
Specify how the response should be structured (e.g., bullet points, paragraphs) and include any constraints such as word limits or tone.
Why is it called Prompt Engineering?
Because it is a structured approach to problem-solving. You are designing inputs in a deliberate way to get precise and useful outputs.
Types of Prompts
- Zero-Shot Prompting
No examples are provided. The model relies entirely on the instructions. - Few-Shot Prompting
Includes examples and reasoning to guide the model toward the desired output.