Prompting fundamentals

提示工程是为 ChatGPT 设计并反复打磨输入的过程,目的是让它给出尽可能好的回答。核心在于想清楚如何提问,才能得到你想要的结果——不论是清晰的摘要、详尽的报告,还是深入的分析。总的来说, ChatGPT 在接收明确指令时表现最佳。

没有一种“完美”的提示写法。把它当作和同事对话:有时需要调整措辞或语气,帮助对方理解你的需求。通过试验和反复修改,你会发现怎样使用 AI 对你最有用。

写好提示的简单步骤

1. 明确任务

向 ChatGPT 说明你需要它做什么:要做什么、面向谁、为什么重要。提示:用动词开头,如“规划”“起草”“调研”。

帮我为 Prague 在 September 2026 安排一份旅游行程。
总结上季度销售业绩并提出下季度的市场策略。

1. 提供有用的背景信息

附上能帮助理解的背景或资料,包括文件、图片等外部来源。详见 OpenAI Academy 的文件与应用使用指南。

我将和两岁小孩同行,孩子喜欢火车,我们想尽量使用公共交通。
请使用我们附上的 Q2 销售报告数据。

1. 描述你理想的输出

告诉 ChatGPT 你希望的回答形式:语气、格式、长度、受众和任何限制,确保产出符合需求。

给出一张包含7天活动的表格,并留出各活动间的交通时间。
以正式的执行摘要撰写。

自行尝试

在 ChatGPT 上(新窗口)试试下面三个提示,观察模型的反应,然后通过增加背景或指引进行调整,再试一次。

Okay
Better
Best

举例提示:解释 machine learning 。

解释如何工作的基本概念。
使用一个日常类比来说明(例如做饭、运动或学乐器)。
要求与约束: 语言不超过120字 避免技术术语 让从未学过计算机科学的人也能理解

另一个例子:用简单类比解释 machine learning 。

要求:

用关于学一项技能(如烹饪、运动或演奏)的类比
不超过100字
避免技术术语
用三段短文写:第一段类比,第二段说明类比如何对应到 machine learning ,第三段一句话总结核心观点

更多撰写提示

将大任务拆成小步骤:如果请求包含多个部分,试着分开,这样更容易得到清晰、有针对性的回答。
具体但简洁:更多细节通常能提升回答质量,但不要把无关信息堆得过多,否则反而不利。
要求多个选项:如果想要选择,直接说明。例如:“请给出两种不同的报告呈现方式。”
设定优先级:告诉 ChatGPT 什么对你最重要——准确性、创造性、速度或其他。

继续在 OpenAI Academy 学习

想掌握更多实用的 AI 技能和指南,请访问 OpenAI Academy 查看全部主题。

----------------------

Prompt engineering is the process of designing and refining your input in a way that helps ChatGPT give the best possible answer. It’s about figuring out how to ask so you get the result you want—whether that’s a clear summary, comprehensive report, or detailed analysis. ChatGPT works best when you give it clear instructions.

There’s no single “perfect” way to write a prompt. Think of it as a conversation with a colleague, where you might need to adjust your phrasing or tone to help them understand what you need. Experimentation and iteration are the best ways to discover how AI can be most useful to you.

Simple steps for writing a good prompt

1. Outline the task 

Be clear about what you need ChatGPT to do. Outline what you want, who it’s for, and why it matters. Tip: Use an action verb, like “plan” or “draft” or “research.” 

Help me plan a trip itinerary for Prague in September 2026.
Summarize last quarter’s sales results and suggest marketing strategies for next quarter.

2. Give helpful context

Add any background or documentation that will help, including external sources like files, images, or documents. Learn more about working with files or apps.

I’m traveling with my 2-year-old, who loves trains, and we want to use public transportation as much as possible.
Use data from our attached Q2 sales report.

3. Describe your ideal output

Tell ChatGPT how you want the response. Include details like tone, format, length, audience, and any constraints so the output matches your needs.

Create a table with activities for 7 days, ensuring time for transportation between each activity.
Write it as a formal executive summary.

Try it on your own

Open ChatGPT⁠ and try out the three prompts below. Notice how the model responds, then try again by tweaking your prompt to add more context or guidance.

More helpful tips for writing prompts

● Break big tasks into smaller steps: If your request has multiple parts, try splitting it up. This makes it easier for ChatGPT to give clear, focused answers.
● Be specific, but keep it simple: More detail can improve the response, but focus on what matters most. Too much extra information can sometimes make the answer less helpful.
● Ask for options: If you want choices, say so. Example: “Suggest two different ways to present this report.”
● Set priorities: Let ChatGPT know what matters most to you—accuracy, creativity, speed, or something else.

Continue learning with OpenAI Academy
Discover additional guides and resources to help you build practical AI skills.
View all topics

via OpenAI News
 
 
Back to Top
Copyright © 2025 BESTAI. All rights reserved.
BEST AI API中转 - OpenAI DeepSeek Claude Gemini Grok MidJourney API 2.8折起
[email protected]