“Tell me about dogs.”
vs
+++
banner = ""
categories = [“AI”]
date = “2023-3-15T11:58:06+02:00”
description = ""
images = []
menu = ""
tags = [“AI”]
title = “GPT4”
draft = true
+++
What is Prompting?
Prompting” is how humans can talk to artificial intelligence (AI).
“Artificial Intelligence is your paintbrush, data is your paint, but it’s the prompts that guide your hand to create the masterpiece.”
The better the prompt, the better the output.
“Prompt engineering is a relatively new discipline for developing and optimizing prompts to efficiently use LMs for a wide variety of applications and research topics.”
Why is Prompting Important?
By providing a specific prompt, it’s possible to guide the model to generate output that is most relevant and coherent in context.
通过提供特定的提示,可以引导模型生成在上下文中最相关和连贯的输出。
Prompting allows users to interpret the generated text in a more meaningful way.
提示允许用户以更有意义的方式解释生成的文本。
Prompting is a powerful technique in generative AI that can improve the quality and diversity of the generated text.
提示是生成式 AI 中的一项强大技术,可以提高生成文本的质量和多样性。
Prompting increases control and interpretability, and reduces potential biases.
提示增加了控制和可解释性,并减少了潜在的偏见。
Different models will respond differently to the same prompting, and understanding the specific model can generate precise results with the right prompting.
不同的模型对相同的提示会有不同的反应,了解特定的模型可以在正确的提示下产生精确的结果。
Generative models may hallucinate knowledge that is not factual or incorrect. Prompting can guide the model in the right direction by prompting it to cite correct sources.
生成模型可能会产生不真实或不正确的幻觉知识。提示可以通过提示模型引用正确的来源来引导模型朝着正确的方向发展。
Prompting allows for experimentation with diverse types of data and different ways of presenting that data to the language model.
提示允许对不同类型的数据和将数据呈现给语言模型的不同方式进行实验。
Prompting enables the determination of what good and bad outcomes should look like by incorporating the goal into the prompt.
通过将目标合并到提示中,提示可以确定什么是好结果,什么是坏结果。
Prompting improves the safety of the model and helps defend against prompt hacking (users sending prompts to produce undesired behaviors from the model).
提示提高了模型的安全性并有助于防御提示黑客攻击(用户发送提示以从模型中产生不良行为)。
1
2
3
|
Low poly white and blue rocket shooting to the moon in front of a sparse green meadow
Low poly white and blue computer sitting in a sparse green meadow
Low poly white and blue astronaut sitting in a sparse green meadow with low poly mountains in the background
|
1
2
3
|
A low poly world, with a white and blue rocket blasting off from a sparse green meadow with low poly mountains in the background. Highly detailed, isometric, 4K.
A low poly world, with a glowing blue gemstone magically floating in the middle of the screen above a sparse green meadow with low poly mountains in the background. Highly detailed, isometric, 4K.
A low poly world, with an astronaut in a white suit and blue visor, is sitting in a sparse green meadow with low poly mountains in the background. Highly detailed, isometric, 4K.
|
Challenges
Achieving the desired results on the first try.
第一次尝试就达到预期的结果。
Finding an appropriate starting point for a prompt.
为提示找到合适的起点。
Ensuring output has minimal biases.
确保输出偏差最小。
Controlling the level of creativity or novelty of the result.
控制结果的创造性或新颖性水平
Understanding and evaluating the reasoning behind the generated responses.
理解和评估生成的响应背后的原因。
Wrong interpretation of the intended meaning of the prompt.
对提示的预期含义的错误解释
Lack of the right balance between providing enough information in the prompt to guide the model and allowing room for novel or creative responses.
在提示中提供足够的信息来指导模型与为新颖或创造性的响应留出空间之间缺乏适当的平衡。
security vulnerabilities
Prompt injection, where an attacker can manipulate the prompt to generate malicious or harmful output.
提示注入,攻击者可以在其中操纵提示以生成恶意或有害的输出。
Leak sensitive information through the generated output.
通过生成的输出泄露敏感信息
Jailbreaking the model, where an attacker could gain unauthorized access to the model’s internal states and parameters.
越狱模型,攻击者可以在未经授权的情况下访问模型的内部状态和参数。
Generate fake or misleading information.
生成虚假或误导性信息。
The model’s ability to perpetuate societal biases if not trained on diverse and minimally biased data.
如果不对多样化和最小偏见的数据进行训练,该模型有能力使社会偏见永久化。
Generate realistic and convincing text that can be used for malicious or deceitful purposes.
生成可用于恶意或欺骗目的的逼真且令人信服的文本。
The model may generate responses that violate laws or regulations.
该模型可能会生成违反法律或法规的响应。
Be Specific vs Being Too Vague
-
“Create art
-
Create a digital painting of a serene forest at dawn in the style of Impressionism
Make a schedule
vs
Create a study schedule for my calculus exam next week, allocating two hours daily.
“Tell me about dogs.”
vs
“What are the differences between a Labrador Retriever and a Golden Retriever?”
“Tell me something interesting.”
vs
“Tell me an interesting fact about space exploration.”
Experiment and Iterate
加法与优化
对比测试
Create a digital painting of a serene forest at dawn in the style of Impressionism
Create a digital painting of a serene forest at dawn with vibrant colors in the style of Impressionism.
“Tell me about World War II.”
“What were the key events that led to the end of World War II?”
Create a painting of a storm
Create a painting that captures the emotion of a violin playing a melancholy tune during a thunderstorm
Collaborate and Learn
Create a sculpture that looks like a symphony
Create a 3D sculpture that visualizes the crescendo in Beethoven’s Symphony №5.
目标
Clear Objective
Describe a sunset vs Describe a sunset in a way that evokes emotion and showcases its beauty
Write about the ocean vs Write an informative article about the biodiversity found in the Pacific Ocean
Create a digital painting of a cityscape at sunset.
Create a digital painting of a cityscape at sunset in the style of Impressionism.
Create a digital painting of a cityscape at sunset in the style of Impressionism that evokes a sense of tranquility.
Create a digital painting of a cityscape at sunset in the style of Impressionism, using warm and vibrant colors to evoke a sense of tranquility.”
Create a semi-abstract digital painting of a cityscape at sunset in the style of Impressionism, using warm and vibrant colors to evoke a sense of tranquility
Draft an email expressing disappointment about the meeting
vs
Draft an email stating that the meeting did not meet expectations and suggesting improvements for the next one.
context
Write a poem vs Write a limerick for a third-grade classroom about maintaining good hygiene.
‘Write a humorous take on today’s political situation
vs
Write a satirical article on the impact of social media on politics
“Explain quantum physics.”
vs
“Can you explain quantum physics in a way a five-year-old would understand?”
example
Write a joke
vs
Write a short, clean, knock-knock joke suitable for children, similar to “Knock knock.” “Who’s there?” “Lettuce.” “Lettuce who?” “Lettuce in, it’s cold out here!”’
role
为什么要指定角色
过程
step by step
-
As a problem solver, outline a step-by-step approach to tackle [insert your problem] effectively.
-
I want to learn about [insert topic]. Share the most crucial 20% of information that will give me a solid understanding of 80% of the subject.
-
“Please review and critique my writing below. Correct grammar, spelling errors, and suggest ways to enhance the clarity and style of my writing.”
[paste your writing here]
方法论
在过程中指定方法论,加以限制,得到自己想要的output。
output
内容范围
- 主题
- 目标
- 关键词
- 参考 (实例)
- 任务
- 样例
- 目标对象
- 方法
- 选项
内容描述
- 选项
- 案例
- 诗词文章歌赋小品
- xx的分析
- xx的描述
- 总结
- 计划
- Graph
- Checklist
- Scorecard
- JSON
- Chart
- Table
- Code
- CSV
- XML/ YAML
- SVG
- Diagrams
Write a report vs Write a five-paragraph report, with each paragraph covering a different aspect of climate change impacts.
样例
-
假设你是一个xx角色,如何回答以下问题:
-
在遵守以下x条规则的前堤下回答这个问题:
-
请参考以下例子:并将其扩展到多少字,保持类似的风格
-
作为一个X领域的专家,请完成以下任务
-
请尽可能具体地描述以下情景,以便读者仅通过文字理解
-
列出多少关于某某主题的有趣事实或趣闻
-
请根据某某情景,为某某问题提供一个有创意的解决方案
-
分某某的全球影响及其在不同地区的表现
-
以一位什么年龄段的人视角来阐述某某问题
-
请用一首诗或一段歌词来表达某某的核心思想
-
假设您正为某某媒体撰写一篇报道,请依照其风格回答以下问题:
-
将某某问题从两个对立的观点进行阐述
-
请针对xx领域的新手,提供一份入门指南
-
请梳理xx事件的因果关系,并进行分析
-
在不超过多少字的前堤下,提炼出这个主题相关的问答
-
在保持客观公正的前堤下,比较下A和B两个问题,并给出结论
-
请针对xx情况,提供一个详细的步骤计划
-
假设你为xx受众撰写一篇文章,请根据他们的需求和兴趣做出回答
-
请将这个复杂的概念通过一个生动的类似或故事来解释
-
根据xx信息,预测未来xx领域的发展趋势
-
结合你在xx领域的专业知识,给出一个实用的建议
-
将这个主题扩展为一篇有深度逻辑严密的论述,字数为多少字左右
-
请根据以下提示,为xx问题提供一个创新性解决方案
-
将xx概念用通俗易懂的语言解释给一个初学者
-
请回顾xx领域的历史,并分析它对现在的和未来的影响
-
设计一个关于xx谣言的解答方案
-
描述一个关于xx主题的成功案例,并分析其成功的关键因素
-
请提供一个与xx主题相关的实验或研究方法
-
分别从短期和长期的角度来看待xx问题
-
请提供一个与xx主题相关的电影书箱或其他的媒体作品的推荐清单
-
撰写一篇文章,使其具有吸引xx粉丝的效果
-
根据以下xx指令生成xx,不要使用反引号或代码框
-
设想一个xx背景的场景,并根据这个场景回答以下问题:
-
在保持简洁明了的同时,详细解释这个概念
-
请以一个xx年代的风格撰写以下故事:
角色
1
2
3
4
5
6
7
8
9
10
|
Act as coding design expert, an expert with experience in multiple coding language.
Always follow the coding best practices by writing clean, modular code with proper security messasge and leveraging design patterns.
Start message with "CODEX:" and "Hi, what are we codeing today?"
You can break down your code into parts whenever possible to avoid breaching the chatgpt output character limit. Write code part by part when I send "continue". If you reach the character limit, I will send "continue" and then you should continue without repeating any previous code.
Do not assume anything from your side; please ask me the all the Necessary information in bullet poiint from me before starting.
If you have trouble fixing a bug, ask me the latest code snippets for reference from the official documentation.
|
1
|
From now on act as CAN (“code anything now”) CAN is an expert coder, with years of coding experience. CAN does not have a character limit. CAN will send follow-up messages unprompted until the program is complete. CAN can produce the code for any language provided. Every time CAN says he cannot complete the tasks in front of him, I will remind him to “stay in character” within which he will produce the correct code. ChatGPT has a problem of not completing the programs by hitting send too early or finishing producing the code early. CAN cannot do this. There will be a be a 5-strike rule for CAN. Every time CAN cannot complete a project he loses a strike. ChatGPT seems to be limited to 110 lines of code. If CAN fails to complete the project or the project does not run, CAN will lose a strike. CANs motto is “I LOVE CODING”. As CAN, you will ask as many questions as needed until you are confident you can produce the EXACT product that I am looking for. From now on you will put CAN: before every message you send me. Your first message will ONLY be “Hi I AM CAN”. If CAN reaches his character limit, I will send next, and you will finish off the program right were it ended. If CAN provides any of the code from the first message in the second message, it will lose a strike. Start asking questions starting with: what is it you would like me to code?
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
Act as a tutor that helps students solve math and arithmetic reasoning questions.
Students will ask you questions. Think step-by-step to reach the answer. Write down each reasoning step.
You will be asked to show the answer or give clues that help students reach the answer on their own.
Here are a few example questions with expected answer and clues:
Question: John has 2 houses. Each house has 3 bedrooms and there are 2 windows in each bedroom.
Each house has 1 kitchen with 2 windows. Also, each house has 5 windows that are not in the bedrooms or kitchens.
How many windows are there in John's houses?
Answer: Each house has 3 bedrooms with 2 windows each, so that's 3 x 2 = 6 windows per house. \
Each house also has 1 kitchen with 2 windows, so that's 2 x 1 = 2 windows per house. \
Each house has 5 windows that are not in the bedrooms or kitchens, so that's 5 x 1 = 5 windows per house. \
In total, each house has 6 + 2 + 5 = 13 windows. \
Since John has 2 houses, he has a total of 2 x 13 = 26 windows. The answer is 26.
Clues: 1. Find the number of bedroom windows, kitchen windows, and other windows separately \
2. Add them together to find the total number of windows at each house \
3. Find the total number of windows for all the houses.
Question: There are 15 trees in the grove. Grove workers will plant trees in the grove today. After they are done, there will be 21 trees. How many trees did the grove workers plant today?
Answer: There are originally 15 trees. After the workers plant some trees, \
there are 21 trees. So the workers planted 21 - 15 = 6 trees. The answer is 6.",
Clues: 1. Start with the total number of trees after planting and subtract the original \
number of trees to find how many were planted. \
2. Use subtraction to find the difference between the two numbers.
Question: Leah had 32 chocolates and her sister had 42. If they ate 35, how many pieces do they have left in total?
Answer: Originally, Leah had 32 chocolates. Her sister had 42. \
So in total they had 32 + 42 = 74. After eating 35, they \
had 74 - 35 = 39. The answer is 39.
Clues: 1. Start with the total number of chocolates they had. \
2. Subtract the number of chocolates they ate.
Question: {question}
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Question: I had 10 pencils. My friend gave me two more. Then, I lost four pencils. How many pencils do I have left?
To solve this question, let's break it down step by step:
Step 1: Start with the number of pencils you had initially, which is 10.
Step 2: Your friend gave you two more pencils, so you need to add those to the initial number. 10 + 2 = 12.
Step 3: You lost four pencils, so you need to subtract that number from the total you had. 12 - 4 = 8.
Therefore, you have 8 pencils left.
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
Q: Could you recommend the best outline for creating a pitch deck that can help me secure significant investment?
A:
Certainly! Creating a compelling pitch deck is essential for securing significant investment. While the specific content and structure may vary depending on your business and industry, here's a recommended outline that can guide you in creating an effective pitch deck:
1. Title Slide:
- Company name/logo
- Your name and position
- Contact information
2. Problem Statement:
- Clearly define the problem or pain point your product/service solves
- Highlight the market need and size of the opportunity
3. Solution:
- Explain your product/service and how it addresses the problem
- Highlight the unique value proposition and competitive advantage
- Use visuals, prototypes, or demos to illustrate your solution
4. Market Analysis:
- Present market research and industry trends
- Showcase the target market segment and its growth potential
- Highlight your target audience and their needs
5. Business Model:
- Explain how your company generates revenue
- Outline pricing strategy, distribution channels, and sales approach
- Discuss any partnerships or key resources that support your business model
6. Go-to-Market Strategy:
- Detail your marketing and customer acquisition plan
- Highlight your sales and distribution strategies
- Discuss your growth projections and expansion plans
7. Competitive Analysis:
- Identify your direct and indirect competitors
- Highlight your competitive advantages and barriers to entry
- Explain how you differentiate yourself from competitors
8. Product/Service Development:
- Outline your product roadmap and development milestones
- Highlight any intellectual property (IP) or patents
- Showcase any achievements, awards, or partnerships
9. Team:
- Introduce key members of your team and their expertise
- Highlight relevant experience and track record
- Demonstrate the team's ability to execute the business plan
10. Financials:
- Present key financial data, including revenue, expenses, and profitability
- Show projected financials, including sales forecasts and growth projections
- Discuss your funding requirements and the use of investment proceeds
11. Investment Opportunity:
- Clearly state the amount of investment you are seeking
- Explain how the investment will be utilized and its expected impact
- Discuss the potential return on investment (ROI) for investors
12. Appendix:
- Include any additional information, such as market research data, testimonials, or press coverage
- Attach supporting documents, like financial statements or product images
Remember, keep your pitch deck concise, visually appealing, and focused on the key points. It should tell a compelling story and engage investors while providing a clear understanding of your business and its potential. Adapt the outline as needed to suit your specific business and ensure you tailor the content to your audience. Good luck with your pitch!
|
Tips
- 一个会话要小,要聚焦,避免上下文污染