#1276·txtai

Add a token store for multivector rescoring

Author: morgan-codedCreated Sep 25, 2026Updated Sep 28, 2026

I can build an opt-in persisted token store with exact MaxSim rescoring, paired with a higher first-stage nprobe. You wrote: "Though at some point we could have a ANN backend that supports true multivector/colbert search."

LateEncoder.score already scores pre-encoded tensors, but Reranker re-encodes candidate text. There's no persisted per-document token store.

These offline results cover only scifact: 5,183 documents, 300 judged queries, ColBERTv2, 180 tokens/document, LEMUR-2048 first stage. At the default nprobe=8, rescoring recovers ~11% of the gap to the exact MaxSim ceiling because first-stage recall plateaus.

Measurement NDCG@10 Token store
Faiss IVF nprobe=64 baseline 0.50850
Int8 per-row rescoring, nprobe=64, 100 candidates 0.59352 (63.0% of gap recovered) 23,408 bytes/document (2.9x LEMUR-2048, 0.57x MUVERA-10240)
Exact token MaxSim ceiling, fp32/fp16 0.64344

Every existing index, format and result would stay unchanged. Before any code, I'll bring a table covering scifact, nfcorpus, arguana and one corpus of at least 100,000 documents.

Would you prefer a backend under ann/dense/ or an opt-in rescoring stage in Search.dense?