ChatGPT常用prompts汇总


❤️觉得内容不错的话,欢迎点赞收藏加关注😊😊😊,后续会继续输入更多优质内容❤️

👉有问题欢迎大家加关注私戳或者评论(包括但不限于NLP算法相关,linux学习相关,读研读博相关......)👈

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/


❤️觉得内容不错的话,欢迎点赞收藏加关注😊😊😊,后续会继续输入更多优质内容❤️

👉有问题欢迎大家加关注私戳或者评论(包括但不限于NLP算法相关,linux学习相关,读研读博相关......)👈

  • 3
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Chaos_Wang_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值