Live rank fusion

RankPatch maintains the exact top k as retrievers revise or retract ranked lists. Paste your own document IDs below to see each source’s contribution.

Update a source

Current list
JSON array of up to five unique IDs, each 0–999.

Fused ranking

Positions 1–5 earn 8, 5, 3, 2, 1 points. Equal totals sort by ascending document ID.

Run this state in C++17

This example updates as you edit. Save it as example.cpp in the RankPatch checkout, then run the command below.

c++ -O3 -std=c++17 -Iinclude example.cpp -o example && ./example
In-browser JavaScript reference implementation. Scores are recomputed locally after each change.