Text strings or document objects. Objects need a text field unless you supply rankFields.
The model to use for reranking.
OptionalparametersAdditional model-specific parameters. Refer to the model guide for available model parameters.
The query to rerank documents against.
OptionalrankThe field(s) to consider for reranking. If not provided, the default is ["text"].
The number of fields supported is model-specific.
OptionalreturnInclude document contents in each result. Defaults to true.
OptionaltopThe number of results to return sorted by relevance. Defaults to the number of inputs.
Options for reranking documents against a query.
Example