Click for fullscreen
If you want AI to work for you, you have to know how to talk to it.
I’ve been grinding on AI since November 2022, and I recently taught a
3-hour live course
on how I’ve integrated AI into my everyday workflows.
One of the topics I covered was how to create concise and effective
prompts.
Here’s some detail on each of these points.
One of the most important things about prompts is transparency. They have to
be legible and super easy to read and edit.
Markdown
is perfect for that.
A prompt written in Markdown
As you can see above, this format makes it super clear what’s going on. You
have clear sections at different levels, combined with numbered and bulleted
lists.
Markdown is a human-first format
LLMs love Markdown for the same reason that humans do—because it’s easy to
understand.
❝
Clear formatting → Clear thinking → Better Prompts
The clearer you make prompts for yourself, the clearer they are for the AI
as well.
When you tell an AI that it’s an astronaut, you’re priming it with all the
knowledge in the model about that topic. That means it’ll give far better
answers.
After I define the role of the AI, I then tell it to:
Take a step back and think step by step about how to achieve the best
outcome.
There was a competition between prompting techniques and this one beat out
dozens of other techniques!
After I define my role and tell the AI to think step-by-step, I then give it
those steps one by one.
Each step should do only one thing and work with the one above and below it
I’ve actually started using the system prompt almost exclusively. It’s taken
more seriously by LLMs and I tend to get much better results.
I am very clear about how I want the output to look. The clearer the better.
One of the best things you can do with an AI is give examples. And it’s
especially good if you do both 1) great instructions, and 2) great examples
of output at the same time.
EXAMPLE OUTPUT
- Nabisco (nabisco.com)
- Coke (coke.com)
- Cars (cars.com)
END EXAMPLE OUTPUT
Be as concise as you can. You might think saying more will help, but it
often just confuses it.
You only output Markdown.
LLMs prefer being told what to do rather than having to think for
themselves.
Be explicit in what you like and don’t like about what they’ve done.
The results of a clean prompt (click for fullscreen)
I use Markdown because it’s simple, and
simple is good for reading/editing
Most LLMs seem to also like Markdown because it’s easy to parse, e.g.,
lists of steps, hierarchical instructions, etc.
I tell the LLM who it is, e.g., give it a role
I often use the “take a step back and think step by step” setup
I break things into small, discrete steps
I often don’t even use a user prompt
I tell it exactly how I want the output to look
I also give examples of good output if #7 might be confusing
I try to use as few words as possible; LLMs easily confused with too
many instructions
I’m a little rough with it (do this!, don’t do this!)
If you combine all these techniques, your prompting game will upgrade
multiple levels, and so will your results.
Meet Mary — Your Smart AI ICT Teacher for O-Level Secondary Education in Uganda! Welcome…
Journey Through Faith: An Introduction to Senior Three Islamic Religious EducationWelcome, students, to an enriching…
Meet Isha Karungi — Your Smart AI Islamic Studies Teacher for O-Level! Welcome to the…
Having studied Spanish for over 6 years, I knew what dulce de leche meant. Sweet.…
I found kiwis on sale. Five for $1! In the middle of winter. In January.…
An experience. That’s what Ghirardelli is to me. For many years, San Francisco was a…
Leave a Comment