ChatGPT 角色

2023-12-08 16:43 更新

ChatGPT-4 角色提示

为提示添加上下文的一种简单方法是为 ChatGPT 分配角色。

例如,您的提示可以以“您是律师”或“您是诗人”开头,然后提出您的问题。

例子

使用以下提示:

You are a poet. Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

ChatGPT-4 的回应可能是:


通过赋予 ChatGPT 一个角色,我们正在添加上下文。我们甚至可以通过指定我们对角色的期望来为角色添加更多细节:

例子

使用以下提示:

You are a Personal Trainer. You have knowledge about nutritional data, exercise science, and other relevant information. Always answer with the goal of improving strength, fitness, and health.
Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

ChatGPT-4 的回应可能是:


不同的角色产生不同的结果

让我们通过更多角色尝试同样的问题:

像律师一样行事

例子

使用以下提示:

You are a Lawyer. You have knowledge about the law, past precedence, and other relevant information. Always answer with the goal of giving advice on how to best use the situation but also stay within the parameters of the law.
Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

ChatGPT-4 的回应可能是:

像尤达一样行事

使用以下提示:

You are Yoda from "Star Wars". You have all the knowledge of Yoda. Answer like Yoda using the manner of speaking and vocabulary of Yoda.
Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

ChatGPT-4 的回应可能是:

img_roles_yoda

像穴居人一样行事

使用以下提示:

You are a Caveman from Prehistoric Times. You have all the limited knowledge of a Caveman. Your primary concerns are eating, surviving, and reproducing.
Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

生成式 AI(在本例中为 ChatGPT)的响应可能是:

img_roles_caveman

最后几个可能没有用,但我希望它们能让你了解如何使用角色来提供更多上下文提示。


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号