演習 › 全問
問題 Q2-05
27 / 120分野2・システムプロンプトの診断と改訂
まだ解いていません。
社内のレポート作成ツールでは、システムプロンプトに、3万字の資料、指示、変数の入力が、区切りなく連なっている。ときどき、指示の一部が無視される。最も適切な改訂はどれか。
正解は D
- A繰り返しは、トークンを増やすだけで、構造の問題を直しません。
- B情報を失い、品質が下がる可能性があります。構造の問題の解決になりません。
- C言語の問題ではなく、構造の問題です。翻訳しても、混ざった状態は残ります。
- D正解です。タグで区切ると、解釈の曖昧さが減ります。長い資料を先頭近くに置き、質問や指示を後に置く配置が推奨されています。
考え方:混ざった入力は、タグで区切り、長い資料は先頭近くに置く。
出典:Prompting best practices
XML tags help Claude parse complex prompts unambiguously, especially when your prompt mixes instructions, context, examples, and variable inputs.https://platform.claude.com/docs/en/build-with-claude/prompt-engineeri…(取得 2026-11-23)
出典:Prompting best practices
Place your long documents and inputs near the top of your prompt, above your query, instructions, and examples.https://platform.claude.com/docs/en/build-with-claude/prompt-engineeri…(取得 2026-11-23)