Rerank results
Rerank query results according to their relevance to a query. This endpoint uses Pinecone Inference.
For guidance and examples, see Rerank documents.
Authorizations
Body
The query to rerank documents against.
"What is the capital of France?"
The documents to rerank.
Document for reranking
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.
Response
The result of a reranking request.
The model used to rerank documents.
"bge-reranker-v2-m3"
The reranked documents.
A ranked document with a relevance score and an index position.
Usage statistics for the model inference.
Was this page helpful?