《花雕学AI》ChatGPT 的 Prompt 用法,不是随便写就行的,这 13 种才是最有效的

ChatGPT 是一款基于 GPT-3 模型的人工智能写作工具,它可以根据用户的输入和要求,生成各种类型和风格的文本内容,比如文章、故事、诗歌、对话、摘要等。ChatGPT 的强大之处在于它可以灵活地适应不同的写作场景和目的,只要用户给出合适的 Prompt(提示),它就可以按照 Prompt 的格式或关键词来生成相关的内容。Prompt 用法是 ChatGPT 的基本功,也是提高写作效率和质量的关键。本文将为您详细介绍 ChatGPT 的 13 种 Prompt 用法,让您掌握 ChatGPT 的精髓,写出更有吸引力的文章。

在这里插入图片描述

1、文本生成 Text Generation:使用特定的文本格式或关键词来生成相关的内容,比如:写一首关于爱情的诗、生成一个巧克力蛋糕的食谱 Write a poem about love、Generate a recipe for chocolate cake等。
在这里插入图片描述

2、文本补全 Text Completion:使用特定的文本片段或开头来生成后续的内容,比如:从前有个公主,住在一座城堡里…、我收到过的最好的建议是… Once upon a time, there was a princess who lived in a castle…、The best advice I ever received was…等。
在这里插入图片描述

3、文本摘要 Text Summarization:使用特定的文本或网址来生成摘要或概括,比如:用一句话总结以下文章: https://www.nytimes.com/2021/10/30/world/europe/covid-vaccine-mandate-austria.html、总结这段文字的主要思想: Lorem ipsum dolor sit amet… Summarize the following article in one sentence: https://www.nytimes.com/2021/10/30/world/europe/covid-vaccine-mandate-austria.html、Summarize the main idea of this paragraph: Lorem ipsum dolor sit amet…等。
在这里插入图片描述

4、文本重写 Text Rewriting:使用特定的文本或要求来生成修改后的内容,比如:把以下句子改得更礼貌一些: 你真笨。、把以下段落改得更简单一些: 相对论是… Rewrite the following sentence in a more polite way: You are so stupid.、Rewrite the following paragraph in a simpler way: The theory of relativity is…等。
在这里插入图片描述

5、文本翻译 Text Translation:使用特定的文本或语言来生成翻译后的内容,比如:把以下句子翻译成法语: 我爱你。、把以下段落翻译成英语: 我是一个人工智能…等 Translate the following sentence into French: I love you.、Translate the following paragraph into English: 我是一个人工智能…。
在这里插入图片描述

6、文本分类 Text Classification:使用特定的文本或类别来生成分类后的结果,比如:把以下句子分类为积极、消极或中立: 我讨厌这部电影。、把以下段落分类为虚构或非虚构: 哈利·波特是一个住在楼梯下面的男孩…等。Classify the following sentence as positive, negative or neutral: I hate this movie.、Classify the following paragraph as fiction or non-fiction: Harry Potter was a boy who lived under the stairs…等。
在这里插入图片描述

7、文本提取 Text Extraction:使用特定的文本或信息来生成提取后的结果,比如:从以下文字中提取姓名和电子邮件地址: John Smith ([email protected])、从以下故事中提取主要人物和背景: 爱丽丝开始厌倦了坐在姐姐身边河岸上…等。Extract the name and email address from the following text: John Smith ([email protected])、Extract the main characters and setting from the following story: Alice was beginning to get very tired of sitting by her sister on the bank…等。
在这里插入图片描述

8、文本问答 Text Question Answering:使用特定的文本或问题来生成回答后的结果,比如:根据以下文字回答问题: 太阳是太阳系中心的恒星。它是一个几乎完美的热等离子体球体。问题: 太阳的形状是什么?、根据常识回答问题: 问题: 中国的主席是谁?等。Answer the following question based on the text: The Sun is the star at the center of the Solar System. It is a nearly perfect sphere of hot plasma. Question: What is the shape of the Sun?、Answer the following question based on common knowledge: Question: Who is the president of China?等。
在这里插入图片描述

9、文本对话 Text Conversation:使用特定的文本或对话来生成交流后的结果,比如:继续以下对话: 用户: 你好,你好吗?机器人:、和一个想买车的用户开始对话等。Continue the following conversation: User: Hi, how are you? Bot:、Start a conversation with a user who wants to buy a car.等。
在这里插入图片描述

10、文本评价 Text Evaluation:使用特定的文本或标准来生成评价后的结果,比如:评价以下句子是否有语法和拼写错误: He go to school everyday.、Evaluate the following sentence for grammar and spelling errors: He go to school everyday.、Evaluate the following paragraph for readability and coherence: The cat sat on the mat. The dog barked at the moon. The cow jumped over the fence.等。
在这里插入图片描述

11、有条件的文本生成 Text Generation with Constraints:使用特定的文本格式或条件来生成符合要求的内容,比如:写一首关于爱情的押韵并且有四行的诗、生成一个适合素食者和不含麸质的巧克力蛋糕的食谱等。Write a poem about love that rhymes and has 4 lines.、Generate a recipe for chocolate cake that is vegan and gluten-free.等。
在这里插入图片描述

12、文本风格转换 Text Style Transfer:使用特定的文本或风格来生成转换后的内容,比如:把以下句子转换成更正式的风格: 嘿,最近怎么样?、把以下段落转换成幽默的风格: 新冠疫情给全球造成了广泛的破坏和苦难等。Transfer the following sentence into a more formal style: Hey, what’s up?、Transfer the following paragraph into a humorous style: The coronavirus pandemic has caused widespread disruption and suffering around the world.等。
在这里插入图片描述

13、文本改写 Text Paraphrasing:使用特定的文本或要求来生成不同表达方式的内容,比如:用另一种方式改写以下句子: 我今天很开心。、用更简短的方式改写以下段落: 相对论是…等。Paraphrase the following sentence in another way: I’m very happy today.、Paraphrase the following paragraph in a shorter way: The theory of relativity is…等。
在这里插入图片描述

本文为您介绍了 ChatGPT 的 13 种 Prompt 用法,它们分别是:Text Generation、Text Completion、Text Summarization、Text Rewriting、Text Translation、Text Classification、Text Extraction、Text Question Answering、Text Conversation、Text Evaluation、Text Generation with Constraints、Text Style Transfer 和 Text Paraphrasing。这些 Prompt 用法可以让您充分发挥 ChatGPT 的人工智能写作能力,生成各种类型和风格的文本内容,满足您的不同写作需求。在使用 ChatGPT 的过程中,您需要根据您的写作场景和目的,选择合适的 Prompt 用法,给出清晰和具体的格式或关键词,以便 ChatGPT 能够理解您的意图和要求,生成更符合您期望的内容。同时,您也需要注意检查和修改 ChatGPT 生成的内容,避免出现语法错误、逻辑错误或不恰当的内容,提高您的写作质量和水平。希望本文能够对您使用 ChatGPT 有所帮助,让您享受人工智能写作的乐趣。

在这里插入图片描述

附录:

【花雕学AI】是一个学习专栏,由驴友花雕撰写,主要介绍了人工智能领域的多维度学习和广泛尝试,包含多篇文章,分别介绍了ChatGPT、New Bing和Leonardo AI等人工智能应用和技术的过程和成果。本专栏通过实际案例和故事,分享了花雕在人工智能领域的探索和体验,旨在激发更多人对人工智能的兴趣和热情。了解更多,请使用谷歌、必应、百度或者今日头条等引擎直接搜索【花雕学AI】。

猜你喜欢

转载自blog.csdn.net/weixin_41659040/article/details/130529535
今日推荐