TopPSampler Parameters

Define the top-p parameter for TopPSampler.

YAML Init Parameters

These are the parameters you can pass to this component in the pipeline YAML configuration:

ParameterTypePossible valuesDescription
top_pFloatDefault: 1.0Float between 0 and 1 representing the cumulative probability threshold for document selection. A value of 1.0 indicates no filtering (all documents are retained). This parameter is optional.
score_fieldStringDefault: NoneName of the field in each document's metadata that contains the score. If None, the default document score field is used. This parameter is optional.

REST API Runtime Parameters

There are no runtime parameters you can pass to this component when making a request to the Search REST API endpoint.