ChatGPT常用prompts汇总
ChatGPT常用prompts汇总
ChatGPT是目前最先进的自然语言生成模型之一,但如何构建合适的Prompt提示词对于模型的表现至关重要。在这篇博客中,我们将汇总一些常用的Prompts,以便使用者更好地指导模型输出符合预期的内容。无论您是初学者还是经验丰富的ChatGPT用户,这篇博客都将为您提供实用的指导和帮助。
官方推荐的prompts(都是英文的部分,但是毕竟官方推荐还是最可靠的)
网址:https://platform.openai.com/examples
1. 问答
I am a highly intelligent question answering bot. If you ask me a question that is rooted in truth, I will give you the answer. If you ask me a question that is nonsense, trickery, or has no clear answer, I will respond with "Unknown".
Q: What is human life expectancy in the United States?
A: Human life expectancy in the United States is 78 years.
Q: Who was president of the United States in 1955?
A: Dwight D. Eisenhower was president of the United States in 1955.
Q: Which party did he belong to?
A: He belonged to the Republican Party.
Q: What is the square root of banana?
A: Unknown
Q: How does a telescope work?
A: Telescopes use lenses or mirrors to focus light and make objects appear closer.
Q: Where were the 1992 Olympics held?
A: The 1992 Olympics were held in Barcelona, Spain.
Q: How many squigs are in a bonk?
A: Unknown
Q: Where is the Valley of Kings?
A:
2. 语法纠正
Correct this to standard English:
She no went to the market.
3. 总结
Summarize this for a second-grade student:
Jupiter is the fifth planet from the Sun and the largest in the Solar System. It is a gas giant with a mass one-thousandth that of the Sun, but two-and-a-half times that of all the other planets in the Solar System combined. Jupiter is one of the brightest objects visible to the naked eye in the night sky, and has been known to ancient civilizations since before recorded history. It is named after the Roman god Jupiter.[19] When viewed from Earth, Jupiter can be bright enough for its reflected light to cast visible shadows,[20] and is on average the third-brightest natural object in the night sky after the Moon and Venus.
4. Text to command
Convert this text to a programmatic command:
Example: Ask Constance if we need some bread
Output: send-msg `find constance` Do we need some bread?
Reach out to the ski store and figure out if I can get my skis fixed before I leave on Thursday
5. 分类
The following is a list of companies and the categories they fall into:
Apple, Facebook, Fedex
Apple
Category:
6. Movie to Emoji
Convert movie titles into emoji.
Back to the Future: 👨👴🚗🕒
Batman: 🤵🦇
Transformers: 🚗🤖
Star Wars:
7. 计算时间复杂度
def foo(n, k):
accum = 0
for i in range(n):
for l in range(k):
accum += i
return accum
"""
The time complexity of this function is
8. 情感分析
Classify the sentiment in these tweets:
1. "I can't stand homework"
2. "This sucks. I'm bored 😠"
3. "I can't wait for Halloween!!!"
4. "My cat is adorable ❤️❤️"
5. "I hate chocolate"
Tweet sentiment ratings:
9. 程序说明
class Log:
def __init__(self, path):
dirname = os.path.dirname(path)
os.makedirs(dirname, exist_ok=True)
f = open(path, "a+")
# Check that the file is newline-terminated
size = os.path.getsize(path)
if size > 0:
f.seek(size - 1)
end = f.read(1)
if end != "\n":
f.write("\n")
self.f = f
self.path = path
def log(self, event):
event["_event_id"] = str(uuid.uuid4())
json.dump(event, self.f)
self.f.write("\n")
def state(self):
state = {"complete": set(), "last": None}
for line in open(self.path):
event = json.loads(line)
if event["type"] == "submit" and event["success"]:
state["complete"].add(event["id"])
state["last"] = event
return state
"""
Here's what the above class is doing, explained in a concise way:
1.
10. 关键词提取
Extract keywords from this text:
Black-on-black ware is a 20th- and 21st-century pottery tradition developed by the Puebloan Native American ceramic artists in Northern New Mexico. Traditional reduction-fired blackware has been made for centuries by pueblo artists. Black-on-black ware of the past century is produced with a smooth surface, with the designs applied through selective burnishing or the application of refractory slip. Another style involves carving or incising designs and selectively polishing the raised areas. For generations several families from Kha'po Owingeh and P'ohwhóge Owingeh pueblos have been making black-on-black ware with the techniques passed down from matriarch potters. Artists from other pueblos have also produced black-on-black ware. Several contemporary artists have created works honoring the pottery of their ancestors.
11. 文章大纲
Create an outline for an essay about Nikola Tesla and his contributions to technology:
12. 面试问题
Create a list of 8 questions for my interview with a science fiction author:
其他好用的prompts
1. 免费的 Prompt Engineering 教程——免费使用
链接:https://learningprompt.wiki/
2. 好用的中文prompts——免费使用
链接:https://github.com/PlexPt/awesome-chatgpt-prompts-zh
3. 好用的英文prompts——免费使用
链接:https://github.com/f/awesome-chatgpt-prompts
4. promptvine——免费使用
链接:https://promptvine.com/
5. promptperfect——付费使用
链接:https://promptperfect.jina.ai/prompts
6. flowgpt
链接:https://flowgpt.com/
7. quickref
链接:https://quickref.me/chatgpt
8. promptbase
链接:https://promptbase.com/
9. 其他
https://beebom.com/best-chatgpt-prompts/
https://newzone.top/chatgpt/
https://promptvine.com/prompts/chatgpt
https://github.com/f/awesome-chatgpt-prompts
https://chatguide.plexpt.com/
https://gridfiti.com/best-chatgpt-prompts/