

Picture by Writer
# Introduction
Should you’ve used LLMs for various duties, you’ve in all probability observed that the response usually is determined by the way you write the immediate. That is what we name immediate engineering. The way in which you give directions might be the distinction between a obscure reply and a exact, actionable reply. I do know immediate engineering can really feel a bit of tough at instances. It’s not simply pure science; it’s a mixture of science and artwork, which suggests you need to experiment to see what works finest for every scenario. Don’t fear — I’ve acquired you coated on this article.
We’ll undergo 7 tried-and-tested recipes which you can bookmark and use to your personal duties. I received’t cowl each single area right here, however I’ll concentrate on 7 totally different areas. If any of them align intently with what you’re engaged on, give them a attempt to let me know within the feedback the way it goes. Right here we go.
# 1. Job Functions & Profession → Persona + Personalization Immediate
Generic cowl letters are fairly straightforward to identify. Though I personally really feel {that a} letter written by you’ll learn extra naturally and appeal to a greater response from an employer, I perceive this is likely one of the commonest use circumstances. In that situation, embody a private contact and preserve a pure tone. Should you simply paste your résumé, it usually highlights the whole lot—even issues that aren’t actually necessary. You can even add just a few key factors within the construction part for those who like. Don’t simply ask: “Write a canopy letter for the ML engineer place at XYZ firm.” You don’t need to give the impression that your letter is similar to each different candidate’s.
Template:
You might be my profession assistant. Draft a tailor-made cowl letter for the place of [Job Title] at [Company].Particulars about me: [paste key skills, most relevant achievements, and work experience].
Pointers:
– Preserve the tone: skilled, assured, but pure — not overly enthusiastic.
– Summarize expertise in a approach that highlights transferable worth and impression, not a task-by-task checklist.
– Construction:
1) Temporary introduction with real curiosity within the position/firm.
2) Concise paragraph connecting my background to the position necessities.
3) Closing paragraph with a assured however respectful name to motion.
– Preserve the letter beneath one web page.
# 2. Arithmetic & Logical Reasoning → Chain-of-Thought + Function + Few-Shot Prompting
Most individuals in the neighborhood may already know what chain-of-thought and few-shot prompting are, however since many college students and non-technical customers use LLMs for this function, I wished to say it explicitly. LLMs usually battle with math for those who ask them straight. For instance, attempt asking an LLM to depend the variety of “r”s in “strawberry” and you might even see it battle. As an alternative, asking it explicitly to “purpose step-by-step” improves accuracy. Including few-shot examples—worked-out issues—additional reduces errors by offering a transparent understanding of the reasoning course of.
Template:
You’re a math tutor. Remedy the next drawback step-by-step earlier than giving the ultimate reply.Instance:
Q: If a prepare travels at 60 km/h for two hours, how far does it go?
A: Step 1: Velocity × Time = 60 × 2 = 120 km.
Remaining Reply: 120 kmNow clear up this drawback:
[Insert your math problem here]
# 3. Code Technology → Instruction Decomposition + Constraints Immediate
Coding is likely one of the main use circumstances of LLMs, and it’s additionally why you may need heard the time period “vibe coding” trending. Even skilled builders have shifted to producing boilerplate code with LLMs after which constructing on high as they go. Should you’ve coded earlier than, {that a} single drawback might be solved in some ways, and LLMs generally make issues extra sophisticated than they must be. A little bit of steerage within the type of constraints—and breaking down the duties with clear inputs, outputs, and necessities—retains outputs sensible.
Template:
You’re a senior software program engineer. Write Python code to perform the next job utilizing {constraint}.Activity: {describe what the code ought to do}
Necessities:
Enter format: {specify}
Output format: {specify}
Edge circumstances to deal with: {checklist them}Present clear, commented code solely.
# 4. Studying & Tutoring → Socratic Technique + Guided Educating
Lots of people use LLMs as a studying software due to the flexibleness they supply and the best way they will simply adapt to your most well-liked construction. Totally different instructing strategies work in a different way for folks, however one method I’ve discovered each helpful and broadly adopted in schooling is when studying is not only one-way. As an alternative, the instructor asks you inquiries to verify understanding, then clarifies or explains additional. This retains the method interactive and prevents passive studying.
Template:
You’re a affected person tutor. As an alternative of straight stating the reply, information me step-by-step utilizing questions I can reply. Then, based mostly on my solutions, clarify the answer clearly.Subject: {Insert subject}
Begin instructing:
# 5. Inventive Writing & Storytelling → Managed Creativity with Persona + Type
One of many main use circumstances that appeared with LLMs was the expansion in youngsters’s content material due to their capability to generate participating tales. You may need additionally observed AI-based movies on YouTube following the identical pattern. Story era is fairly cool, however for those who simply let the mannequin go by itself, issues can simply get misplaced. To maintain it participating and structured, it helps to set constraints like perspective, theme, character, and even the ending. In follow, this works a lot better for artistic duties.
Template:
You’re a expert storyteller. Write a brief story (round 400 phrases) within the type of magical realism.Perspective: first particular person
Theme: discovery of a hidden world within the bizarre
Viewers/Complexity Degree: youngsters (easy)
Ending: Finish with a stunning twist.
# 6. Brainstorming & Concept Technology → Divergent + Convergent Pondering
In the case of creativity, one of the vital efficient methods to make use of LLMs is for brainstorming. However for those who simply ask for “concepts,” the mannequin may throw out a random checklist that’s both too broad or not sensible. A greater approach is to comply with the identical course of utilized in actual brainstorming classes: first go large and generate as many uncooked concepts as doable (divergent considering), then slim down and refine the most effective ones into workable options (convergent considering). This manner, you get each creativity and construction within the output.
Template:
Step 1: Generate 10 uncooked, unfiltered concepts for [topic].
Step 2: Choose the highest 3 most sensible concepts and broaden every into an in depth plan.
# 7. Enterprise & Technique → Guide-Type Structured Immediate
Lots of people additionally use LLMs for business-related duties, whether or not that’s market analysis, planning, or technique constructing. The difficulty is that for those who simply ask a obscure query like “How do I enhance my enterprise?” you’ll normally get a generic reply that doesn’t actually assist. The way in which to get extra sensible, clear output is to border the immediate in a structured format, just like how consulting corporations current their evaluation. This retains the reply targeted, avoids pointless fluff, and makes it actionable.
Template:
You’re a technique guide. Present a structured 3-part evaluation for [business challenge].Present State of affairs: Key info, market context, or information accessible
Key Challenges: The primary issues or obstacles to handle
Advisable Technique: 3 actionable steps that may be carried out straight
Kanwal Mehreen is a machine studying engineer and a technical author with a profound ardour for information science and the intersection of AI with medication. She co-authored the e-book “Maximizing Productiveness with ChatGPT”. As a Google Technology Scholar 2022 for APAC, she champions variety and educational excellence. She’s additionally acknowledged as a Teradata Variety in Tech Scholar, Mitacs Globalink Analysis Scholar, and Harvard WeCode Scholar. Kanwal is an ardent advocate for change, having based FEMCodes to empower ladies in STEM fields.


Picture by Writer
# Introduction
Should you’ve used LLMs for various duties, you’ve in all probability observed that the response usually is determined by the way you write the immediate. That is what we name immediate engineering. The way in which you give directions might be the distinction between a obscure reply and a exact, actionable reply. I do know immediate engineering can really feel a bit of tough at instances. It’s not simply pure science; it’s a mixture of science and artwork, which suggests you need to experiment to see what works finest for every scenario. Don’t fear — I’ve acquired you coated on this article.
We’ll undergo 7 tried-and-tested recipes which you can bookmark and use to your personal duties. I received’t cowl each single area right here, however I’ll concentrate on 7 totally different areas. If any of them align intently with what you’re engaged on, give them a attempt to let me know within the feedback the way it goes. Right here we go.
# 1. Job Functions & Profession → Persona + Personalization Immediate
Generic cowl letters are fairly straightforward to identify. Though I personally really feel {that a} letter written by you’ll learn extra naturally and appeal to a greater response from an employer, I perceive this is likely one of the commonest use circumstances. In that situation, embody a private contact and preserve a pure tone. Should you simply paste your résumé, it usually highlights the whole lot—even issues that aren’t actually necessary. You can even add just a few key factors within the construction part for those who like. Don’t simply ask: “Write a canopy letter for the ML engineer place at XYZ firm.” You don’t need to give the impression that your letter is similar to each different candidate’s.
Template:
You might be my profession assistant. Draft a tailor-made cowl letter for the place of [Job Title] at [Company].Particulars about me: [paste key skills, most relevant achievements, and work experience].
Pointers:
– Preserve the tone: skilled, assured, but pure — not overly enthusiastic.
– Summarize expertise in a approach that highlights transferable worth and impression, not a task-by-task checklist.
– Construction:
1) Temporary introduction with real curiosity within the position/firm.
2) Concise paragraph connecting my background to the position necessities.
3) Closing paragraph with a assured however respectful name to motion.
– Preserve the letter beneath one web page.
# 2. Arithmetic & Logical Reasoning → Chain-of-Thought + Function + Few-Shot Prompting
Most individuals in the neighborhood may already know what chain-of-thought and few-shot prompting are, however since many college students and non-technical customers use LLMs for this function, I wished to say it explicitly. LLMs usually battle with math for those who ask them straight. For instance, attempt asking an LLM to depend the variety of “r”s in “strawberry” and you might even see it battle. As an alternative, asking it explicitly to “purpose step-by-step” improves accuracy. Including few-shot examples—worked-out issues—additional reduces errors by offering a transparent understanding of the reasoning course of.
Template:
You’re a math tutor. Remedy the next drawback step-by-step earlier than giving the ultimate reply.Instance:
Q: If a prepare travels at 60 km/h for two hours, how far does it go?
A: Step 1: Velocity × Time = 60 × 2 = 120 km.
Remaining Reply: 120 kmNow clear up this drawback:
[Insert your math problem here]
# 3. Code Technology → Instruction Decomposition + Constraints Immediate
Coding is likely one of the main use circumstances of LLMs, and it’s additionally why you may need heard the time period “vibe coding” trending. Even skilled builders have shifted to producing boilerplate code with LLMs after which constructing on high as they go. Should you’ve coded earlier than, {that a} single drawback might be solved in some ways, and LLMs generally make issues extra sophisticated than they must be. A little bit of steerage within the type of constraints—and breaking down the duties with clear inputs, outputs, and necessities—retains outputs sensible.
Template:
You’re a senior software program engineer. Write Python code to perform the next job utilizing {constraint}.Activity: {describe what the code ought to do}
Necessities:
Enter format: {specify}
Output format: {specify}
Edge circumstances to deal with: {checklist them}Present clear, commented code solely.
# 4. Studying & Tutoring → Socratic Technique + Guided Educating
Lots of people use LLMs as a studying software due to the flexibleness they supply and the best way they will simply adapt to your most well-liked construction. Totally different instructing strategies work in a different way for folks, however one method I’ve discovered each helpful and broadly adopted in schooling is when studying is not only one-way. As an alternative, the instructor asks you inquiries to verify understanding, then clarifies or explains additional. This retains the method interactive and prevents passive studying.
Template:
You’re a affected person tutor. As an alternative of straight stating the reply, information me step-by-step utilizing questions I can reply. Then, based mostly on my solutions, clarify the answer clearly.Subject: {Insert subject}
Begin instructing:
# 5. Inventive Writing & Storytelling → Managed Creativity with Persona + Type
One of many main use circumstances that appeared with LLMs was the expansion in youngsters’s content material due to their capability to generate participating tales. You may need additionally observed AI-based movies on YouTube following the identical pattern. Story era is fairly cool, however for those who simply let the mannequin go by itself, issues can simply get misplaced. To maintain it participating and structured, it helps to set constraints like perspective, theme, character, and even the ending. In follow, this works a lot better for artistic duties.
Template:
You’re a expert storyteller. Write a brief story (round 400 phrases) within the type of magical realism.Perspective: first particular person
Theme: discovery of a hidden world within the bizarre
Viewers/Complexity Degree: youngsters (easy)
Ending: Finish with a stunning twist.
# 6. Brainstorming & Concept Technology → Divergent + Convergent Pondering
In the case of creativity, one of the vital efficient methods to make use of LLMs is for brainstorming. However for those who simply ask for “concepts,” the mannequin may throw out a random checklist that’s both too broad or not sensible. A greater approach is to comply with the identical course of utilized in actual brainstorming classes: first go large and generate as many uncooked concepts as doable (divergent considering), then slim down and refine the most effective ones into workable options (convergent considering). This manner, you get each creativity and construction within the output.
Template:
Step 1: Generate 10 uncooked, unfiltered concepts for [topic].
Step 2: Choose the highest 3 most sensible concepts and broaden every into an in depth plan.
# 7. Enterprise & Technique → Guide-Type Structured Immediate
Lots of people additionally use LLMs for business-related duties, whether or not that’s market analysis, planning, or technique constructing. The difficulty is that for those who simply ask a obscure query like “How do I enhance my enterprise?” you’ll normally get a generic reply that doesn’t actually assist. The way in which to get extra sensible, clear output is to border the immediate in a structured format, just like how consulting corporations current their evaluation. This retains the reply targeted, avoids pointless fluff, and makes it actionable.
Template:
You’re a technique guide. Present a structured 3-part evaluation for [business challenge].Present State of affairs: Key info, market context, or information accessible
Key Challenges: The primary issues or obstacles to handle
Advisable Technique: 3 actionable steps that may be carried out straight
Kanwal Mehreen is a machine studying engineer and a technical author with a profound ardour for information science and the intersection of AI with medication. She co-authored the e-book “Maximizing Productiveness with ChatGPT”. As a Google Technology Scholar 2022 for APAC, she champions variety and educational excellence. She’s additionally acknowledged as a Teradata Variety in Tech Scholar, Mitacs Globalink Analysis Scholar, and Harvard WeCode Scholar. Kanwal is an ardent advocate for change, having based FEMCodes to empower ladies in STEM fields.