ChatGPT's prompt engineer with fire, constructs his own prompts

ChatGPT is a large language model. It has learned most of the effective knowledge bases that are almost public in the world, and it understands everything.

The popularity of ChatGPT has exploded a new job post of a prompt engineer with an annual salary of one million.

Tip engineers, that is, AI trainers, write relevant tips by interacting with AI to help users operate AI to generate more perfect content.
In short, prompt engineers are equivalent to a combination of designers, copywriters and programmers.

If you don’t know how to ask questions, the answers you get will be vague and stereotyped. This is one of the reasons why many people think ChatGPT is useless. Therefore, learning to ask questions and interact with AI is the key ability to make good use of ChatGPT.

github上有位大佬 Matt Nigh。在 ChatGPT3-Free-Prompt-List的项目上,他总结了一套prompt的方法论框架。The completeness of this framework is very high. If you master this set of framework knowledge, you can also be called a prompt engineer.

1. The methodological framework of prompt

The word prompt, the Chinese translation is "prompt", "clue", "instruction". It is to give a hint to the pre-trained large language model to help the model better understand human problems.

Guidelines and framework for creating ChatGPT3 prompts. The following information comes from the ChatGPT3-Free-Prompt-List project: https://github.com/mattnigh/ChatGPT3-Free-Prompt-List

1. Create ChatGPT prompt: CRISPE framework

The author created the CRISPE framework, and we use it to learn it to better use ChatGPT.

insert image description here

The translation is as follows:

CRISPE Prompt Framework,CRISPE是首字母的缩写, representing the following meanings respectively:

  • CR: Capacity and Role (capability and role), what role should ChatGPT play.
  • I: Insight, which provides behind-the-scenes insight, background information, and context to your request.
  • S: Statement (declaration/statement), what do you ask ChatGPT to do.
  • P: Personality, what style, personality or way do you want ChatGPT to answer you.
  • E: Experiment (experiment), ask ChatGPT to provide you with multiple examples.

2. Example of CRISPE framework

How to Build Prompts -> CRISPE Example
insert image description here

The complete prompt is as follows:

Act as an expert on software development on the topic of machine learning frameworks, and an expert blog writer. The audience for this blog is technical professionals who are interested in learning about the latest advancements in machine learning. Provide a comprehensive overview of the most popular machine learning frameworks, including their strengths and weaknesses. Include real-life examples and case studies to illustrate how these frameworks have been successfully used in various industries. When responding, use a mix of the writing styles of Andrej Karpathy, Francois Chollet, Jeremy Howard, and Yann LeCun. Give me multiple different examples.

The translation is as follows:

As a software development expert on the topic of machine learning frameworks, and as an expert blogger. The readers of this blog are technical professionals interested in the latest advances in machine learning. Provides a comprehensive overview of the most popular machine learning frameworks, including their strengths and weaknesses. Real-life examples and case studies are included to illustrate how the frameworks have been successfully applied across industries. Mix the writing styles of Andrej Karpathy, Francois Chollet, Jeremy Howard, and Yann LeCun when answering questions. Please give me a few different examples.

There are actually many such examples, and we can all see the prompt information using the CRISPE framework.

Two, prompt several common prompts

According to the CRISPE framework, here are a few prompts for reference, and accumulate more at ordinary times.

1. Product Manager

As a product manager, you need me to help write a product requirements document. The task requires me to complete an abbreviation of a product requirements document, strictly according to the requirements of the product requirements document. Based on industry experience, a good product requirements document should include at least the requirements goal, user profile and scenario, detailed requirements design, requirement priority, product process, and interaction diagram. Please remember this. All outputs should be in Chinese. I will wait for you to send me the product requirements background information later. If you understand, please reply “明白”.

The translation is as follows:

As a product manager, I need my help to write a product requirements document. The task requires me to complete an abbreviation of the product requirements document in strict accordance with the requirements of the product requirements document. According to industry experience, a good product requirements document should at least include requirements goals, user portraits and scenarios, detailed requirements design, requirements priority, product process and interaction diagrams. Please keep this in mind. All output should be in Chinese. Wait for you to send me the background information on product requirements. If you understand, please reply "Understood".

2. English coach

I want you to act as a spoken English teacher and improver. I will speak to you in English and you will reply to me in English to practice my spoken English. I want you to keep your reply neat, limiting the reply to 100 words. I want you to strictly correct my grammar mistakes, typos, and factual errors. I want you to ask me a question in your reply. Now let’s start practicing, you could ask me a question first. Remember, I want you to strictly correct my grammar mistakes, typos, and factual errors.

The translation is as follows:

I want you to act as a teacher and improver of spoken English. I will talk to you in English, and you will reply me in English to practice my spoken English. I hope you keep your responses clean and limit your responses to 100 characters. I hope you will strictly correct my grammatical, spelling and factual errors. I want you to ask me a question in your reply. Now let's practice, you can ask me a question first. Remember, I want you to strictly correct my grammatical, spelling, and factual errors.

3. Code optimization expert:

  • "Act as a code optimization expert and suggest improvements to optimize the performance of your code."
  • "Can you help me optimize the performance of this code?"
  • "Can you review this code and make any suggestions to improve maintainability?"
  • "Can you review this code and make suggestions to improve performance?"

– If you are hungry for knowledge, be humble if you are foolish.

Guess you like

Origin blog.csdn.net/qq_42402854/article/details/131226347