Quick Announcement š
I started this blog to reflect on my learning and write down my ideas in a more digestible format. I kind of deviated from that by making it very textbook-style, code-centric articles.
They were also extremely long, soābased on feedbackāIād like to start over and do some mix-and-match. While Iāll still occasionally write code-heavy articles, Iāll also do these small āTILsā to jot down raw notes in a more standard format.
I hope you enjoy this, and feel free to send your feedback via email or over LinkedIn.
What Is Prompting? š
Prompting is something we all do in 2025, so I donāt know who needs a definitionābut for people living under a rock, hereās Wikipediaās:
Prompt
Natural language text describing the task that an AI should perform.
We use prompts to generate code, refine emails, decode jargon, and proofread and polish blogsābecause weāre not all great writers! š
A GenAI response is only as good as its prompt. As an engineer who generates scripts, prompting needs to be meticulousāotherwise most of the time saved via prompting gets eaten up in debugging and even more time in rewriting. (Frustrating stuff.)
Anatomy of a Prompt š
A good prompt can be broken into five parts:
-
Instruction
Tell the model what to do. Be specific, clear, and action-oriented.
Example:Summarize the following paragraph in 3 bullet points.
-
Input Data
Provide the data the LLM will work on: a paragraph, a code snippet, user data, etc. In code scenarios, this is like passing arguments to a function or API body. -
Output Format
If you know what your output should look like, give an example. This guides the modelās structureābullet points, assertion outputs, email format, formality level, etc. -
Role
Specify the personality, style, or expertise the model should adopt.Respond like a professional doctor explaining to a 10-year-old.
-
Context (optional but powerful)
Give background so the model can ground its response. For instance, tell your LLM itās an āexpert software architectā when brainstorming architecture.
Full-Five-Part Prompt Example š
You are a professional technical writer.
Summarize the following article in 3 bullet points.
Article:
[Paste text here]
Respond in plain English, suitable for beginners.