講座 › 分野4 プロンプトエンジニアリングと構造化出力
4.4 検証・リトライ・フィードバック
配点 3.3%Validation and retry loops
検証に失敗したら、具体的なエラーを添えて再依頼する。ただし、元の文書に無い情報は、何度やっても出てこない。
未読
エラーを添えて、再依頼する 読了

検証に失敗したら、原文と、失敗した結果と、どこがどう違反したかの3点を添えて、再度依頼します。モデルは、何がどう違うかを見て、自分で直せます。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Retry-with-error-feedback: appending specific validation errors to the prompt on retry to guide the model toward correctionhttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Implementing follow-up requests that include the original document, the failed extraction, and specific validation errors for model self-correctionhttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Get structured output from agents
the SDK validates the output against it, re-prompting on mismatch.https://code.claude.com/docs/en/agent-sdk/structured-outputs.md(取得 2026-11-20)
リトライが効く場合、効かない場合 読了

書式の食い違いや、構造の誤りは、再依頼で直ります。必要な情報が元の文書にそもそも無い場合や、渡していない別の文書にしかない場合は、何度やっても直りません。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
The limits of retry: retries are ineffective when the required information is simply absent from the source document (vs format or structural errors)https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Identifying when retries will be ineffective (e.g., information exists only in an external document not provided) versus when they will succeed (format mismatches, structural output errors)https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
書式の誤りと、意味の誤り 読了

書式の誤りは、スキーマつきのツール使用でなくなります。値が合計と合わない、値が別の欄に入るといった意味の誤りは、別に検証して見つけます。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
The difference between semantic validation errors (values don't sum, wrong field placement) and schema syntax errors (eliminated by tool use)https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
自己点検の設計 読了

文書に書かれた合計と、明細から計算した合計の両方を抽出し、食い違いを見つけます。元の資料に矛盾があるときは、矛盾を示す印の欄で知らせます。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Designing self-correction validation flows: extracting "calculated_total" alongside "stated_total" to flag discrepancies, adding "conflict_detected" booleans for inconsistent source datahttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
指摘が却下された傾向を、データにする 読了

指摘に、どのコードの構造が原因かを示す欄を持たせると、開発者が却下した指摘の傾向を、あとから分析できます。誤検知の原因を、体系的に潰せます。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Feedback loop design: tracking which code constructs trigger findings (detected_pattern field) to enable systematic analysis of dismissal patternshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
試験のポイント
- 再依頼には、元の文書・失敗した結果・具体的なエラーを入れる。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Implementing follow-up requests that include the original document, the failed extraction, and specific validation errors for model self-correction
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20) - 情報が元の文書に無いなら、再依頼は無駄。書式の誤りには効く。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
The limits of retry: retries are ineffective when the required information is simply absent from the source document (vs format or structural errors)
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20) - 計算した合計と、書かれた合計の両方を抽出して、食い違いを見つける。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Designing self-correction validation flows: extracting "calculated_total" alongside "stated_total" to flag discrepancies, adding "conflict_detected" booleans for inconsistent source data
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)