/** * This file was auto-generated by Fern from our API Definition. */ export interface MmrReranker { type: "mmr"; /** The diversity bias. Higher values indicate more diversity. */ diversityBias?: number; /** * Specifies the maximum number of results to be returned after the reranking process. * When a reranker is applied, it performs the following steps: * 1. Reranks all input results according to its algorithm. * 2. Sorts the reranked results based on their new scores. * 3. Returns the top N results, where N is the value specified by this limit. * * Note: This limit is applied per reranking stage. In a chain of rerankers, * each reranker can have its own limit, potentially reducing the number of * results at each stage. */ limit?: number; /** * Specifies the minimum score threshold for results to be included after the reranking process. * When a reranker is applied with a cutoff, it performs the following steps: * 1. Reranks all input results according to its algorithm. * 2. Applies the cutoff, removing any results with scores below the specified threshold. * 3. Returns the remaining results, sorted by their new scores. * * Note: This cutoff is applied per reranking stage. In a chain of rerankers, * each reranker can have its own cutoff, potentially further reducing the number of * results at each stage. If both 'limit' and 'cutoff' are specified, the cutoff * is applied first, followed by the limit. */ cutoff?: number; }