Maximal Marginal Relevance (MMR) Reranker

•

Balances query relevance with intra-result redundancy for diversity-aware vector reranking using Maximal Marginal Relevance (MMR).

Leveraging the power of Maximal Marginal Relevance (MMR), this GenPark AI Agent Skill provides a sophisticated diversity-aware vector reranker. It intelligently sifts through raw retrieval candidates, balancing their relevance to the original query against potential redundancy among already selected results. By optimizing for an MMR score, it effectively eliminates duplicate passages and delivers a refined set of diverse, high-quality top-K results, crucial for applications like Retrieval-Augmented Generation (RAG) where unique and relevant information is paramount.

주요 기능

01Redundancy Suppression: Penalizes passages too similar to already selected results.
02Zero External Dependencies: Pure Python 3.9+ standard library.
038 GitHub stars
04Tunable Lambda: Adjust balance between pure relevance and maximum diversity.

사용 사례

01Enhancing result diversity in vector search applications.
02Eliminating redundant information from search or recommendation outputs.
03Improving the quality of retrieved passages for Retrieval-Augmented Generation (RAG) systems.