提示链Prompt Chaining
Prompt Chaining
把一件事拆成固定的几步,每步的输出喂给下一步。Split a job into fixed steps, feeding each output into the next.
Anthropic 的定义:把任务分解成一系列步骤,上一步的输出作为下一步的输入。
官方指出它以延迟换准确性:准确性比延迟重要时更适用。
Anthropic's definition: decompose a task into a sequence of steps, passing each output to the next.
Each step is testable on its own; the cost is a longer chain and more latency.
比「一句话让模型做完所有事」更可控。很多 Agent 其实就是提示链。More controllable than asking for everything at once. Many "agents" are really chains.
链式提示 · 步骤链
去 Agent 图谱:看有哪些装得上的客户端、运行时与工具Agent atlas: which clients, runtimes and tools you can install ↗
回到名词地图看第3段的其他 75 个词 →Back to the map: the other 75 terms in stage 3 →
- Anthropic《Building effective agents》Anthropic, Building effective agents ↗
别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.
任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →