科学工具
科学工具让世界更美好
让世界更美好

GPT 提示词资源与实用示例GPT 提示词资源与实用示例

BlackFriday-GPTs-Prompts 里收集了大量不需要 Plus 订阅的免费 GPT 提示词,内容丰富分类明确,能为不同需求的用户提供帮助。

编程相关:包含各种编程任务的提示词,能帮助开发者更高效地与 GPT 交互,生成所需的代码或解决编程问题。

学术领域:为学术研究提供支持,比如文献综述、论文写作等方面的提示词。

商业场景:适用于商业活动,像市场分析、商业计划撰写等都能从中找到合适的提示词。

创意创作:有助于激发创意,在诗歌写作、故事构思等创作活动中发挥作用。

求职就业:包含简历优化、面试准备等方面的提示词,帮助求职者更好地应对求职过程。

生产力和生活方式:涉及时间管理、任务规划等提升生活和工作效率的提示词。

越狱提示词:这部分内容可能涉及一些特殊的使用场景,需要使用者谨慎对待。

提示词实用示例详解

文本概括任务

在自然语言处理中,文本概括是一项常见任务。下面通过一个例子来看看如何用提示词完成基本的概括工作。

提示词:

Explain antibiotics
A:

输出:

Antibiotics are a type of medication used to treat bacterial infections. They work by either killing the bacteria or preventing them from reproducing, allowing the body’s immune system to fight off the infection. Antibiotics are usually taken orally in the form of pills, capsules, or liquid solutions, or sometimes administered intravenously. They are not effective against viral infections, and using them inappropriately can lead to antibiotic resistance.

如果觉得输出信息过多,想要进一步提炼,可以用更明确的指令让模型用一句话总结。

提示词:

Antibiotics are a type of medication used to treat bacterial infections. They work by either killing the bacteria or preventing them from reproducing, allowing the body’s immune system to fight off the infection. Antibiotics are usually taken orally in the form of pills, capsules, or liquid solutions, or sometimes administered intravenously. They are not effective against viral infections, and using them inappropriately can lead to antibiotic resistance.

Explain the above in one sentence:

输出:

Antibiotics are medications used to treat bacterial infections by either killing the bacteria or stopping them from reproducing, but they are not effective against viruses and overuse can lead to antibiotic resistance.

信息提取任务

语言模型不仅擅长自然语言生成,在信息提取方面也表现出色。以下是从给定段落中提取信息的示例。

提示词:

Author-contribution statements and acknowledgements in research papers should state clearly and specifically whether, and to what extent, the authors used AI technologies such as ChatGPT in the preparation of their manuscript and analysis. They should also indicate which LLMs were used. This will alert editors and reviewers to scrutinize manuscripts more carefully for potential biases, inaccuracies and improper source crediting. Likewise, scientific journals should be transparent about their use of LLMs, for example when selecting submitted manuscripts.

Mention the large language model based product mentioned in the paragraph above:

输出:

The large language model based product mentioned in the paragraph above is ChatGPT.

问答任务

为了让模型给出更具体的回答,改善提示的格式很重要。结构化的提示能让模型更好地理解需求。

提示词:

Answer the question based on the context below. Keep the answer short and concise. Respond "Unsure about answer" if not sure about the answer.

Context: Teplizumab traces its roots to a New Jersey drug company called Ortho Pharmaceutical. There, scientists generated an early version of the antibody, dubbed OKT3. Originally sourced from mice, the molecule was able to bind to the surface of T cells and limit their cell-killing potential. In 1986, it was approved to help prevent organ rejection after kidney transplants, making it the first therapeutic antibody allowed for human use.

Question: What was OKT3 originally sourced from?

Answer:

输出:

Mice.

文本分类任务

在文本分类中,有时仅提供指令是不够的,添加示例能让模型更准确地理解输出格式要求。

提示词(未加示例):

Classify the text into neutral, negative or positive.

Text: I think the food was okay.
Sentiment:

输出:

Neutral

提示词(添加示例):

Classify the text into neutral, negative or positive.

Text: I think the vacation is okay.
Sentiment: neutral

Text: I think the food was okay.
Sentiment:

输出:

neutral

对话任务

通过角色提示,可以让模型以特定的身份和语气进行对话,这在构建聊天机器人等场景中很有用。

提示词(技术性语气):

The following is a conversation with an AI research assistant. The assistant tone is technical and scientific.

Human: Hello, who are you?
AI: Greeting! I am an AI research assistant. How can I help you today?
Human: Can you tell me about the creation of blackholes?
AI:

输出:

Sure! Black holes are regions of spacetime where the gravitational force is so strong that nothing, not even light, can escape from it. They are created when a very massive star dies and its core collapses in on itself, forming a singularity of infinite density. The intense gravity of the singularity pulls in all the matter and radiation around it, creating the black hole.

提示词(通俗易懂语气):

The following is a conversation with an AI research assistant. The assistant answers should be easy to understand even by primary school students.

Human: Hello, who are you?
AI: Greeting! I am an AI research assistant. How can I help you today?
Human: Can you tell me about the creation of black holes?
AI:

输出:

Sure! Black holes are created when a very massive star runs out of fuel and collapses in on itself. The gravity of the star is so strong that nothing, not even light, can escape its pull. This creates a point in space-time with an intense gravitational force called a black hole.

代码生成任务

大语言模型在代码生成方面能力突出,无需指定编程语言,仅通过提示就能生成相应代码。

提示词(简单欢迎程序):

/*
Ask the user for their name and say "Hello"
*/

输出:

let name = prompt("What is your name?");
console.log(`Hello, ${name}!`);

提示词(数据库查询):

"""
Table departments, columns = [DepartmentId, DepartmentName]
Table students, columns = [DepartmentId, StudentId, StudentName]
Create a MySQL query for all students in the Computer Science Department
"""

输出:

SELECT StudentId, StudentName
FROM students
WHERE DepartmentId IN (SELECT DepartmentId FROM departments WHERE DepartmentName = 'Computer Science');

推理任务

对于需要推理的任务,分步骤引导模型能提高结果的准确性。

提示词(未分步骤):

The odd numbers in this group add up to an even number: 15, 32, 5, 13, 82, 7, 1.

A:

输出:

No, the odd numbers in this group add up to an odd number: 119.

提示词(分步骤):

The odd numbers in this group add up to an even number: 15, 32, 5, 13, 82, 7, 1.

Solve by breaking the problem into steps. First, identify the odd numbers, add them, and indicate whether the result is odd or even.

输出:

Odd numbers: 15, 5, 13, 7, 1
Sum: 41
41 is an odd number.