Перейти до основного вмісту
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
обов'язково