HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
BishopFox
raink
Go2025–2025
BishopFox / raink

raink

Use LLMs for document ranking

2Distinct people
3Mentions
0Explicit recommenders
178GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Use LLMs for document ranking

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by week3 dated mentions

Observed mentions: 2025-01-15 17:44:11 UTC to 2025-02-25 17:56:18 UTC. Weeks start Monday, UTC.

012025-01-13 00:00:00 UTC to 2025-01-20 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsJan 132025-01-20 00:00:00 UTC to 2025-01-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-27 00:00:00 UTC to 2025-02-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-02-03 00:00:00 UTC to 2025-02-10 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsFeb 32025-02-10 00:00:00 UTC to 2025-02-17 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025-02-17 00:00:00 UTC to 2025-02-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-02-24 00:00:00 UTC to 2025-03-03 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsFeb 24

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jan 132025-01-13 00:00:00 UTC2025-01-20 00:00:00 UTC110
Jan 202025-01-20 00:00:00 UTC2025-01-27 00:00:00 UTC000
Jan 272025-01-27 00:00:00 UTC2025-02-03 00:00:00 UTC000
Feb 32025-02-03 00:00:00 UTC2025-02-10 00:00:00 UTC000
Feb 102025-02-10 00:00:00 UTC2025-02-17 00:00:00 UTC101
Feb 172025-02-17 00:00:00 UTC2025-02-24 00:00:00 UTC000
Feb 242025-02-24 00:00:00 UTC2025-03-03 00:00:00 UTC101

What Hacker News says

3 sources
The open source ranking library is really interesting. It's using a type of merge sort where the comparator function is an llm comparing (but doing batches >2 for fewer calls). Reducing problems to document ranking is effectively a type of test-time search - also very interesting! I wonder if this approach could be combined with GRPO to create more efficient chain of thought search... https://github.com/BishopFox/raink?tab=readme-ov-file#descri...
In Hard problems that reduce to document ranking
I published a nearly identical tool, referencing the same paper, a few weeks ago :) Although I implemented a listwise algorithm instead of pairwise as described in the paper; ends up being a lot faster. https://github.com/BishopFox/raink https://bishopfox.com/blog/raink-llms-document-ranking raink \ -f testdata/sentences.txt \ -r 10 \ -s 10 \ -p 'Rank each of these items according to their relevancy to the concept of "time".' | jq -r '.[:10] | map(.value)[]' | nl 1 The train arrived exactly on time. 2 The old clock chimed twelve times. 3 The clock ticked steadily on the wall. 4 The bell rang, signaling the end of class. 5 The rooster crowed at the break of dawn. 6 She climbed to the top of the hill to watch the sunset. 7 He wat
Read the rest
ched as the leaves fell one by one. 8 The stars twinkled brightly in the clear night sky. 9 He spotted a shooting star while stargazing. 10 She opened the curtains to let in the morning light.
In Show HN: Sort lines semantically using llm-sort
noperator·Jan 15, 2025Submission

Show HN: Raink – Document ranker using LLMs

I think a lot of AI-augmented security problems can be decomposed into "show me the best thing in this list of things": - the changed function in a patch diff that most closely relates to a given security advisory - the injection point in a webapp that seems most likely to cause a state change on the backend - the static code analyzer result that would have most severe impact if a sink were actually reachable It's notoriously difficult to get an LLM to seriously consider all items when presented with a big list of input—so I built raink, a CLI tool to harness LLMs for general purpose document ranking. Blog post here: https://bishopfox.com/blog/raink-llms-document-ranking
2 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.