Rerank¶
This section lists the implemented endpoints under this capability.
Rerank documents¶
POST /v1/rerank
Rerank documents by relevance to the supplied query.
Authentication¶
- Bearer Token (
Authorization: Bearer <token>)
Request Body¶
- Content-Type:
application/json - Schema:
RerankRequest
| Field | Type | Required | Description |
|---|---|---|---|
| model | string | yes | - |
| query | string | yes | Query text |
| documents | array | yes | Documents to rerank |
| top_n | integer | no | Return the top N results |
| return_documents | boolean | no | - |
Responses¶
| Status | Description | Schema |
|---|---|---|
| 200 | Rerank completed successfully | RerankResponse |