POST /v2/rerank
Provider capabilities
The table below summarizes gateway support for this endpoint by provider.Legend:
- ✅ Supported by provider and TrueFoundry
- Provided by provider, but not by TrueFoundry
- Provider does not support this feature
For every gateway endpoint and provider, see Supported APIs.
Using AWS Bedrock reranker models? The IAM user or role attached to your Bedrock model account needs the
bedrock:Rerank permission in addition to bedrock:InvokeModel — reranking is served by a separate AWS endpoint (bedrock-agent-runtime), so invoke-only policies fail with AccessDeniedException. See AWS Bedrock — Required IAM Policy.- Use a traditional or vector-based search system to retrieve candidate documents.
- Use the Rerank API to reorder those candidates based on relevance.
- A query (user input or search question)
- A list of documents (initially retrieved search results)
- Returns a ranked list with relevance scores