Files
myWiki/concepts/prompt-simplification.md
2026-07-20 14:14:55 +08:00

57 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Prompt 做减法 (Prompt Simplification)"
created: 2026-07-13
updated: 2026-07-13
type: concept
tags: [prompt-engineering, optimization, agent]
sources:
- https://developers.openai.com/api/docs/guides/prompt-guidance-gpt-5p6
- openai-gpt5p6-prompt-guide-2026
---
# Prompt 做减法
## 定义
OpenAI GPT-5.6 官方指南的核心方法论:**模型越强Prompt 应该越精简。** 系统性地从 System Prompt 中删除不再影响模型行为的内容,而不是持续添加新规则。
## 效果数据
在 OpenAI 内部 Coding Agent 任务中:
- 评分提高 **10%-15%**
- Token 总量减少 **41%-66%**
- 成本降低 **33%-67%**
## 为什么需要做减法
旧模型时代的 System Prompt 往往经历了长期迭代积累:
- 模型漏掉一个步骤 → 加一条 MUST
- 工具调用出问题 → 补一条 NEVER
- 模型更新后旧规则继续保留
- 重复、过时、矛盾的指令累积
结果:新模型的上下文被大量无关内容占用,甚至互相冲突。
## 方法论
1. 从能正常工作的 Prompt + 工具集开始(基线)
2. 每次**只删除一组**:重复指令 / 无效示例 / 无关工具
3. 用**同一批评测**验证效果
4. 控制改动范围,判断具体是哪项修改影响了表现
## 保留 vs. 删除
| 保留 | 删除 |
|------|------|
| 任务目标 | 不再影响行为的重复规则 |
| 成功标准 | 针对旧模型的补丁 |
| 权限边界 | 过时的警告和示例 |
| 证据要求 | 消耗上下文但无行为影响的文本 |
| 交付前验证方式 | 已被模型内化的指令 |
## 参考
- [[openai-gpt5p6-prompt-guide-2026|GPT-5.6 Prompt 指南]]
- [[outcome-first-prompting|结果优先提示]]
- [[prompt-migration-workflow|Prompt 迁移工作流]]
- [[prompt-engineering|提示工程]]