POST
Rerank documents

Authorizations

Authorization
string
header
required

Your Gwenlake API key, sent as Authorization: Bearer <key>.

Headers

x-user
string | null

Body

application/json
model
string
required
query
string
required
input
string[]
required

The documents to score against query.

top_n
integer

Return only the best top_n documents.

Response

200 - application/json

Successful response

model
string
results
object[]