Document Rerank
POST /v1/rerank
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Required | - |
query | string | Required | Query text |
documents | array<string | object> | Required | List of documents to rerank |
top_n | integer | Optional | Return top N results |
return_documents | boolean | Optional | - |
Request Example
{
"body": {
"model": "rerank-english-v2.0",
"query": "string",
"documents": [
"string"
]
}
}
Response Fields(200)
| Field Name | Type | Description |
|---|---|---|
model | string | - |
query | string | p p-0 Query text |
documents | array<string | object> | p p-0 List of documents to rerank |
top_n | integer | p p-0 Return top N results |
return_documents | boolean | - |