Expand description
MaxSim aggregation for multi-vector late interaction (ColBERT / MetaEmbed).
score(Q, D) = Σᵢ maxⱼ sim(qᵢ, dⱼ)
budgeted_maxsim restricts the query side to the first budget vectors,
enabling Matryoshka ordering for latency-elastic late interaction.
Functions§
- budgeted_
maxsim - Budgeted MaxSim: only uses the first
budgetquery vectors (Matryoshka ordering). Whenbudgetequals or exceedsquery.len()this is equivalent tomaxsim. - maxsim
- Compute the MaxSim score between a query multi-vector and a document multi-vector.