Rank passages by their relation to a query.

Order a list of passages by their relation to a query.

Note that if a given query + passage pair is longer than the ranking model's context window,
it will be automatically truncated.

Body Params
string
required
Defaults to nvidia/llama-3.2-nemoretriever-500m-rerank-v2

The model to use for ranking.

query
object
required
passages
array of objects
required
length between 1 and 1000

The list of passages to rank.

Passages*
string
required
length between 1 and 14598366
string
enum
Defaults to END

How to truncate the input if it's too long for the model.

Allowed:
Responses

Language
Credentials
Bearer
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
country_code