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:
Parameter | Type | Possible values | Description |
---|---|---|---|
top_p | Float | Default: 1.0 | Float 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_field | String | Default: None | Name 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.