What is the purpose of the 'top-p' parameter in Amazon Bedrock?

Answer

To limit the cumulative probability of tokens considered for sampling

Explanation

Top-p (nucleus sampling) restricts token selection to the smallest set whose cumulative probability exceeds p, balancing diversity and coherence. It does not set token limits, learning rates, or stop sequences.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list