Prompt Engineering 工程化
Prompt 不是随便写句话就行。工程化的 Prompt 管理——模板化、版本控制、A/B 测试。 一、Prompt 的基本概念 1.1 System Prompt——设定角色和行为 1.2 User Prompt——用户的输入 1.3 Assistant Message——历史对话 1.4 对话的组织结构 二、Prompt 设计策略 2.1 Few-shot——给几个例子让 AI 模仿 2.2 Chain of Thought(CoT)——“让我们一步一步思考” 2.3 ReAct——推理 + 行动 2.4 结构化输出——要求返回 JSON 三、Prompt 模板化 ...