AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Rerank

Jina Rerank

Rerank candidate documents with the Jina AI-style request structure.

The Jina Rerank API ranks candidate documents by relevance to a query and returns the original document, index, relevance score, and token usage. Requests and responses use the Jina AI-style field structure.

POST/v1/rerank

Calculate the relevance score of candidate documents based on the query text and return the ranking result according to relevance. AGTCloud returns sorting results using the Jina AI style, and some compatible interfaces will also convert to this structure.

queries and documents can be used in multiple languages. To obtain more stable ranking results, clear and specific queries should be used to keep the document content complete and avoid a single document exceeding the token limit of the selected model. It is recommended to process large numbers of documents in batches; Stable and repetitive queries can be cached on the application side

Authorization

bearerAuth
AuthorizationBearer <token>

Use Bearer your-api-key in the Authorization Header.

In: header

Request Body

application/json

Document reranking request parameters.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json