/rerank
Rerank
Rank a list of documents according to their relevance to a query and your custom instructions about how to prioritize retrievals. We evaluated the model on instructions for recency, document type, source, and metadata, and it can generalize to other instructions as well.
The total request cannot exceed 400,000 tokens. The combined length of the query, instruction and any document with its metadata must not exceed 8,000 tokens. Email rerank-feedback@contextual.ai with any feedback or questions.
post/rerank
Request body
Response
Successful Response