阅读(3400) (0)

ChatGPT应用场景2:基于已有的示例回答

2023-05-05 13:53:42 更新

场景介绍

在某些场景下,我们能比较简单地向 AI 描述出什么能做,什么不能做。但有些场景,有些需求很难通过文字指令传递给 AI,即使描述出来了,AI 也不能很好地理解。

比如给宠物起英文名,里面会夹杂着一些所谓的名字风格。此时你就可以在 prompt 里增加一些例子,我们看看这个例子。

这个是没有任何示例的 Prompt:

Suggest three names for a horse that is a superhero.

 给一匹超级英雄马取三个名字。

输出如下所示。第一个感觉还行,第二个 Captain 有 hero 的感觉,但 Canter 就像是说这匹马跑得很慢,感觉不太合适,而且三个都比较一般,不够酷。

Thunder Hooves, Captain Canter, Mighty Gallop

技巧 2:增加示例

如果你无法用文字准确解释问题或指示,你可以在 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:

 给一只超级英雄动物取三个名字。

动物:猫

姓名:沙普克劳上尉、Fluffball探员、不可思议的猫科动物

动物:狗

姓名:Ruff the Protector、Wonder Canine、Barks-Lot爵士

动物:马

姓名:

增加例子后,输出的结果就更酷一些,或者说是接近我想要的那种风格的名字。

Gallop Guardian, Equine Avenger, The Mighty Stallion

以下是一些场景案例,我整理了两个 Less Effective(不太有效的)和 Better(更好的)prompt,你可以自己尝试下这些案例:

场景 不太有效的(Less Effective) 更好的(Better) 原因
起产品名 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:
(产品描述:家用奶昔机
种子词:快速、健康、紧凑。
产品名称:HomeShaker、Fit Shaker、QuickShake、Shake Maker
产品描述:一双可以穿任何尺码的鞋。
种子词:适应性强,适合,全能。
产品名称:)
当给出一个示例的时候,ChatGPT会更多的模仿提供的示例
将电影名称转为 emoji Convert Star Wars into emoji
(将星球大战转换为emoji)
Convert movie titles into emoji.
Back to the Future: