Read the equation
This relation defines MMR in the source section “rank · MMR”. Chooses an argument maximizing the displayed objective over the stated feasible set. Its interpretation depends on the source’s stated variables and conditions; this record does not assign an unprovided physical or cognitive meaning to them.
Terms & definitions
The recovered passage does not supply a separate symbol table. Read the source context for the notation used in this version; familiar letters may carry different meanings in other builds.
How it works
Read MMR as the quantity being defined or updated by this relation.
Chooses an argument maximizing the displayed objective over the stated feasible set.
Use this version’s variable definitions and update order. The same symbol may be assigned a different meaning in another build.
Assumptions & limits
This source expression was recovered from the pinned code revision. Its presence does not establish that the associated program was built, run, or scientifically validated.
Original context
Read the surrounding source passage
import { weightOf } from '../signal/signals.js';
export { DEFAULT_CONFIG };
/**
* Maximal Marginal Relevance (Carbonell & Goldstein, SIGIR 1998).
*
* MMR = argmax [ lambda * score(c) - (1 - lambda) * max_sim(c, selected) ]
*
* @param {Array<{item: object, score: number}>} scored Pre-scored candidates.
* @param {number} lambda Relevance/novelty trade-off in [0, 1].
* @param {number} limit How many to return.
* @returns {Array<{item: object, score: number}>}
*/
export function mmrSelect(scored, lambda, limit) {
const pool = scored.slice();
const picked = [];
const n = Math.min(limit, pool.length);Exact original notation
MMR = argmax [ lambda * score(c) - (1 - lambda) * max_sim(c, selected) ]