Rerank query results according to their relevance to a query. This endpoint uses Pinecone Inference.
Rerank documents for the given query
The query to rerank documents against.
"What is the capital of France?"
The documents to rerank.
The number of results to return sorted by relevance. Defaults to the number of inputs.
5
Whether to return the documents in the response.
true
The field(s) to consider for reranking. If not provided, the default is ["text"].
The number of fields supported is model-specific.
Additional model-specific parameters for the reranker.