Witmint Academy

Research note / RAG and search

What a ranking score can tell you about RAG

Two short result lists show the difference between finding the right source and ranking it first.

Imagine a document assistant that already finds the correct Standard plan refund rule. It just sends the Enterprise rule first. A single score may hide the problem, so measure the shortlist separately from the order.

Start with the same evidence in both runs

The example below uses fictional source IDs. The question is, “What is the Standard refund window?” Only P1 answers that question. P2 describes Enterprise and S1 explains escalation.

Keyword baseline

  1. P2: Enterprise refund rule
  2. P1: Standard refund rule
  3. S1: Escalation

After reranking

  1. P1: Standard refund rule
  2. P2: Enterprise refund rule
  3. S1: Escalation

Score both stages

Try a harder question

Ask for both the refund rule and the escalation route. Now P1 and S1 are required. The new ranker still gets a hit at 1, but it finds only one of the two sources in its first two results. Recall at 2 is 0.5. This matters if your model only sees the first two excerpts.

What this does and does not show

The second run improved the ordering in this fictional trace. It did not improve the shortlist or measure what a model writes from it. Repeat with held-out cases and inspect supported claims separately. The original BEIR benchmark paper gives a broader example of evaluating retrieval across multiple tasks. Its results are not results from this exercise.