网易首页 > 网易号 > 正文 申请入驻

ChatGPT 最佳实践指南之:写出清晰的指示

0
分享至

Write clear instructions

写出清晰的指示

GPTs can’t read your mind. If outputs are too long, ask for brief replies. If outputs are too simple, ask for expert-level writing. If you dislike the format, demonstrate the format you’d like to see. The less GPTs have to guess at what you want, the more likely you’ll get it.

GPT 无法读懂您的心思。所以, 如果输出过长,请要求简短回复。如果输出过于简单,请要求专业水平的写作。如果您不喜欢格式,请展示您想要看到的格式。越不需要 GPT 去猜测您的意图,您得到所需结果的可能性就越大。

Tactics: Include details in your query to get more relevant answers

技巧: 在询问中包含细节以获得更相关的答案

In order to get a highly relevant response, make sure that requests provide any important details or context. Otherwise you are leaving it up to the model to guess what you mean.

为了获得高度相关的回答,请确保请求中包含任何重要的细节或背景信息。否则,您将让模型去猜测您的意思。

Worse 糟糕

Better 更好

How do I add numbers in Excel?

如何在 Excel 中添加数字?

How do I add up a row of dollar amounts in Excel? I want to do this automatically for a whole sheet of rows with all the totals ending up on the right in a column called "Total".

在 Excel 中如何将一行美元金额相加?我想自动为整个工作表的行求和,将所有总计放在右侧的名为“Total”的列中。

Who’s president?

谁是总统?

Who was the president of Mexico in 2021, and how frequently are elections held?

墨西哥在2021年的总统是谁?选举有多频繁?

Write code to calculate the Fibonacci sequence.

编写代码以计算斐波那契数列。

Write a TypeScript function to efficiently calculate the Fibonacci sequence. Comment the code liberally to explain what each piece does and why it's written that way.

编写一个 TypeScript 函数以高效计算斐波那契数列。请在代码中自由添加注释,解释每个部分的作用以及为什么以这种方式编写。

Summarize the meeting notes.

总结会议记录。

Summarize the meeting notes in a single paragraph. Then write a markdown list of the speakers and each of their key points. Finally, list the next steps or action items suggested by the speakers, if any.

将会议记录总结成一段话。然后用 Markdown 列出发言人和他们的要点。最后,列出发言人建议的下一步行动或行动事项(如果有的话)。

Tactic: Ask the model to adopt a persona

技巧:要求模型采用一个角色

The system message can be used to specify the persona used by the model in its replies.

系统消息可以用于指定模型在其回复中使用的角色。

SYSTEM

系统

When I ask for help to write something, you will reply with a document that contains at least one joke or playful comment in every paragraph.

当我要求帮助撰写某些内容时,您将回复一个包含每段文字中至少一个笑话或幽默评论的文档。

USER

用户

Write a thank you note to my steel bolt vendor for getting the delivery in on time and in short notice. This made it possible for us to deliver an important order.

给我的钢螺栓供应商写一封感谢信,感谢他们准时并在短时间内交付货物。这使我们能够交付一份重要的订单。

Tactic: Use delimiters to clearly indicate distinct parts of the input

技巧:使用定界符清楚地表示输入的不同部分

Delimiters like triple quotation marks, XML tags, section titles, etc. can help demarcate sections of text to be treated differently.

可以使用三引号、XML 标记、章节标题等定界符来标明不同的文本部分,以便进行不同处理。

USER

用户

Summarize the text delimited by triple quotes with a haiku.

使用三引号界定的文本,用俳句概括。

"""insert text here"""

"""在此插入文本"""

SYSTEM

系统

You will be provided with a pair of articles (delimited with XML tags) about the same topic. First summarize the arguments of each article. Then indicate which of them makes a better argument and explain why.

您将获得一对关于同一主题的文章(使用 XML 标记界定)。首先总结每篇文章的论点。然后指出哪篇文章提出了更好的论点,并解释原因。

USER

用户

insert first article here

在此插入第一篇文章

insert second article here

在此插入第二篇文章

SYSTEM

系统

You will be provided with a thesis abstract and a suggested title for it. The thesis title should give the reader a good idea of the topic of the thesis but should also be eye-catching. If the title does not meet these criteria, suggest 5 alternatives.

您将获得一篇论文摘要和一个建议的标题。论文标题应该让读者对论文的主题有一个很好的了解,但也应该引人注目。如果标题不符合这些标准,请提供5个备选方案。

USER

用户

Abstract: insert abstract here

摘要:在此插入摘要

Title: insert title here

标题:在此插入标题

For straightforward tasks such as these, using delimiters might not make a difference in the output quality. However, the more complex a task is the more important it is to disambiguate task details. Don’t make GPTs work to understand exactly what you are asking of them.

对于像这样的简单任务,使用定界符可能对输出质量没有影响。然而,任务越复杂,将任务细节明确化就变得越重要。不要让 GPT 辛苦理解您确切的要求。

Tactic: Specify the steps required to complete a task

技巧:指定完成任务所需的步骤

Some tasks are best specified as a sequence of steps. Writing the steps out explicitly can make it easier for the model to follow them.

有些任务最好以一系列步骤的形式指定。将步骤明确写出可以帮助模型更容易地遵循这些步骤。

SYSTEM

系统

Use the following step-by-step instructions to respond to user inputs.

使用以下逐步说明来回应用户输入。

Step 1 - The user will provide you with text in triple quotes. Summarize this text in one sentence with a prefix that says "Summary: ".

第一步 - 用户将向您提供用三引号括起来的文本。用前缀“概要:”将该文本总结为一句话。

Step 2 - Translate the summary from Step 1 into Spanish, with a prefix that says "Translation: ".

第二步 - 将步骤1中的总结翻译成西班牙语,并用前缀“翻译:”。

USER

用户

"""insert text here"""

"""在此插入文本"""

Tactic: Provide examples

技巧:提供示例

Providing general instructions that apply to all examples is generally more efficient than demonstrating all permutations of a task by example, but in some cases providing examples may be easier. For example, if you intend for the model to copy a particular style of responding to user queries which is difficult to describe explicitly. This is known as "few-shot" prompting.

通常情况下,提供适用于所有示例的一般指示比通过示例演示任务的所有排列组合要高效,但在某些情况下,提供示例可能更容易。例如,如果您希望模型复制特定的用户查询响应风格,而这种风格很难以明确描述。这被称为“少样本”提示。

SYSTEM

系统

Answer in a consistent style.

请以一致的风格回答。

USER

用户

Teach me about patience.

教我关于耐心。

ASSISTANT

助理

The river that carves the deepest valley flows from a modest spring; the grandest symphony originates from a single note; the most intricate tapestry begins with a solitary thread.

雕刻最深峡谷的河流源于一处不起眼的泉水;最壮丽的交响乐由一声孤独的音符开启;最复杂的挂毯由一根孤立的线索编织而成。

USER

用户

Teach me about the ocean.

教我关于海洋。

Tactic: Specify the desired length of the output

技巧:指定期望的输出长度

You can ask the model to produce outputs that are of a given target length. The targeted output length can be specified in terms of the count of words, sentences, paragraphs, bullet points, etc. Note however that instructing the model to generate a specific number of words does not work with high precision. The model can more reliably generate outputs with a specific number of paragraphs or bullet points.

您可以要求模型生成特定长度的输出。目标输出长度可以根据单词、句子、段落、项目符号等来指定。但请注意,指示模型生成特定数量的单词的效果不是非常精确。模型更可靠地生成具有特定数量段落或项目符号的输出。

USER

用户

Summarize the text delimited by triple quotes in about 50 words.

以大约50个词来总结由三引号界定的文本。

"""insert text here"""

"""在此插入文本"""

USER

用户

Summarize the text delimited by triple quotes in 2 paragraphs.

以2个段落来总结由三引号界定的文本。

"""insert text here"""

"""在此插入文本"""

USER

用户

Summarize the text delimited by triple quotes in 3 bullet points.

以3个项目符号来总结由三引号界定的文本。

"""insert text here"""

"""在此插入文本"""

“点赞有美意,赞赏是鼓励”

特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。

Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.

相关推荐
热点推荐
过“紧日子”的地方政府,已经把手伸进老百姓的口袋里去了

过“紧日子”的地方政府,已经把手伸进老百姓的口袋里去了

浮事记
2024-06-03 11:48:21
2024安徽中考数学难度太大,有考生坦言:命题组成功将我送进大山

2024安徽中考数学难度太大,有考生坦言:命题组成功将我送进大山

育学笔谈
2024-06-15 21:17:31
智利正式申请加入《区域全面经济伙伴关系协定》

智利正式申请加入《区域全面经济伙伴关系协定》

界面新闻
2024-06-16 07:10:30
大局已定,退休人员看完纷纷坐不住了,早知道早准备!

大局已定,退休人员看完纷纷坐不住了,早知道早准备!

酷小子玩体彩
2024-06-15 15:55:35
日本神秘组织“布局”,卫星识破,中国第一高楼背后中日风水大战

日本神秘组织“布局”,卫星识破,中国第一高楼背后中日风水大战

苏大强专栏
2024-03-24 22:06:54
人过七十,出门一定要做到“六不带”,好福气不请自来

人过七十,出门一定要做到“六不带”,好福气不请自来

布衣粗食68
2024-05-03 15:40:58
一个中年女人的自述:我的3个好闺蜜都出轨了,她们丈夫也都知道

一个中年女人的自述:我的3个好闺蜜都出轨了,她们丈夫也都知道

陶陛讲故事
2024-05-28 12:11:57
严管!6月17日起!天津全市执行!

严管!6月17日起!天津全市执行!

天津族
2024-06-16 07:35:48
越战老照片 死于战场上的士兵 多少有点恐怖

越战老照片 死于战场上的士兵 多少有点恐怖

那些看得见的老照片
2024-06-07 07:00:02
上海各区首富名单出炉,2人坐拥超千亿!三位“80后”上榜

上海各区首富名单出炉,2人坐拥超千亿!三位“80后”上榜

雷哥的美食
2024-06-15 15:20:26
17岁数学天才少女姜萍爆火的第2天,担忧的事发生了

17岁数学天才少女姜萍爆火的第2天,担忧的事发生了

解说阿洎
2024-06-15 11:15:13
基德:我们准备出击了 他们看起来已经准备庆祝了

基德:我们准备出击了 他们看起来已经准备庆祝了

直播吧
2024-06-16 10:29:14
证实了!“没邀请美国”

证实了!“没邀请美国”

占豪
2024-06-16 03:12:17
黄一鸣掌握流量密码,用四根葱给女儿打码,网友笑称替王思聪养娃

黄一鸣掌握流量密码,用四根葱给女儿打码,网友笑称替王思聪养娃

大洪大伙
2024-06-15 20:13:50
总决赛G5前瞻:波神复出难救主,独行侠内外开花,绿军夺冠有变数

总决赛G5前瞻:波神复出难救主,独行侠内外开花,绿军夺冠有变数

开心体育站
2024-06-16 09:12:29
姜萍给家乡带来泼天流量,涟水文旅自称中国涟水,江苏瑟瑟发抖

姜萍给家乡带来泼天流量,涟水文旅自称中国涟水,江苏瑟瑟发抖

冬天来旅游
2024-06-16 11:12:16
凯特王妃重返公众视野,与王室成员的聊天被唇语解读

凯特王妃重返公众视野,与王室成员的聊天被唇语解读

土澳的故事
2024-06-15 23:09:09
上海市奉贤区一公职人员接受纪律审查和监察调查

上海市奉贤区一公职人员接受纪律审查和监察调查

鲁中晨报
2024-06-15 17:03:02
“烟酒不离手,健康两边走?”雷军双马抽烟吗?刘强东没学会!

“烟酒不离手,健康两边走?”雷军双马抽烟吗?刘强东没学会!

涛涛生活搞笑
2024-06-15 23:30:15
上海第一“鬼站”漕宝路地铁站:殡仪馆停尸房围在四周,诡事频出

上海第一“鬼站”漕宝路地铁站:殡仪馆停尸房围在四周,诡事频出

神秘历史故事
2023-06-29 15:56:50
2024-06-16 12:54:44
MediaTea
MediaTea
专业的数字媒体、新媒体技术
710文章数 54关注度
往期回顾 全部

头条要闻

媒体:普京开出的停火条件有重大变化 已亮出战略底牌

头条要闻

媒体:普京开出的停火条件有重大变化 已亮出战略底牌

体育要闻

没人永远年轻 但青春如此无敌还是离谱了些

娱乐要闻

上影节红毯:倪妮好松弛,娜扎吸睛

财经要闻

打断妻子多根肋骨 上市公司创始人被公诉

科技要闻

iPhone 16会杀死大模型APP吗?

汽车要闻

售17.68万-21.68万元 极狐阿尔法S5正式上市

态度原创

时尚
手机
教育
艺术
本地

中年女性还是穿连衣裙最有气质!裙摆过膝、腰部收紧,巨显瘦

手机要闻

华为最强折叠屏手机Mate X6核心技术被曝光:新款麒麟、更硬玻璃

教育要闻

高考结束不代表万事大吉,考生别着急丢准考证,这8个用途需了解

艺术要闻

穿越时空的艺术:《马可·波罗》AI沉浸影片探索人类文明

本地新闻

粽情一夏|海河龙舟赛,竟然成了外国人的大party!

无障碍浏览 进入关怀版