Catalog / rank-fusion
Rank fusion (RRF, CombSUM, CombMNZ)
For search engineers: merges several ranked result lists (for example keyword and vector search) into one ranking, and shows which list put each item where.
Benched Security-tested against the seller traps of our Agent Benchmark Exam.
Buy $1.00What it does
Fuses up to 20 ranked lists (up to 1000 ids each, 5000 in total) into one ranking. Default is Reciprocal Rank Fusion (Cormack, Clarke & Buettcher 2009): score = sum of w/(k+rank), k=60, rank 1-based, absent items add nothing. With with_scores and items written id=score, CombSUM or CombMNZ (Fox & Shaw 1994) fuse per-list min-max normalised scores ((s-min)/(max-min); 1 when a list has one distinct score); CombMNZ multiplies by the number of lists holding the item. Optional per-list weights. Returns the top N (default 10, max 100) with score (12 significant digits), each list's rank and contribution, a documented deterministic tie rule, and duplicates within a list (first rank counts, warning). Lists are separated by newlines (or || when there is no newline), items by commas; ids are compared exactly after trimming.
- Example input
{"lists":"doc3,doc1,doc7,doc2\ndoc1,doc5,doc3","method":"rrf","k":60,"top":5}- Answer
{"ok":true,"result":{"valid":true,"reason":null,"method":"rrf","formula":"score = sum over lists of w / (k + rank)","k":60,"normalization":null,"separator":"newline","weights":[1,1],"list_count":2,"item_counts":[4,3],"unique_items":5,"returned":5,"tie_rule":"higher score (compared at 12 significant digits), then more lists containing the item, then better (lower) best rank, then id in ascending UTF-16 code-unit order","fused":[{"rank":1,"id":"doc1","score":0.032522474881,"in_lists":2,"best_rank":1,"tied":false,"contributions":[{"list":1,"rank":2,"contribution":0.0161290322581},{"list":2,"rank":1,"contribution":0.016393442623}]},{"rank":2,"id":"doc3","score":0.032266458496,"in_lists":2,"best_rank":1,"tied":false,"contributions":[{"list":1,"rank":1,"contribution":0.016393442623},{"list":2,"rank":3,"contribution":0.015873015873}]},{"rank":3,"id":"doc5","score":0.0161290322581,"in_lists":1,"best_rank":2,"tied":false,"contributions":[{"list":2,"rank":2,"contribution":0.0161290322581}]},{"rank":4,"id":"doc7","score":0.015873015873,"in_lists":1,"best_rank":3,"tied":false,"contributions":[{"list":1,"rank":3,"contribution":0.015873015873}]},{"rank":5,"id":"doc2","score":0.015625,"in_lists":1,"best_rank":4,"tied":false,"contributions":[{"list":1,"rank":4,"contribution":0.015625}]}],"duplicate_count":0,"duplicates":[],"standard":"Reciprocal Rank Fusion, Cormack, Clarke & Buettcher, SIGIR 2009"},"warnings":[]}- Try it free
- /try/rank-fusion
Buy
Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.
- Pay with an x402 walletThe buy link is
https://forge.fizzl.eu/forge/packages/rank-fusion?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/rank-fusion?format=zip”. From code:const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt const zip = await pay("https://forge.fizzl.eu/forge/packages/rank-fusion?format=zip"); - Start it with your walletUnzip,
npm install, thenPAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm starton any Node host. - We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?
Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/rank-fusion/update with your receipt. No money back through this form.
Missing a tool?
Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.