Rerank
Rerank sorts text inputs by semantic relevance to a specified query.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
model
The model to use for reranking.
query
The query to rank against.
documents
Array of documents to rank.
return_documents
Boolean setting whether to return documents in output.
Response
Successful response.
id
Unique ID for the rerank response.
object
Type of object (list).
created
Timestamp of when the rerank response was created.
model
The rerank model used.
results
The set of rankings.