Skip to main content

Module scoring

Module scoring 

Source
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 budget query vectors (Matryoshka ordering). When budget equals or exceeds query.len() this is equivalent to maxsim.
maxsim
Compute the MaxSim score between a query multi-vector and a document multi-vector.