Appearance
- 1、使用最新模型,为了获得最佳结果,通常建议使用最新、功能最强的模型
- 2、把指令放在提示语的开头,并使用 ### 或 """ 分隔指令和上下文
python
比如不推荐这样
Summarize the text below as a bullet point list of the most important points.
{text input here}
推荐这样
Summarize the text below as a bullet point list of the most important points.
Text: """
{text input here}
"""- 3、尽可能具体、描述性和详细地说明所需的上下文、结果、长度、格式、风格等
python
不推荐
Write a poem about OpenAI.
推荐
Write a short inspiring poem about OpenAI, focusing on the recent DALL-E product launch (DALL-E is a text to image ML model) in the style of a {famous poet}- 4、通过示例阐述所需的输出格式
python
不推荐
Extract the entities mentioned in the text below. Extract the following 4 entity types: company names, people names, specific topics and themes.
Text: {text}
推荐
Extract the important entities mentioned in the text below. First extract all company names, then extract all people names, then extract specific topics which fit the content and finally extract general overarching themes
Desired format:
Company names: <comma_separated_list_of_company_names>
People names: -||-
Specific topics: -||-
General themes: -||-
Text: {text}- 5、先从零样本提示开始,如果无效,尝试少样本提示,如果依然无效,则进行微调
python
零样本 zero-shot
Extract keywords from the below text.
Text: {text}
Keywords:
few-shot
Extract keywords from the corresponding texts below.
Text 1: Stripe provides APIs that web developers can use to integrate payment processing into their websites and mobile applications.
Keywords 1: Stripe, payment processing, APIs, web developers, websites, mobile applications
##
Text 2: OpenAI has trained cutting-edge language models that are very good at understanding and generating text. Our API provides access to these models and can be used to solve virtually any task that involves processing language.
Keywords 2: OpenAI, language models, text processing, API.
##
Text 3: {text}
Keywords 3:- 6、减少浮夸和不精确的描述
python
不推荐
The description for this product should be fairly short, a few sentences only, and not too much more.
推荐
Use a 3 to 5 sentence paragraph to describe this product.- 7、不要只说不该做什么,而是说应该做什么
python
效果欠佳
The following is a conversation between an Agent and a Customer. DO NOT ASK USERNAME OR PASSWORD. DO NOT REPEAT.
Customer: I can’t log in to my account.
Agent:
推荐
The following is a conversation between an Agent and a Customer. The agent will attempt to diagnose the problem and suggest a solution, whilst refraining from asking any questions related to PII. Instead of asking for PII, such as username or password, refer the user to the help article www.samplewebsite.com/help/faq
Customer: I can’t log in to my account.
Agent:8、使用引导词促进模型遵循特定模式
python
不推荐
# Write a simple python function that
# 1. Ask me for a number in mile
# 2. It converts miles to kilometers
推荐
# Write a simple python function that
# 1. Ask me for a number in mile
# 2. It converts miles to kilometers
import