JinaRanker Parameters

Learn what parameters you can set for JinaRanker

YAML Init Parameters

These are the parameters you can pass to this component in the pipeline YAML configuration:

ParameterTypePossible valuesDescription
modelStringDefault: jina-reranker-v1-base-enThe name of the Jina model to use. Check the list of available models on Jina's website.
Required.
api_keySecretDefault: Secret = Secret.from_env_var("JINA_API_KEY")The Jina API key. It can be explicitly provided or automatically read from the environment variable JINA_API_KEY (recommended). Required.
top_kIntegerDefault: NoneThe maximum number of documents to return per query. If None, all documents are returned.
Optional.
score_thresholdFloatDefault: NoneIf provided, only returns documents with a score above this threshold.
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.