/** * This file was auto-generated by Fern from our API Definition. */ /** * Reranker that is specific to the customer. */ export interface CustomerSpecificReranker { type: "customer_reranker"; /** * The ID of the reranker. The multilingual reranker that may be specified is rnk_272725719. * Do not specify the MMR reranker ID here, and instead, use the MMR reranker object type. * **Deprecated**: Use `reranker_name` instead. */ rerankerId?: string; /** The name of the reranker. Do not specify the MMR reranker name here. Instead, use the MMR reranker object type. */ rerankerName?: string; /** * 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; }