Learn what parameters you can set for MetaFieldRanker.
YAML Init Parameters
These are the parameters you can pass to this component in the pipeline YAML configuration:
Parameter | Type | Possible values | Description |
---|---|---|---|
| String | The name of the meta field to rank by. | |
| Float | Default: | Determines how to rank documents. It's a value in the range "h-1, where:
|
| Integer | Default: | The maximum number of documents to return per query. If not provided, the ranker returns all documents it receives in the new ranking order. |
| Literal |
| The mode used to combine the retriever's and ranker's scores. Use the |
| Literal |
| Whether to sort the meta field by ascending or descending order. |
| Optional |
| Parse the meta value into the data type specified before sorting. This will only work if all meta values stored under |
| Required |
| Specifies what to do with documents that are missing the sorting metadata field. Possible values:
|
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.