提示工程
塑造模型的指令和上下文,以获得你真正想要的输出。
概览
提示工程是一种通过组织指令、示例和上下文,使模型在不改变其权重的情况下产生所需输出的实践。它解决了这样一个问题:一个能力很强的模型仍可能仅仅因为请求含糊而无法完成任务,而反复修改措辞远比微调成本低。它之所以作为一门学科存在,是因为模型行为对表述方式很敏感,也因为诸如给出示例或要求逐步推理之类的技巧能够可靠地改变结果。
技术图谱
提示工程 如何与技术栈的其他部分相连。
使用与依赖
- Jailbreak technique Safety & Alignment Jailbreak based on 提示工程 High ✓ source
被用于
- Red Teaming technique Safety & Alignment 提示工程 used by Red Teaming High ✓ source
应用于
- Chain of Thought technique Prompting Chain of Thought used for 提示工程 High ✓ source
- DSPy framework Frameworks DSPy used for 提示工程 High ✓ source
- Few-Shot Learning technique Prompting Few-Shot Learning used for 提示工程 High ✓ source
- In-Context Learning concept Prompting In-Context Learning used for 提示工程 High ✓ source
- LLM concept Models 提示工程 used for LLM High ✓ source
- Self-Consistency technique Prompting Self-Consistency used for 提示工程 High ✓ source
- Tree of Thoughts technique Prompting Tree of Thoughts used for 提示工程 High ✓ source
- Zero-Shot concept Prompting Zero-Shot used for 提示工程 High ✓ source
Classification
- Context Engineering technique Prompting 提示工程 part of Context Engineering High ✓ source