Send chat history and retrieved documents to a model.
Control quality, cost, and the risk of exceeding the limit.
Choose two appropriate designs.
Summarize history and retrieve relevant documents, then define token limits and fallback behavior before the limit is exceeded.
Detailed explanation
Reducing input controls context size and cost.
Reducing input controls context size and cost.
The application can truncate, retry, summarize, or notify the user safely.
The application can truncate, retry, summarize, or notify the user safely.
This increases cost, leakage, and limit risk.
This increases cost, leakage, and limit risk.
The user needs a clear state and a safe alternative.
The user needs a clear state and a safe alternative.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01ガイドDomain 2.2とAmazon Bedrockモデル仕様のコンテキスト上限を確認する。Expected result
入力の最小化と上限超過時の動作を設計できる。Key points
- Input minimization
- Limits
- Fallback
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.