RerankRequest schema

FieldType and description
model
Required
string

Reranker model identifier.

query
Required
string

The semantic search query.

documents
Required
array of string

A list of text documents to rerank.

Array itemsstring
top_ninteger

The number of top documents to return. Defaults to the length of the documents array.

return_documentsboolean

Whether to include the original document text in the response.

default: false