v34

latestOpenAPI 3.1.0Apache-2.0raw.githubusercontent.com2026-08-0332109227.7 KB
inference

Cohere v2-compatible text-only subset over SIE's native score primitive. Supported request fields are model, query, string documents, top_n, and the documented SIE options extension. max_tokens_per_doc and priority must be omitted or null; unknown or unsupported fields reject with 400. The adapter rejects partial native results and forwards only authoritative worker-emitted usage.

post/v2/rerank

Headers

X-SIE-MACHINE-PROFILEstring nullable

Preferred GPU or machine profile

X-SIE-Poolstring nullable

Explicit pool routing override

X-SIE-SDK-Versionstring nullable

Client SDK version for skew warnings

Request body

documentsstring[] required

One to 1,000 nonblank text candidates. Execution is internally batched within the selected model profile's max_batch_tokens limit.

{"stackTrail":"components:schemas:RerankV2Request:properties:max_tokens_per_doc","oasType":"schema","type":"unknown","description":"`max_tokens_per_doc` is not supported by this SIE compatibility subset; omit it or send null."}
modelstring required

SIE model id. Blank or whitespace-only values are rejected.

{"stackTrail":"components:schemas:RerankV2Request:properties:priority","oasType":"schema","type":"unknown","description":"`priority` is not supported by this SIE compatibility subset; omit it or send null."}
querystring required

Text query. Blank or whitespace-only values are rejected.

top_ninteger nullable

Response

Cohere v2-compatible subset response

modelstring required