演習 › 全問
問題 Q1-23
27 / 120分野1・複雑な作業の分解戦略
まだ解いていません。
毎晩、契約書を処理するパイプラインを作る。手順は常に「条項を抽出→金額を検算→要約を作成」で、順番が変わることはない。段階の間で、検算の結果を機械的に確かめたい。最も適した分解はどれか。
正解は C
- A手順が決まっているのに、毎回考えさせるのは、遅く、ぶれやすく、費用も増えます。
- B段階の間に検査を入れられず、ぶれも増えます。
- C正解です。手順が読めるなら、固定の連鎖が向きます。段階の間に検査も挟めます。
- D独立した観点が必要な作業ではなく、費用が増えるだけです。
考え方:手順が決まっていて、検査も入れたいなら、プロンプトの連鎖。
出典:Building effective agents
Prompt chaining decomposes a task into a sequence of steps, where each LLM call processes the output of the previous one.https://www.anthropic.com/research/building-effective-agents(取得 2026-11-20)
出典:Building effective agents
You can add programmatic checks (see "gate” in the diagram below) on any intermediate steps to ensure that the process is still on track.https://www.anthropic.com/research/building-effective-agents(取得 2026-11-20)
出典:Building effective agents
This workflow is ideal for situations where the task can be easily and cleanly decomposed into fixed subtasks.https://www.anthropic.com/research/building-effective-agents(取得 2026-11-20)