Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The search query to use for reranking documents.
"What is machine learning?"
A list of documents to rerank. Each document is a string.
1
[
"Machine learning is a subset of AI.",
"The weather is sunny today."
]
The name of the reranker model to use.
"accounts/fireworks/models/qwen3-reranker-8b"
The number of most relevant documents to return. If not specified, all documents are returned.
x >= 1
Whether to return the document text in the response. Defaults to true.
Optional task description to guide the reranking process.
"Given a web search query, retrieve relevant passages that answer the query"
Response
OK
The object type, which is always "list".
list
The name of the model used for reranking.
The list of reranked documents, ordered by relevance score (highest first).
The usage information for the request.