First, request sentiment labels without examples.
Next, provide a few input-and-label examples in the prompt.
What is the second method called?
Providing a small number of examples in the prompt is few-shot prompting; instructions without examples are zero-shot.
Detailed explanation
A few input/output examples show the desired format or decision pattern.
A few input/output examples show the desired format or decision pattern.
Zero-shot prompting provides instructions without task examples.
Zero-shot prompting provides instructions without task examples.
Pre-training is broad model training, not placing examples in a prompt.
Pre-training is broad model training, not placing examples in a prompt.
Encryption protects data and is unrelated to example-based prompting.
Encryption protects data and is unrelated to example-based prompting.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01ガイドのDomain 3.1でプロンプトによるモデル適応の用語を確認する。Expected result
例の有無でゼロショットと少数ショットを区別できる。Key points
- No examples
- A few examples
- Prompt adaptation
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.