跳转到主要内容
POST
Rerank documents

授权

Authorization
string
header
必填

A key from conare.ai/dashboard/keys with full access, some namespaces, or models only (/embed, /rerank, /v1, /v2/rerank, /parse).

请求体

application/json
query
string
必填

The query to score the documents against.

Required string length: 1 - 8192
documents
string[]
必填

Up to 100 texts (1,000 on a custom reranker), each up to 24,000 characters.

Required array length: 1 - 1000 elements
top_k
integer

Return only the best top_k; default all.

必填范围: x >= 1

响应

Scores, best first. index points into the request's documents.

results
object[]
必填
unscored
integer[]
必填

Indexes of documents that were not scored. Usually empty.

model
string
必填