الانتقال إلى المحتوى الرئيسي
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
مطلوب