Ask a generative model to draft product explanations.
Keep the audience and output format consistent.
Which is an appropriate prompt-engineering improvement?
Stating the goal, audience, constraints, and output format makes the expected result clearer.
Detailed explanation
Concrete requirements make the requested result easier for the model to follow.
Concrete requirements make the requested result easier for the model to follow.
Insufficient context makes the output difficult to control.
Insufficient context makes the output difficult to control.
Only necessary data should be supplied with proper protection.
Only necessary data should be supplied with proper protection.
Generated output can be wrong or unsafe and should be checked.
Generated output can be wrong or unsafe and should be checked.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01ガイドのDomain 2.1で、prompt engineeringの基本要素を確認する。Expected result
曖昧な依頼を、目的・制約・出力形式を含むプロンプトへ改善できる。Key points
- Goal
- Constraints
- Output format
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.