← All questions
RAGVery Hard· PRP· MMR· Diversity· RAG

A colleague argues that since the Probability Ranking P...

The PRP is optimal only if each document’s relevance is assessed independently. In RAG, an LLM reads k chunks jointly, meaning a second chunk containing the same information has near-zero marginal utility. Therefore, the object being optimized is a set rather than a ranking. Maximal Marginal Relevance (MMR) addresses this gap. Diversity becomes increasingly important as k shrinks, making it a critical component rather than a hack.

Code playground (Python)