跳到主要内容Skip to main content

提示链Prompt Chaining

Prompt Chaining

  • 智能体Agents
  • 第三站 · 用深Station 3 · Going Deeper
解决什么问题What problem it solves

把一件事拆成固定的几步,每步的输出喂给下一步。Split a job into fixed steps, feeding each output into the next.

这是什么What it is

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.

为什么需要知道Why it matters

比「一句话让模型做完所有事」更可控。很多 Agent 其实就是提示链。More controllable than asking for everything at once. Many "agents" are really chains.

别名Chinese aliases

链式提示 · 步骤链

出处Sources
  • Anthropic《Building effective agents》Anthropic, Building effective agents ↗