import type { SearchResult } from "./hybrid.js"; /** * Maximal Marginal Relevance re-ranking. Given a set of scored search results, * greedily selects items that maximize: * * lambda * relevance - (1 - lambda) * max_similarity_to_already_selected * * This preserves relevance while penalizing redundancy -- especially useful * when multiple hub cards or similar flow cards appear in the results. */ export declare function mmrRerank(results: SearchResult[], topK: number): SearchResult[]; //# sourceMappingURL=mmr.d.ts.map