Skip to main content
The MaxSim Rerank stage takes the documents an earlier stage found and scores each one by MaxSim: every query token vector is matched to its most similar token vector in the document, and those best matches are summed. Token vectors come from a multi-vector feature, for example the ColBERT extractor’s mixpeek://colbert_extractor@v1/colbertv2_v1. Only the candidates are scored. The vector store reads the token vectors of the documents you pass in and returns one score per document, so the cost grows with the number of candidates.
Stage Category: SORT (Rescores and reorders)Transformation: N documents → N documents (rescored, reordered)

When to Use

Parameters

Two collections over one bucket

A collection runs one extractor. To search densely and rerank with ColBERT, create two collections over the same bucket: one with the text extractor, one with the ColBERT extractor. Search the text collection, then rerank with match_on: root_object_id. Each candidate is scored with the best MaxSim among the ColBERT documents made from its source object.

What the stage reports

The stage’s metadata in the execution response carries candidates, scored, missing_tokens and query_tokens. With match_on: root_object_id it also reports source_objects and token_documents_scored, the number of token documents the vector store scored.