Late Interaction Scoring (ColBERT MaxSim)

medium
Unit 21 · APIs & Retrieval0/2 to milestone

Single-vector retrieval squeezes a whole document into one embedding. ColBERT keeps one embedding per token and scores with MaxSim: for each query token, find its best-matching document token, and add up those maxima.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Late Interaction Scoring (ColBERT MaxSim) · TechGradify