Mich 🧠 💭 Profile picture
Jun 25 21 tweets 8 min read Read on X
I thought I understood AI prompting.
Then Google dropped their 68-page engineering guide.

It reveals techniques that work across all LLMs
I dove deep into all 5 advanced methods.

Here's what will transform your AI outputs🧵 Image
Image
First, a confession:

Back when I started using AI, I wrote short prompts and wondered why outputs sucked.

Then I learnt.. optimal prompts? 21 words.

"Explain photosynthesis" (2 words) vs
"Explain photosynthesis process to middle-school student in single paragraph" (11 words)

This was just the beginning..Image
Now, what actually happens when you prompt AI?

The model predicts the next word based on patterns it learned.

Your prompt sets the pattern.
Better pattern = better prediction.

That's why prompts like "write about dogs" fail but specific prompts succeed.

Let me break this down...Image
Think of AI like a brilliant intern who needs clear instructions.

Vague prompt: Intern guesses what you want
Clear prompt: Intern knows exactly what to deliver

Google studied millions of prompts to find what makes them "clear."

Then I found how to 10X their output...
Temperature, Top-k, Top-p settings.

Secrets that that I'm sure most of us missed.
It's like driving a Ferrari in first gear.

Temperature = creativity/randomness dial.

Let me show what it means: Image
At 0 temp: AI picks most likely word every time
"The sky is [blue]" - always blue
At 0.9 temp : AI gets adventurous
"The sky is [crimson/infinite/electric]"

Top-k = limits word choices (default ~40)
Top-p = takes words until 90% probability

Now onto prompting techniques... Image
1. The 4-Pillar Framework shattered my approach.
Google says every prompt needs:

Persona (who AI should be)
Task (what to do)
Context (background info)
Format (how to respond)

I tested it immediately.
The difference was staggering... Image
My old prompt: "Explain blockchain"

My new 4-pillar prompt:
"You are a blockchain expert [PERSONA].
Explain how blockchain works [TASK].
For a 12-year-old audience [CONTEXT].
Use a simple analogy [FORMAT]."

The AI transformed from Wikipedia to favorite teacher. Image
2. Step-back prompting

It's a technique for improving the performance by prompting the LLM.

It first consider a general question related to the specific task at hand, and then feeding the answer to that general question into a subsequent prompt.

Example: This is a traditional promptImage
We take a step-back in image 1. And then add that output into the prompt.

You can clearly see how much improved the output has gotten. Image
Image
3. This led me to Chain of thought

Chain of Thought = forcing AI to show its work.
Like your math teacher demanded.

Advantages per Google:
- Low-effort, high impact
- Works on any LLM
- See reasoning steps
- Catch errors
- More robust across models Image
But here's the power move, few-shot CoT:
Give an example first:

"Q: When my brother was 2, I was double his age. Now I'm 40. How old is he?
A: Brother was 2, I was 4. Difference: 2 years. Now 40-2 = 38. Answer: 38.

Q: [Your question]
A: Let's think step by step..." Image
4. ReAct (reason & act)

It turns AI into an agent that can use tools.

Instead of just thinking, it can:
- Search the web
- Run calculations
- Call APIs
- Fetch data

The AI alternates between thinking and doing actions.
Like a human solving problems. Image
Here's how ReAct actually works:
Format: Thought → Action → Observation → Loop

To see the prompt in action, you gotta code.
Here's an example: Image
And here's how it actually get's the results. Image
5. APE

Automatic Prompt Engineering (APE) makes AI reach "near human-level" at writing prompts.

"Alleviates need for human input and enhances model performance" - Google guide

I was watching AI evolve in real-time. Image
The APE revelation went deeper.

The AI writes better prompts than humans.

Process:
1. "Generate 10 prompts for ordering a t-shirt "
2. AI creates 10 different versions
3. Test each on real documents
4. Pick the winner Image
Hidden in the guide:

"Use positive instructions: tell model what to do instead of what not to do"

I'd been saying: "Don't use jargon"
Should say: "Use simple language"

Our brains (and AI) struggle with negatives.
Simple switch. Massive improvement.
Thanks for reading!

I'm Mich - serial entrepreneur and sales tech expert.

CEO @ ColdIQ () - a GTM agency serving 400+ businesses globally. $5MM ARR and growing. coldiq.comImage
Follow me @MichLieben for more threads on my personal stories and insights, entrepreneurship lessons and case studies, and other personal takes.

Like/Repost the quote below if you can:
Check the full guide here: services.google.com/fh/files/misc/…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Mich 🧠 💭

Mich 🧠 💭 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @MichLieben

Apr 8, 2021
Get started with Cold Outreach (without spending a dime)

There’s loads of info on Outbound Sales. If you don’t know where to start, read on. I curated the best cold sales resources for you and I'll tell you in what order you should go through these:

[THREAD]
1) Make sure Cold Outreach is what you need. There are several ways to sell your products/services. Start with this guide from @Mixmax (mixmax.com/blog/general/a…) and see if outreach is suitable.
2) Once you’re convinced you must reach out cold, your first move should be to create a targeted list of prospects and getting their email addresses. @anymailfinder listed 20 ways to do just that: blog.anymailfinder.com/how-to-search-…
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(