Skip to content
Minsing Log
Go back

English Edition

MRR metric

Data & ML

What is MRR? (mean reciprocal rank)

Explain RAGchain

If retrieval has 100 hits, you take the reciprocal of the rank of the item retrieved among the top-k, so the smaller the rank, the larger the value, and then calculate the mean by adding together the reciprocal ranks of passages retrieved at different ranks.

reciprocal rank

After checking the rank of the item retrieved by bm25 for the retrieval GT being sought, its reciprocal is taken. ex) If the item preferred by the user is seventh among a list of 10 recommendations, the reciprocal rank is 1/7. MRR is obtained by calculating the reciprocal rank (RR) for each different recommended item and then taking the mean.

Questions that arose

  1. If so, we need to know the retrieval GT; how was the retrieval GT obtained in the Mr.tydi paper?
  2. When there are multiple positive passages that could be the retrieval GT, do those positive passages have rankings? If there are no rankings, how was the retrieval GT ranked when calculating MRR?

→ If they are equivalent—that is, if they are all the items being sought—then taking the reciprocals of the ranks of those positive passages and calculating the mean will produce the MRR anyway, so MRR can be calculated even if there are no ranks among the positive passages. That is why the paper did not include anything about the priority of the positive passages.

공개 여정 구독

글이 올라오면 이메일로 보내드릴게요.

개발, 창업, 배움, 실패와 회고를 짧고 솔직하게 기록합니다. 검색으로 스쳐가는 독자가 아니라 여정을 따라오는 팬을 만들기 위한 뉴스레터입니다.

뉴스레터는 준비 중입니다. 그동안 RSS 로 구독하거나 이메일 로 알림을 요청해 주세요.


Share this post:

Comments

Sign in with GitHub to leave a comment.


Previous Post
Pandas: How to Drop Rows that Contain a Specific Value without drop() method and for loop?
Next Post
Raising an Error with pytest.raise()