演習 › 全問
問題 Q4-04
83 / 120分野4・few-shotプロンプト
まだ解いていません。
問い合わせの分類を依頼しているが、詳しい指示を書いても、出力の書式が呼び出しのたびに微妙に違う。最も効果的な改善はどれか。
正解は C
- A指示を長くしても、ぶれは残ることが多いです。
- B書式を無視させると、ぶれが悪化します。
- C正解です。指示だけでは出力がぶれるときは、例が最も効果的です。書式、粒度、判断の傾向がそろいます。
- D替えても、書式の期待は伝わりません。
考え方:指示だけでぶれるなら、望む出力の例を少数添える。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Few-shot examples as the most effective technique for achieving consistently formatted, actionable output when detailed instructions alone produce inconsistent resultshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Prompting best practices
Examples are one of the most reliable ways to steer Claude’s output format, tone, and structure.https://platform.claude.com/docs/en/build-with-claude/prompt-engineeri…(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Including few-shot examples that demonstrate specific desired output format (location, issue, severity, suggested fix) to achieve consistencyhttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)