MMR = λ · relevance(doc, query)
− (1−λ) · max_sim(doc, selected)
At each step, pick the document that's most relevant to the query
and least similar to what's already been selected.
Computed live in your browser — no backend.
Carbonell & Goldstein 1998 · TF-IDF embeddings
Full Python implementation + benchmarks in the repo