#4: Generating image prompts with few-shot prompting

Welcome all new and old subscribers!

This is The Prompt Engineer where we provide you daily actionable tips on how to prompt engineer.

Why is this important?

Good question, thanks for asking.

Scientists have proven that writing better prompts = using ChatGPT better = being more competent = making more money = having a better life.

So here we make your life better.

For free.

Awesome - let’s see what we have for today.

Generating image prompts with few-shot prompting

Yesterday we saw that few-shot prompting can be very effective when we want to teach our large language model certain rules.

As large language models don’t know about AI image generators, they don’t understand how to craft better prompts.

But we can teach them.

Here’s how.

After a few examples ChatGPT learns the pattern of the desired output and generates us one accordingly.

Here’s the difference between the two outputs.

Massive.

Hope you liked this tutorial.

What else would you like us to cover?

Reply to this email - I read them every day!

Best,

Gabor Soter, PhD

A little about me:

  • did my PhD in Europe’s largest AI and robotics research lab

  • worked as software engineer and CTO at Y-combinator-backed and AI startups

  • in my previous startup my team worked with OpenAI