Rerank
Changed onRank a list of documents according to their relevance to a query primarily and your custom instructions secondarily. We evaluated the model on instructions for recency, document type, source, and metadata, and it can generalize to other instructions as well. The reranker supports multilinguality.
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.
See our blog post and code examples. Email rerank-feedback@contextual.ai with any feedback or questions.
Request
- Base URLhttps://api.contextual.ai/v1
- URLhttps://api.contextual.ai/v1/rerank
- AuthHTTP bearer
Request body
Response
Successful Response
Changes
- breaking
the
request property's minItems was increased to1 - info
added the new optional request property
- info
added the new optional request property
- info
the
request property's minLength was decreased from1to0
- breaking
- info
endpoint added
- info