Extract category and urgency from a support request.
A downstream system expects JSON.
Which prompt design is most appropriate?
Specify the schema, allowed values, examples, and output constraints, then validate the generated result.
Detailed explanation
An explicit schema makes downstream parsing more reliable.
An explicit schema makes downstream parsing more reliable.
The output shape may vary and parsing can fail.
The output shape may vary and parsing can fail.
User input and trusted instructions must be separated.
User input and trusted instructions must be separated.
The model can still omit fields or produce invalid syntax.
The model can still omit fields or produce invalid syntax.
Try it yourself
An example you can run in a temporary verification environment.
Amazon BedrockのPrompt Managementまたはモデル推論ガイドで、プロンプトと構造化出力の例を確認する。Expected result
指示、入力データ、出力スキーマ、検証を分けたプロンプト設計を説明できる。Key points
- Output schema
- Separating input from instructions
- Post-generation validation
Notes
- Environment: AWS公式AIF-C01試験ガイドとAWS公式ドキュメントの確認
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.