Learn what parameters you can set for LostInTheMiddleRanker.
YAML Init Parameters
These are the parameters you can pass to this component in the pipeline YAML configuration:
Parameter | Type | Possible values | Description |
---|---|---|---|
word_count_threshold | Integer | Default: None | The maximum total number of words across all documents selected by the ranker. If you set this parameter, the ranker includes all documents up until the point where adding another document exceeds the word_count_threshold . The last document that causes the threshold to be breached is included in the resulting list but all subsequent documents are discarded.Optional. |
top_k | Integer | Default: None | The maximum number of documents to return. 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.