Learn how to customize TransformersSimiliartyRanker.
YAML Init Parameters
These are the parameters you can pass to this component in the pipeline YAML configuration:
Parameter | Type | Possible values | Description |
---|---|---|---|
| Unionk:parameters] | Default: | A Hugging Face transformers question answering model. Can either be a path to a folder containing the model files or an identifier of a model from Hugging Face. |
| ComponentDevice | Default: | The device on which the model is loaded. If |
| Secret | Default: | The API token used to download private models from Hugging Face. |
| Integer | Default: | Number of answers to return per query. It is required even if |
| Float | Default: | Returns only answers with a probability score above this threshold. ExtractiveReader assigns a probability score to answers. This score ranges from 0 to 1. It indicates how well the answers match the query. A probability score close to 1 means the model has high confidence in the answer's relevance. Answers with the highest probability are listed first. |
| Integer | Default: | Maximum number of tokens of one input text for the model. If a sequence exceeds it, it's is split. |
| Integer | Default: | Number of tokens that overlap when a sequence is split because it exceeds |
| Integer | Default: | Maximum number of samples that are fed through the model at the same time. |
| Integer | Default: | Number of answer candidates to consider per sequence. This is relevant when a document was split into multiple sequences because of |
| Boolean |
| Whether to return an additional |
| Float | Default: | A factor used for calibrating probabilities. |
| Float | Default: | If set, removes duplicate answers if they have an overlap larger than the supplied threshold. If |
| Dictionary of string and any | Default: | Additional keyword arguments passed to |
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.