1/10 Working with LLMs is exciting & powerful, but there are few things I wish I had known getting started with prompt engineering.

Here are 8 tips for getting the most out of @Cohere's Generate, #ChatGPT, #GPT3, and other text generation models🧵👇🏻

🎬
2/10
I am using @CohereAI 's Generate to illustrate my points.

1. Start small!

Don’t try to do too much at once. Give the model simple, straightforward tasks and gradually build up to more complex ones.

A great example of a simple instruction can start with: "Write a ....".
3/10

2. Experiment and iterate.

Make a rule of experimenting with different versions of your prompt to see what works best for your model. Even small tweaks can do wonders for the quality of your output. 🧪👩‍🔬
4/10

3. Keep generating outputs. A lot!

Generate 10 different outputs for your prompt and choose the best one, rather than settling for 2nd or 3rd output that kinda works. Strive for excellence, and you shall be rewarded.🎯
5/10

4. Provide examples to the model.

If its a few-shot model, examples of what you are trying to achieve will significantly improve its outputs. Zero-shot will also work great with additional examples. They can work great without them, too tho 😊 Here is a simple example:
6/10

5. Be mindful of the context.

Make sure your model got enough context about your task and any specific information needed to generate the output that you want. An example context may include the following info:
7/10

6. Cut out fluff and mistakes.

Models thrive at simple, step by step, straightforward instructions. Try to remove unnecessary words and sentence structures. Similarly, make sure your prompt has no grammar and spelling errors. I use @Grammarly to keep my prompts clean.
8/10

7. Break it down.

Break down your task into smaller steps and split them into multiple tasks for your model. For each task, generate a bunch of outputs and see how it changes your process. E.g.I start by asking the model for video title ideas instead of full video script:
9/10

8. Push the limits. Of the model and of yourself.

Sit down with your model and push yourself to find 10, 20, 30 different tasks it can do for you and test it. We are still learning how LLMs work. The list of tasks they can perform keeps getting longer every day.
10/10

If you come up with something new and cool, share it with the world! We wanna see it! 😍

#ai #promptengineering #chatgpt #gpt3 #languagemodels #textgeneration #transformers

• • •

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

Keep Current with Sandra Kublik

Sandra Kublik 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 @sandra_kublik

Nov 16, 2022
1/n I made a list of the 13 most mind-bending Stable Diffusion uses I’ve seen so far. 🌈
See🧵for details.

#stablediffusion
2/n Architectural Sketches
@rostenbach created incredible architectural renderings which made me think of future architecture generated by ai
artstation.com/blogs/rostenba…
3/n Search Engine
@sharifshameem scrapped millions of SD-generated images and turned them into a @LexicaArt search engine for creative assets
Read 20 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 on Twitter!

:(