Peter Yang Profile picture
Jun 3, 2023 11 tweets 6 min read Read on X
Andrej Karpathy is a legendary AI researcher who helped start OpenAI.

He recently gave a talk on how to craft great GPT prompts that almost everyone missed.

I watched the 40 min talk - here's @karpathy's top 5 tips to make AI work better for you: Image
1/ Let's start by comparing humans to LLMs.

To arrive at the output "California's population is 53x that of Alaska", a human would:

1. Look up the populations on Wikipedia
2. Use a calculator to divide the numbers
3. Do a sanity check and craft a sentence Image
2/ A LLM, in comparison, thinks only about producing the next token or word.

They don't:
- Have an inner monologue
- Do any sanity checks

They do:
- Have a vast knowledge base
- Have a great working memory

Now that you know this, here are some ways to improve AI's outputs: Image
3/ Help the LLM succeed

An LLM has no notion of success. You have to make it want to succeed with prompts like:

• "You're an expert in X"
• "Think through this step by step"
• "Make sure you have the right answer"

Here's how the above helps with accuracy: Image
4/ Be specific and give examples

Imagine that you had to get someone to complete a task well with a single email.

You would:
- Give them context
- Make the goal clear
- Share examples of success

LLMs are the same - you need to give detailed, specific prompts with examples: Image
5/ Load relevant context into its memory

Providing detailed prompts is tedious.

So save your detailed prompts and load it into the LLM's memory each time you want it to perform a particular task. Image
6/ Continuing my previous example:

I have a ready made list of tweets that I load into ChatGPT's memory when I want it to help me improve my writing hooks. Image
7/ Encourage it to ask for more info

Even if you write a detailed prompt, it's hard to guess what the LLM needs.

So include this in your prompt:

"Ask me questions if you need more info."

This will get the LLM to ask you to share relevant context to improve its output. Image
8/ Use LLMs with other tools

LLMs have flaws. They may:

- Be biased
- Hallucinate false info
- Have knowledge cutoffs

Try different tools like:

- Bing for browsing
- Code interpreter for data

My thread on the latter made it into Andrej's deck: Image
9/ Here's @karpathy's full talk where he also discusses the state of GPT overall:



Sign up for my newsletter, I'll be sharing the top AI prompts that I return to after 100s of hours with ChatGPT and other LLMs:
creatoreconomy.so
10/ To recap:

1. Help the LLM succeed (e.g., "you're an expert", "step by step")
2. Be specific and give examples
3. Load relevant context into its memory
4. Encourage it to ask for more info
5. Use LLMs with other tools

Follow me @petergyang and RT below if you enjoyed this:

• • •

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

Keep Current with Peter Yang

Peter Yang 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 @petergyang

Mar 4
Ok, going to vibe code again tonight.

This time, I'll try to build a zombie survival first-person shooter in blocky style with Cursor + Sonnet 3.7 + @superwhisperapp.

Maybe too ambitious, but we'll see.

Follow along in this thread 🧵 Image
@superwhisperapp 1) Asked AI to start with a basic spec + roadmap Image
Image
@superwhisperapp 2) Trying to fix the camera controls in phase 1 Image
Read 16 tweets
Jul 17, 2024
40 life lessons I know at 40 (that I wish I knew at 20):

1. Stop asking for permission

Don’t think: "If only I could get into this great school/company/job, then I could do great work."

You can do great work right now! Build something people want and bypass the gatekeepers.
2. Find the torture that you’re comfortable with

Success in any career requires sacrifice.

So try different paths to find what Seinfeld calls: “a painful thing that you can do for hours that would make others tap out in minutes.”

For example, I love waking up at 6 AM to write.
3. Look for the intersection

Find work that satisfies what you want, what you’re good at, and what the market wants.

If you're in a job that you're good at BUT drains your energy, please keep looking. It's arguably the most dangerous place to be.
Read 7 tweets
Jul 19, 2023
A newsletter is one of the best long-term investments that you can make for your career.

@chenellco has spent 100+ hours studying top newsletter writers.

Here are 5 proven tactics to grow your newsletter from 0 to 50,000+ subscribers 👇 Image
1/ The tactics are:

1. Pick the right niche
2. Build a content system
3. Drive sign ups
4. Get organic traffic
5. Optimize paid traffic

Check out the full post below or continue on in this thread: creatoreconomy.so/p/how-the-best…
2/ Pick the right niche

A great niche helps your ideal reader achieve their dream outcome.

@readtechnically by Justin Gage reached 50K readers by focusing on:

"Technical concepts explained in a simple way for non-technical people."

Justin's learning tracks bring this to life: Image
Read 9 tweets
Jul 12, 2023
Shopify deleted 12,000 meetings this year.

Today, they went a step further with a tool that shows the $$$ cost of holding meetings.

I spoke to @CanadaKaz (Shopify's COO) about meeting bloat and protecting craft time.

Here are 6 spicy takes from our interview 👇
1/ My chat with Kaz is one of my favorite interviews so far.

Check out the full post below or continue on in this thread for the quotes:
creatoreconomy.so/p/kaz-coo-shop…
2/ On meetings:

1. A meeting is a bug that some other process didn’t work out.

2. Imagine if Van Gogh had to paint Starry Night while perpetually being interrupted every 20 minutes.

3. No matter how many meeting rooms are available, there never seems to be enough.
Read 6 tweets
Jun 26, 2023
Amazon has an incredible writing culture.

Here are 7 writing tips that anyone can use:

1. Use less words
2. Replace adjectives with data
3. Eliminate weasel words
4. "So what"
5. 4 answers

More in thread 👇
6. Be objective - avoid adjectives and adverbs
7. Avoid jargon and acronyms
Read 5 tweets
Jun 19, 2023
The secret to a successful product isn't just:

❌ High quality
❌ Low prices
❌ Amazing service

What matters more is:

✅ A starving crowd

Here are 4 ways to find the starving crowd for your product: Image
1/ How strong is the pain?

Find customers who desperately want to solve their pain & frustrations.

If you can bring this pain to life, they'll almost always want to buy your product.

Like a hot dog stand in front of a hungry crowd that just left the bar at 2 am. Image
2/ How niche can you go?

Going after a big market without a target niche in mind usually doesn't end well.

The more niche you go, the better you can articulate the customer's pain point, and the higher you can charge for your product.

The riches are in the niches. Source: Alex Hormozi's book...
Read 7 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!

:(