Rerank documents based on relevance to a query.
This endpoint allows you to rerank a list of documents based on their relevance to a given query using state-of-the-art reranking models.
The documents will be returned in order of relevance, with the most relevant documents first. Each result includes the original document index and a relevance score.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for reranking.
The search query to rank documents against
List of documents to rerank
1 - 1000 elementsThe reranking model to use
Number of top documents to return. Defaults to all documents.
x >= 1Whether to return document content in the response
Maximum number of chunks per document
x >= 1Successful Response