Scenario 2: Answer questions based on examples
Scenarioâ
For example, when naming a pet in English, there are often certain naming styles or preferences to consider. In such cases, you can include examples within the prompt to provide a clearer understanding. Let's take a look at an example.
Prompt without examples:
Suggest three names for a horse that is a superhero.
The output provided is as follows. The first name seems okay, the second name "Captain Canter" gives a heroic feeling, but "Canter" implies that the horse runs slowly, which does not seem appropriate. Overall, the names suggested are ordinary and not cool enough.
Thunder Hooves, Captain Canter, Mighty Gallop
Tip 2: Include Examplesâ
If you find it challenging to explain a problem or provide instructions with just text, you can include examples within the prompt:
Suggest three names for an animal that is a superhero.
Animal: Cat
Names: Captain Sharpclaw, Agent Fluffball, The Incredible Feline
Animal: Dog
Names: Ruff the Protector, Wonder Canine, Sir Barks-a-Lot
Animal: Horse
Names:
By providing examples, the output becomes cooler and closer to the naming style desired:
Gallop Guardian, Equine Avenger, The Mighty Stallion
Here are some examples to try yourself:
Scenario | Less Effective | Better | Reason |
---|---|---|---|
Product naming | Product description: A pair of shoes that can fit any foot size. Seed words: adaptable, fit, omni-fit. Product names: | Product description: A home milkshake maker Seed words: fast, healthy, compact. Product names: HomeShaker, Fit Shaker, QuickShake, Shake Maker Product description: A pair of shoes that can fit any foot size. Seed words: adaptable, fit, omni-fit. Product names: | You can run this example below to see what answer AI gives without any examples. |
Converting movie titles into emojis | Convert Star Wars into emoji | Convert movie titles into emoji. Back to the Future: đ¨đ´đđ Batman: đ¤ĩđĻ Transformers: đđ¤ Star Wars: | You can run this example below to see what answer AI gives without any examples. |
When using this tip, you may find that the model does not always provide the correct answer, even with the provided examples. In such cases, you will need to employ more advanced techniques. I will discuss how to optimize the prompt to achieve more accurate results in the advanced section.