Artificial Intelligence
09 Sep 2026
11 min read
Diversify RAG Retrieval with Maximum Marginal Relevance
A retrieval-augmented generation (RAG) system can retrieve highly relevant chunks and still build a poor context. The problem is redundancy. Imagine a support assistant answering a question about an API timeout. Vector search returns five chunks, but four are slightly different copies of the same timeout definition. The fifth useful chunk about retry behavior never reaches the model. Each result looked relevant in isolation, yet the set wastes most of its context budget repeating one idea.