LostInTheMiddleRanker Parameters

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:

ParameterTypePossible valuesDescription
word_count_thresholdIntegerDefault: NoneThe 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_kIntegerDefault: NoneThe 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.