Rerank a list of documents based on their relevance to a query.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
input
The search query
A list of texts that will be compared to the query. For optimal performance we recommend against sending more than 1,000 documents in a single request.
The identifier of the model to use
The number of most relevant documents or indices to return, defaults to the length of the documents
The filename of the document to rerank
The name to display on the trace. If not specified, the default system name will be used.
Array of fallback models to use if primary model fails
Retry configuration for the request
Cache configuration for the request.
Load balancer configuration for the request.
Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.