The return options for text reranking.

interface RerankReturnOptions {
    inputs?: boolean;
    query?: boolean;
    top_n?: number;
}

Properties

Properties

inputs?: boolean

If true then the inputs will be returned in the response.

query?: boolean

If true then the queries will be returned in the response.

top_n?: number

Just show the top n results if set.