AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Rerank

Xinference Rerank

Call Xinference rerank models with a Jina AI-compatible format.

Xinference Rerank uses a Jina AI-compatible format to rank candidate documents by relevance. Select an available Xinference rerank model; AGTCloud converts the response to the Jina AI-style structure.

Provider settings in Dify and similar clients

In clients that ask you to select a rerank provider type, choose Jina AI and enter an available Xinference rerank model ID.

POST/v1/rerank

Call a Xinference reranking model with the Jina AI-compatible format. AGTCloud normalizes the response to the Jina AI structure, so the request method, fields, and response shape match Jina Rerank.

Use a Xinference Rerank model visible to the current API key. Keep the query clear and specific, keep candidate documents semantically complete and within the model's token limit, process large collections in batches, and use top_n to limit the returned results.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

Xinference document reranking request parameters.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json