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"""

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

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