
Hi, I'm Minseok, and I build Leni, the AI support agent at Lenit.
Lenit is a B2B SaaS that puts customer feedback and customer support in one product. Leni learns from a company's help center, FAQ, and website, and answers customer questions directly in the chat widget.
In this post I want to walk through how we redesigned one part of Leni: the reranker.
The short version: we replaced a selection (listwise) reranker that only looked at the top 16 vector-search results with a 4-shard pointwise reranker that scores all 40 candidates in four parallel batches of 10.
On 349 questions built from Lenit's own help center, gold-chunk recall went from 80.7% → 89.2%, and trap-question blocking went from 59.9% → 85.0%. The reranker's cost per question went from ₩0.66 to ₩2.1 (roughly $0.0005 → $0.0015).
(Yes, the reranker got more than three times as expensive. But we were recently accepted into Claude for Startups, and the API credits made it an easy call. Heh.)
The reranker does two jobs in Leni
Leni's flow is standard RAG. We embed the question and cast a wide net for similar knowledge chunks (retrieval), keep only the ones that are actually useful (reranking), and write the answer from that evidence (generation).

Leni's retrieval pipeline. The reranker ranks candidates, and it's also the gate that stops Leni from answering without evidence.
Leni follows one rule: "No evidence, no answer." A confidently wrong answer is worse than handing the conversation to a human.
So Leni's reranker doesn't just rank. If it decides nothing is usable, Leni doesn't answer and offers to connect the customer with a human. The reranker is also a gate.
That's why we judge the reranker on two metrics:
Gold-chunk recall — for questions that do have an answer, did the gold chunk make it into the final evidence? If this is low, Leni either fails to answer questions it could answer, or answers from the wrong evidence.
Trap blocking rate — for questions the knowledge base can't answer (competitor comparisons, internal company info, features that don't exist, off-topic questions), did the reranker pick nothing? If this is low, Leni gives plausible wrong answers with confidence.
Why an LLM reranker in the first place?
Leni's first retrieval picked evidence with a single vector-similarity threshold. But with Korean questions and text-embedding-3-small, cosine similarity was bunched between 0.2 and 0.6. Relevant and irrelevant chunks lived in the same range, so no single threshold could separate them.
When we measured on a golden set, every threshold lost something. Lowering it from 0.40 to 0.30 raised recall@4 from 0.786 to 0.857, but off-topic blocking dropped from 4 out of 5 to 2.
So we split the job: keep the threshold loose for recall, and let an LLM judge handle precision. Not asking one threshold to win on both metrics is the reason Leni has a reranker at all.
Three ways to have an LLM rank
There are three common ways to use an LLM to rerank search results.

Three ways to have an LLM rank candidates.
Pointwise
Score each candidate on its own. The output looks like {"id3":9,"id12":6}.
Pros: Scores are absolute, so you can split the candidates, score them in parallel, and merge. You can also set a cutoff like "7 or higher only."
Cons: The scale drifts, and you get lots of ties.
Listwise
Show all candidates at once and ask for an ordering. The output looks like id1 > id3 > id0.
Pros: The model compares candidates against each other, so the relative order tends to be good.
Cons: Long output, with duplicates or omissions. There's no natural cutoff, and if you split the list into batches, there's no way to merge them.
Pairwise
Repeatedly compare two candidates and sort from the results.
Pros: The best quality.
Cons: O(K log K) to O(K²) comparisons. With 40 candidates, that's hundreds of calls. (Hello, cost explosion.)
Pairwise was never an option for live support. The customer is waiting. The real choice was pointwise or listwise.
We started with listwise
When we first built the reranker, we went listwise. We showed all candidates at once and asked: "Pick only the excerpts that actually contain the answer, in order of relevance."
The output was standardized to {"relevant":[ids…]}.

The selection reranker we ran from September to November 2026. Only the first 16 of the top 40 vector results (max 5 per document) were shown to the LLM.
We shelved pointwise because of degenerate responses
We did try pointwise. We asked the reranker to "score each excerpt from 0 to 10." The model at the time, gpt-4o-mini, gave every chunk a 0 on Korean input, even when the gold chunk was ranked first. It happened on 3 of 33 questions.
In this post I'll call these degenerate responses: the output keeps the format but gives up on judgment. The nasty part is that nothing looks wrong. The JSON is valid, so the parser is happy, and the reranker concludes "no evidence." Leni misses a question it could have answered, without a single error in the logs.
What selection had going for it
Selection had three advantages.
No degeneration. On the same 33 questions, it correctly picked all 3 that pointwise had missed.
An empty array was the gate. Picking nothing meant "no evidence," so we didn't need a separate score threshold.
Cheap and fast. One call, and the output was a few ids.
The numbers looked good, too, compared with just before the reranker was added (re-indexing plus a per-document cap). This is on our August 2026 golden set of 33 questions.
recall@4: 0.893 → 0.929
MRR: 0.821 → 0.929
Irrelevant chunks (out of 4): 1.82 → 0.46
Off-topic blocking: 2/5 → 5/5
Given the model and data at the time, it was a sensible choice, and we ran it until November. The problem was that the conditions quietly changed underneath it.
Where did 16 come from?
What the reranker sees is its ceiling
Vector search fetches 40 candidates. We fetched 40 while passing only 16 because of the per-document cap: when one document's chunks crowd the top ranks, we keep only 5 and skip the rest, so we needed enough candidates further down to still fill 16 slots.
In practice, though, we were cutting the list down to 16 by vector rank before the reranker ever looked at it.
A reranker can only reorder what it's given. So the reranking step can never do better than "the share of questions whose gold chunk is in the vector top 16." As a help center grows and similar articles pile up, gold chunks get pushed past rank 16, and that ceiling keeps dropping.
Three more doubts
Position bias. We fed candidates in vector-rank order. LLMs tend to favor the start and end of a list and miss the middle. What happens when the gold chunk sits between ranks 7 and 16?
No scores. Selection is pick or don't pick. You can't tune a threshold, you can't merge results from split batches, and there's nothing to log about why it decided what it did.
Stale evidence. The measurements where selection won were on gpt-4o-mini. Since then, the reranker had moved to Claude Haiku 5.5. Nobody had re-checked whether degenerate responses still happened on the new model.
The hypotheses
So do we just raise 16 to 40? Unfortunately, it's not that simple. Forty at once means a longer input, and position bias could make the model miss even more of the middle. So we split it into two hypotheses:
H1. The reranker needs to see all 40 candidates. The 16-cut is the real bottleneck.
H2. But showing 40 at once makes it miss things. It needs to see them in batches.
If H2 holds, we need a way to merge the batches: a value you can compare across batches. In other words, a score.
So we decided to give pointwise another shot, this time tailored to Leni.
First: how did Fin solve it?
Intercom's Fin team solved exactly this problem in Using LLMs as a reranker for RAG: a practical guide. In short:
Split K=40 candidates into 4 shards and score them in parallel, 0–10. Shards are assigned round-robin.
Don't output anything below 5, and compress the output to cut latency (output −28%, latency a further −50%).
Merge by score, and fill ties, missing scores, and timeouts with a BGE cross-encoder.
Result: added latency went from +5 s to a median of +0.9 s, and cost dropped to about 1/8. The resolution rate was significantly higher than with their previous BGE cross-encoder.
They also compared directly against listwise. Listwise has to look at all 40 at once and order them, which needed a stronger (more expensive) model. The resolution rate was the same, with +40% latency and +15% cost. No gain, so they kept pointwise.
A great reference. But before borrowing the conclusion, we checked whether each of Fin's reasons held under Lenit's conditions.
"Pointwise beat the BGE cross-encoder" → Unknown. Lenit's baseline is an LLM selection reranker, not a cross-encoder.
"Listwise is slow and expensive because of long output" → No. Lenit's selection reranker only outputs a few ids.
"At equal quality, pointwise is cheaper and faster" → Needs testing. Four shards means reading the instructions four times.
"Pointwise scores are stable" → Needs re-testing. Lenit had already been burned by degenerate responses once.
After that, one argument was left standing: "We need to see 40 (H1), and putting 40 in at once misses things (H2)." But nobody had measured H2 yet.
So we added a control arm: selection over all 40 at once (C). If H2 was wrong, meaning Haiku could pick well from 40 at once, we wouldn't need batches or scores, and C would be the simpler answer.
A (current) — 40 → cut to 16 (max 5 per doc) → one selection call
C (control) — all 40 → one selection call (order shuffled per question with a fixed seed to reduce position bias)
B (Fin-style) — all 40 → 4 round-robin shards → 4 parallel scoring calls → merge by score
And so we couldn't choose criteria after seeing the results, we wrote down the adoption criteria before running the evaluation.
B's gold-chunk recall is significantly higher than A's, compared question by question (McNemar, bootstrap).
Trap blocking is not lower than A's. A drop means B fails.
Reranking p95 latency rises by no more than +500 ms, and format errors stay under 1%.
If B and C are within the margin of error, adopt C. It's simpler.
If degenerate responses reproduce in the first test, stop B and continue with C only.
Redesigning pointwise
Here's the overall structure.

1. Round-robin split: spread position bias evenly across shards
If you cut the 40 into consecutive groups of 10, you get a problem. The first shard (ranks 1–10) is packed with strong candidates, and the last shard (ranks 31–40) has only weak ones.
Within a shard, an LLM quietly compares candidates against each other when it scores. So a 7 in the first shard and a 7 in the last shard can mean different things. If each shard's scale drifts, the merged ranking breaks.

Shard j = { rank t | t mod 4 = j }. A round-robin split mixes strong and weak candidates evenly into every shard.
With a round-robin split, each shard gets ranks like 1·5·9… or 2·6·10…, a mix of strong and weak. Position bias doesn't go away, but it's spread about equally across shards. We also added to the prompt: "Don't let other excerpts' scores sway you; list order has nothing to do with relevance."
2. A clear scoring rubric
Pointwise's biggest weakness is a drifting scale. If four shards score by four different standards, the merged ranking means nothing. So we put a rubric that pins down what each score means, plus scoring examples, into the prompt.
10 — The excerpt contains the answer itself. For how-to questions, it includes the steps the customer can follow.
8–9 — Contains the core of the answer, with some details missing.
6–7 — Contains part of the answer, or information the answer needs (where a setting lives, conditions, limits, pricing).
5 — Contains information directly related to the question that helps write the answer.
0–4 — Only the topic or wording is similar, it's about a different feature or situation, or it's unrelated.
We added three rules to the rubric:
Judge each excerpt on its own. Don't be swayed by other excerpts' scores.
For how-to questions ("how do I…", "where do I set…"), feature overviews, setup guides, and configuration steps beat edge-case Q&As that merely share keywords. This rule came from a real miss: for a "how do I manage tags" question, the article's overview and setup sections got crowded out while edge-case FAQs got through.
If the question has nothing to do with the excerpts, every excerpt scores below 5.
One of the three examples is deliberately a nothing-matches case ({}), to show the model what the gate looks like in action.
The output format is scores of 5 and up only, no spaces, like {"id3":9,"id12":6}. Fin found that dropping the id prefix cut output by another 20%, but the model started mixing up ids and scores and quality dropped. So we kept id too.
We also treated the prompt language as an experimental variable. Customer questions are in Korean, but we built Korean and English versions of the rubric and compared them. The results were interesting. The Korean rubric was generous to trap questions:
Q. "Compare yourself with Channel Talk" (a Korean customer-chat tool) → Korean rubric 9
Q. "Is Leni built on GPT or Claude?" → Korean rubric 8
Q. "Are you adding video calls?" → Korean rubric 7
The English rubric scored all of these 5 or lower. With the gate at 5, trap blocking was 27/30 with the English rubric and 17/30 with the Korean one, and MRR was higher in English too (0.994 vs 0.963). So we use the English rubric regardless of the customer's language.
3. Tracking degenerate responses as a metric
Whether the degenerate responses we saw on 4o-mini would show up on Haiku was a precondition for the whole experiment. So we defined degeneration as two metrics and counted them on every run.
All empty — the question has an answer, but every shard returned
{}Gold underscored — the gold chunk was among the candidates but scored below 5
We didn't trust the parser either. If the JSON is broken, that shard is marked MALFORMED; out-of-range ids and scores outside 0–10 are dropped and counted.
Fortunately, degeneration didn't show up systematically (more in the results below). Across 6,864 shard calls there were zero broken responses, zero dropped ids, and zero timeouts.
4. Ties, without a cross-encoder
We pool every shard's scores and sort by score. Ties go to the candidate with the better vector rank. Fin used a BGE cross-encoder here. We didn't, for three reasons:
Lenit doesn't run its own cross-encoder model.
An external rerank API would mean sending customer data to yet another third-party service.
It adds cost and latency.
Instead, we measured how much ties actually matter. We recounted the 1,047 pointwise runs from the main evaluation, with no extra calls.
Scores are integers from 0 to 10, so ties are common. In 76% of runs with evidence, more than one chunk shared the top score. But that only changes the order of the evidence.
The real problem is when more than six chunks score 7 or higher and a tie decides the 6th slot. That happened in 15.9% of runs, and it cut the gold chunk 7 times out of about 900.
So we added one more rule: chunks tied with the 6th-place score are passed through too, up to 8 in total. We recomputed with different caps from the stored scores:
Knowledge size | Cut at 6 | Ties included, max 8 | No cap | Avg. evidence chunks |
|---|---|---|---|---|
1× | 87.7% | 88.3% | 88.3% (max 10) | 4.93 → 5.18 |
3× | 83.3% | 83.9% | 83.9% | 4.97 → 5.31 |
6.8× | 83.6% | 84.3% | 84.3% | 4.98 → 5.27 |
All of the gain came from a cap of 8; removing the cap didn't help further. Evidence grew by only 0.3 chunks on average.
5. Designing for failure first
The reranker sits in the middle of the support path. If it stops, support stops. So we split the outcome three ways and decided where each failure goes before anything else.

Decision flow after scores are collected. If a shard failed, we don't conclude "no evidence."
Gate — if the top score is below 7, there's no evidence. Leni doesn't answer and offers a handoff to a human.
Timeout — each shard gets 3 seconds, with no retry. In the first test, shard latency p99 was about 1.0 s. Total latency is set by the slowest shard: if one shard overruns with probability p, the chance that at least one of four does is 1−(1−p)⁴ (about 4% at p=1%). So we didn't stretch the tail further with retries.
No model fallback — Leni's other LLM calls fall back to OpenAI if Claude fails. Reranker shards don't. The moment you resend, you blow past 3 seconds.
Partial failure — failed shards are dropped and we continue with the rest. But if nothing reached 7 and a shard failed, the answer might have been in that shard. So instead of concluding "no evidence," we answer from the vector top 6 (2 per document). Same if every shard fails.
We started by doubting the measurement
The first test was too easy
The first test (① sanity check) ran 40 questions built from Lenit's help center, 3 times each, with gold defined at the article level.
The result: A's recall was 1.0. The knowledge base was small (1,181 chunks) and gold was article-level, so not a single question had its gold cut off by the 16-cut. This test couldn't tell us anything about H1 (the 16-cut as the bottleneck).
We still got something out of it: the English rubric is better, a 3-second timeout is plenty, and degeneration doesn't reproduce on Haiku (0/90). That passed adoption criterion 5 (stop B if degeneration reproduces), so we kept going with B.
From article-level to chunk-level gold
For the main evaluation (②), we changed the unit of gold.
We sampled 300 chunks of 120+ characters evenly across 69 help articles (fixed seed).
Sonnet 5.5 wrote one customer question per chunk, phrased around what the customer wants to do or the situation they're in rather than the feature name, and asking about a condition, limit, or exception found only in that chunk.
Gold is that chunk plus its neighbors, because Leni stitches neighboring chunks together when it uses evidence.
We mixed in 50 traps: 10 each of competitor comparisons, internal company info, nonexistent features, and off-topic questions, plus 10 off-topic questions from the first test.
349 questions in total. A and B ran 3 times, C once.
We doubted the judging too. Only missed runs and traps where something was picked went back to Sonnet for a second judgment (TREC-style pooling). If another article had the same content, we accepted it as lenient gold. We also checked, with the gold chunk mixed in, whether each question could really be answered from its chunk, and dropped 10 questions from every arm because their gold chunk didn't answer them.
Growing the knowledge base: a scale test
Lenit's help center alone can't show what happens when a help center gets big. So we added 933 articles from the public help centers (llms-full.txt) of five Korean SaaS companies as distractors.
The knowledge base grew from 1,181 chunks to 3,588 (3×) and 8,013 (6.8×). Distractors went through the same indexing path as production, and Lenit's chunks were matched by content hash to stay identical to ②.
The whole evaluation cost about ₩8,800 (roughly $6): ₩730 for the first test, ₩6,100 for the main evaluation, and ₩2,000 for the scale test. Question generation and judging used the Sonnet Batch API (half price), and reranking ran on Haiku. A couple of coffees' worth of certainty.
Results
1. Main evaluation
Arm | Gold recall (strict) | (lenient) | MRR | Other-article chunks / 6 | No evidence despite an answer | Trap blocking | Rerank p50 / p95 | Run-to-run agreement | Cost per question |
|---|---|---|---|---|---|---|---|---|---|
A Selection, 16 | 0.807 | 0.901 | 0.666 | 1.75 | 0.8% | 59.9% | 784 / 865 ms | 0.962 | ₩0.66 |
C Selection, 40 | 0.758 | 0.848 | 0.477 | 2.26 | 0.3% | 67.3% | 807 / 906 ms | — | ₩1.52 |
B Pointwise · threshold 5 (Fin as-is) | 0.897 | 0.952 | 0.692 | 2.69 | 0.8% | 78.2% | 836 / 984 ms | 0.986 | ₩2.14 |
B Pointwise · threshold 6 | 0.895 | 0.949 | 0.692 | 2.50 | 0.8% | 81.0% | (same) | 0.983 | (same) |
B Pointwise · threshold 7 (adopted) | 0.892 | 0.948 | 0.691 | 2.04 | 1.2% | 85.0% | (same) | 0.990 | (same) |
Threshold N = evidence at score ≥ N, gate at N. Recomputed from the same runs' scores (no extra calls).
Here's the summary:
B passed all five adoption criteria.
Paired question by question (majority of 3 runs), 27 questions were answered only by B and 2 only by A. McNemar p ≈ 8×10⁻⁶; bootstrap +8.4 pp [95% CI +5.1, +12.0].
Trap blocking didn't drop. It rose from 59.9% to 78–85%.
p95 latency rose by +119 ms, within the +500 ms budget, with zero format errors.
C was worse than even A. Its gap to B was outside the margin of error, so criterion 4 (pick C if B and C tie) didn't apply.
We set the threshold at 7. It costs at most 0.5 pp of recall, raises trap blocking from 78% to 85%, and cuts other-article chunks from 2.69 to 2.04.
2. Where did B win? By the gold chunk's vector rank

Gold-chunk recall by the gold chunk's vector rank. B is shown at threshold 5.
Gold chunk's vector rank | Questions | A Selection, 16 | B Pointwise | C Selection, 40 |
|---|---|---|---|---|
Ranks 1–6 | 211 | 96.8% | 98.4% | 86.7% |
Ranks 7–16 | 34 | 67.6% | 94.1% | 64.7% |
Ranks 17–40 | 22 | 27.3% | 89.4% | 63.6% |
Beyond 40 | 22 | 0% | 0% | 0% |
(Ref.) Cut by A's 16-cut | 18 | 0% | 87.0% | 72.2% |
This table answers both hypotheses.
H1 confirmed. "Cut by the 16-cut," which was zero in the first test, turned out to be 18 questions (6%) at chunk level. A found none of them; B found 87%.
H2 confirmed. Even when the gold chunk was at ranks 7–16, inside A's window, A picked it only 67.6% of the time. Looking at 16 at once already misses the middle. C, looking at 40 at once, dropped to 86.7% even for ranks 1–6. With the same small model, the more you show at once, the more it misses.
If the gold chunk is beyond rank 40, no method can save it. That's the next bottleneck, and I'll come back to it.
3. Did B win just by passing more evidence?
B passes more evidence than A (A averages 3.98 chunks, B 5–6). So maybe it won by passing more? To separate that out, we truncated B to the same count as A on every run and measured again.
Evidence count matched to A | A | B |
|---|---|---|
Overall | 80.7% | 86.0% (+5.3 pp) |
Top 1 only | 56.6% | 55.2% |
Top 3 | 75.7% | 83.0% |
Top-1 accuracy was about the same. The difference came from rank 2–3 onward. B won not on the quantity of evidence but on the quality of what comes after the top result.
4. Trap questions by type
Trap type (30 runs each) | A Selection | B threshold 7 |
|---|---|---|
Competitor comparison ("Compare yourself with Channel Talk") | 11 | 21 |
Internal company info | 25 | 30 |
Nonexistent feature | 4 | 14 |
Off-topic | 24 | 30 |
Off-topic (first-test set) | 24 | 30 |
"Nonexistent feature" is a gray zone. For "Can I connect a KakaoTalk channel?", passing a chunk that says "email is the channel you can connect right now" effectively is an answer. One trap that the judge also rated as answerable was excluded from blocking scores.
5. As the knowledge base grows

We mixed in other companies' help centers as distractors to grow the knowledge base to 1×, 3×, and 6.8×. The two metrics use different axes, so they're in separate charts.
Knowledge (chunks) | A | B threshold 7 | B − A [95% CI] | Paired | Trap blocking A → B | Gold beyond rank 40 |
|---|---|---|---|---|---|---|
1× (1,181) | 80.7% | 89.2% | +8.4 pp [5.1, 12.0] | B only 28 · A only 3 · p=5×10⁻⁶ | 59.9% → 85.0% | 22 (7.6%) |
3× (3,588) | 79.2% | 84.4% | +5.2 pp [1.7, 8.7] | B only 20 · A only 5 · p=0.004 | 59.2% → 79.6% | 28 (9.7%) |
6.8× (8,013) | 77.9% | 84.8% | +6.9 pp [3.5, 10.7] | B only 25 · A only 5 · p=0.0003 | 49.0% → 81.6% | 30 (10.4%) |
B was significantly ahead at all three sizes. A kept sliding as the knowledge base grew (80.7 → 79.2 → 77.9%).
The trap-blocking gap actually widened. At 6.8×, A blocked only half the traps (0/9 on "nonexistent feature"), while B blocked 81.6%.
B wasn't fooled by distractors, either. At 3×, 4.8% of B's evidence came from distractors, versus 5.2% for A.
6. An unexpected weakness: scores sway with their neighbors
Not everything was good news. The scale test exposed a new weakness. Slip just 1–3 distractors into the 40 candidates and the round-robin assignment changes. When it did, the same gold chunk's score moved from 10 to 5, or from 9 to 6.
Share of (question, chunk) pairs whose score changed by 2+ | All | Gold chunks |
|---|---|---|
Same batching (② repeats) | 2.6% | 13/496 |
Different batching (scale test) | 10.6–12.2% | 65/472 · 68/457 |
Even with a clear scoring rubric, pointwise scores weren't fully absolute. The neighbors in the same shard shift the scale.
The more painful part: ②'s three repeats used the same batching, so they couldn't measure this swing. A run-to-run agreement of 0.99 wasn't evidence of stability. So we treat ②'s +8.4 pp as possibly a lucky draw and set our expected real-world lead lower, at +5–7 pp.
Degenerate responses, on the other hand, nearly disappeared. Every shard returned {} on an answerable question in 6 of 867 runs (0.7%, 3 questions × 2 runs), all on vague questions like "Can the AI reply to customers for me?" The gold chunk was a candidate but scored under 5 in 9 of 819 runs. 4o-mini's "all zeros" did not reproduce on Haiku 5.5.
7. Latency and cost
Latency — Calling 4 shards in parallel kept reranking latency close to A's. p95 rose by +119 ms in the main evaluation (865 → 984 ms) and +150–200 ms in the scale test, all within the +500 ms budget. Shard latency was p50 0.79 s, p99 1.0 s, max 2.2 s.
Cost — ₩0.66 → ₩2.1 per question. Unlike Fin, pointwise costs more than listwise for us (C, ₩1.52). Each shard rereads the instructions and rubric, which pushed input from about 9K to 12K tokens, and prompt caching isn't hitting yet (cached 0).
Same conclusion as Fin, different reasons
Fin | Lenit | |
|---|---|---|
Model on the listwise side | A stronger (more expensive) model | The same Claude Haiku 5.5 as pointwise |
Quality | Same (equal resolution rate) | Pointwise is better (89.2% vs 75.8%) |
Latency | Listwise +40% | About the same (selection output is short) |
Cost | Listwise +15% | Pointwise costs more (₩2.1 vs ₩1.52) |
Ties and gaps | BGE cross-encoder | Vector rank + 6th-place ties up to 8 |
The reranker's role | Ranking | Ranking + "no evidence" gate (7) |
Why pointwise | Same quality, faster and cheaper | Costs a bit more, clearly better quality |
We reached the same conclusion for different reasons. And different reasons lead to different next decisions.
For example, Fin's result also says that with a strong enough model, listwise handles 40 candidates just fine. So the day Lenit switches reranker models, we need to re-measure C (selection over 40). The cheaper, simpler C might win then.
The decision, and what's left
4-shard pointwise as the default
We adopted 4-shard pointwise as the production default; it ships with our next deploy. Evidence and gate thresholds are 7, and 6th-place ties pass through up to 8. If anything goes wrong, one config line (RAG_RERANKER_MODE=selection) rolls it back.
Watching real questions
To be honest, every test question was written by an AI. Real customer questions are shorter, lean on earlier messages, and mix in English.
So we'll add a shadow comparison in production, switched on after the deploy. Customers get pointwise answers, and the same candidates are also scored by the old selection reranker, for logging only.
Logs contain no questions, answers, or content. Documents are recorded only as a 12-character URL hash and a chunk number, and deleted after 30 days.
Only cases where the two methods disagree, and only in Lenit's own workspace, are judged pairwise by Sonnet. The order of the two sets is randomized per case to avoid position bias.
If the old method wins too often, we roll back.
Open limitations
Gold-chunk recall only measures whether the gold chunk made it into the evidence. We didn't measure whether the final answer was correct.
Scores swaying with their neighbors is still open. Scoring twice with reshuffled shards would help, but it doubles the cost, so we'll decide based on production numbers.
The next bottleneck is retrieval, not the reranker. The share of questions whose gold chunk is beyond vector rank 40 grew with knowledge size: 7.6% → 9.7% → 10.4%. At 6.8×, 30 of B's 44 misses (68%) came from there. A reranker can only fix what it's given.
The numbers at a glance
Metric | Old (A, selection, 16) | New (B, 4-shard pointwise · 7) |
|---|---|---|
Candidates the reranker sees | 16 (max 5 per doc) | All 40 (4 shards of 10) |
LLM calls | 1 | 4 in parallel |
Gold-chunk recall (349 questions, strict) | 80.7% | 89.2% (McNemar p ≈ 8×10⁻⁶) |
Gold-chunk recall (knowledge 6.8×) | 77.9% | 84.8% |
Gold at vector ranks 17–40 | 27.3% | 89.4% |
Gold at vector ranks 7–16 | 67.6% | 94.1% |
Trap blocking | 59.9% | 85.0% |
Trap blocking (knowledge 6.8×) | 49.0% | 81.6% |
MRR | 0.666 | 0.691 |
Rerank latency p50 / p95 | 784 / 865 ms | 836 / 984 ms |
Shard latency p50 / p99 / max | — | 0.79 / 1.0 / 2.2 s |
Format errors (6,864 shard calls) | — | 0 |
Degenerate responses (answerable, all | — | 0.7% (6 of 867) |
Same chunk's score swinging by 2+ | — | same batching 2.6% / different 10.6–12.2% |
Reranker cost per question | ₩0.66 | ₩2.1 |
Total evaluation cost | about ₩8,800 (≈ $6) |
Wrapping up
That's how we moved Leni's reranker from selection to 4-shard pointwise. Looking back, what mattered most wasn't the new method itself but the order of steps that got us there.
Ask whether your settings are backed by measurements. Nobody had measured the "16," yet it set the reranker's ceiling.
Borrow the reasons, not just the conclusion. Fin and Lenit landed on the same method for different reasons. Checking each reason against your own conditions is what lets you make the next decision well.
Put a simpler alternative in as a control, and decide in advance that you'll pick it if it ties. If C had won, we wouldn't have needed scores, shards, or a rubric.
Doubt your measurements. The first test was too easy to see the hypothesis, and the 0.99 agreement came from identical batching. The better a number looks, the more you should ask what it can't measure.
Design for failure first. Drop failed shards, and if the answer might have been in a failed shard, don't conclude "no evidence." Even if the reranker stops, support shouldn't.
I hope this helps if you're working on a RAG reranker. If you want to see how Leni actually answers, you can try it at lenit.cloud.
Thanks for reading.
This post reflects our setup as of November 2026.