写出明确的指引的策略

在查询中包含详细信息以获得更相关的答案

(Include details in your query to get more relevant answers****)****

为了获得高度相关的回答,请确保请求提供任何重要的细节或背景信息。否则,你就让模型去猜你的意思了。

Worse Better
How do I add numbers in 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”.
Who’s president? Who was the president of Mexico in 2021, and how frequently are elections held?
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.
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.

要求模型采用特定的人设

(Ask the model to adopt a persona)
系统消息可以用来指定模型在回复中所使用的人设。

Role Prompt
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.

使用分隔符清晰地标示输入的不同部分

(Use delimiters to clearly indicate distinct parts of the input)

使用分隔符,如三重引号、XML标签、章节标题等,可以帮助标示文本的不同部分,以便进行不同的处理。

Role Prompt
USER Summarize the text delimited by triple quotes with a haiku.
“”“insert text here”“”
Role Prompt
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.
Role Prompt
USER
insert first article here

insert second article here
Role Prompt
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.
USER Abstract: insert abstract here
Title: insert title here

对于这样简单的任务,使用分隔符可能对输出质量没有太大影响。然而,对于更复杂的任务,更重要的是消除任务细节的歧义。不要让GPTs费力去理解您到底要求它们做什么。

指定完成任务所需的步骤

(Specify the steps required to complete a task)
对于某些任务来说,最好将其指定为一系列步骤。明确地写出这些步骤可以让模型更容易地按照它们进行操作。

Role Prompt
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: ".
USER “”“insert text here”“”

提供示例

(Provide examples)
通常情况下,提供适用于所有示例的一般指令比通过示例展示任务的所有变化更高效,但在某些情况下,提供示例可能更容易。例如,如果您打算让模型复制一种难以明确描述的特定用户查询响应样式,这就是所谓的“少样本”提示。

Role Prompt
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.

指定期望的输出长度

(Specify the desired length of the output)
您可以要求模型生成具有特定目标长度的输出。目标输出长度可以根据单词数、句子数、段落数、项目符号等来指定。然而,请注意,指示模型生成特定数量的单词并不具有高精度。模型可以更可靠地生成具有特定段落数或项目符号数的输出。

Role Prompt
USER Summarize the text delimited by triple quotes in about 50 words.
“”“insert text here”“”
USER Summarize the text delimited by triple quotes in 2 paragraphs.
“”“insert text here”"”
USER Summarize the text delimited by triple quotes in 3 bullet points.
“”“insert text here”"”

请我喝杯咖啡吧~

支付宝
微信