Maximal Marginal Relevance (MMR) for Diversity is an advanced Retrieval-Augmented Generation (RAG) technique used to enhance the diversity and relevance of retrieved documents or passages. By balancing similarity to the user query and dissimilarity among selected results, MMR reduces redundancy and ensures a broader coverage of information. This approach improves the quality of generated responses by incorporating diverse perspectives and minimizing repetitive or overlapping content in retrieval-augmented systems.
Maximal Marginal Relevance (MMR) for Diversity is an advanced Retrieval-Augmented Generation (RAG) technique used to enhance the diversity and relevance of retrieved documents or passages. By balancing similarity to the user query and dissimilarity among selected results, MMR reduces redundancy and ensures a broader coverage of information. This approach improves the quality of generated responses by incorporating diverse perspectives and minimizing repetitive or overlapping content in retrieval-augmented systems.
What is Maximal Marginal Relevance (MMR)?
MMR is a ranking criterion that selects items by balancing how relevant they are to a query with how diverse they are from already chosen items, reducing redundancy.
How does MMR balance relevance and diversity?
MMR uses a weighting parameter (often called lambda) to trade off relevance to the query against similarity to items already selected. Higher lambda favors relevance; lower lambda favors diversity.
How is MMR computed in practice?
Starting with an empty set, iteratively pick the candidate that maximizes lambda * relevance(candidate, query) minus (1 - lambda) * similarity(candidate, best already-selected item). Repeat until you reach the desired number of results.
Where can MMR be applied?
MMR is used in information retrieval, search result ranking, text summarization, and recommendation systems to produce diverse, non-redundant results.