Create rerank
Rerank a list of documents based on their relevance to a query.
Request body
Example request
{
"retry": {
"count": 3,
"on_codes": [
429,
500,
502,
503,
504
]
},
"cache": {
"ttl": 3600
},
"load_balancer": {
"models": [
{
"model": "openai/gpt-4o",
"weight": 0.7
}
]
},
"timeout": {
"call_timeout": 30000
},
"orq": {
"fallbacks": [
{
"model": "openai/gpt-4o-mini"
}
],
"cache": {
"ttl": 3600
},
"retry": {
"count": 3,
"on_codes": [
429,
500,
502,
503,
504
]
},
"identity": {
"id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"display_name": "Jane Doe",
"email": "jane.doe@example.com",
"metadata": [
{
"department": "Engineering",
"role": "Senior Developer"
}
],
"logo_url": "https://example.com/avatars/jane-doe.jpg",
"tags": [
"hr",
"engineering"
]
},
"contact": {
"id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"display_name": "Jane Doe",
"email": "jane.doe@example.com",
"metadata": [
{
"department": "Engineering",
"role": "Senior Developer"
}
],
"logo_url": "https://example.com/avatars/jane-doe.jpg",
"tags": [
"hr",
"engineering"
]
},
"load_balancer": {
"type": "weight_based",
"models": [
{
"model": "openai/gpt-4o",
"weight": 0.7
},
{
"model": "anthropic/claude-3-5-sonnet",
"weight": 0.3
}
]
},
"timeout": {
"call_timeout": 30000
}
}
}Response
Returns the reranked documents.
Changes
Changed in 12 of the 271 revisions of this API.9912
- ▲
the
request property type changed fromnumbertointegerrequest-property-type-changed
- ●
the
request property's min was set to1.00request-property-min-set
- ○
added the new optional request property
new-optional-request-property
This revision also has 31 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the request property
request-property-removed
- ○
the
request property type was generalized fromintegertonumberrequest-property-type-generalized
This revision also has 173 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the
request property type changed fromnumbertointegerrequest-property-type-changed
- ●
the
request property's min was set to1.00request-property-min-set
- ○
added the new optional request property
new-optional-request-property
This revision also has 31 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the request property
request-property-removed
- ○
the
request property type was generalized fromintegertonumberrequest-property-type-generalized
This revision also has 175 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the
request property type changed fromnumbertointegerrequest-property-type-changed
- ●
the
request property's min was set to1.00request-property-min-set
- ○
added the new optional request property
new-optional-request-property
This revision also has 31 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the request property
request-property-removed
- ○
the
request property type was generalized fromintegertonumberrequest-property-type-generalized
This revision also has 173 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the
request property type changed fromnumbertointegerrequest-property-type-changed
- ●
the
request property's min was set to1.00request-property-min-set
- ○
added the new optional request property
new-optional-request-property
This revision also has 29 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the request property
request-property-removed
- ○
the
request property type was generalized fromintegertonumberrequest-property-type-generalized
This revision also has 42 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the
request property type changed fromnumbertointegerrequest-property-type-changed
- ●
the
request property's min was set to1.00request-property-min-set
- ○
added the new optional request property
new-optional-request-property
This revision also has 29 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the enum value
EMAILof the request property////request-property-enum-value-removed
- ▲
removed the enum value
EMAILof the request property////request-property-enum-value-removed
- ▲
removed the enum value
EMAILof the request property////request-property-enum-value-removed
- ▲
Of the 271 revisions, 82 have no diff computed.