LLM4Ranking: An Easy-to-use Framework of Utilizing Large Language Models for Document Reranking

Qi Liu, Haozhe Duan, Yiqun Chen, Quanfeng Lu, Weiwei Sun +1 more
4/10/2025
cs.IRcs.CL

Official code: liuqi6777/llm4ranking (75 stars, MIT, last commit 2026-04-16).

Abstract

Utilizing large language models (LLMs) for document reranking has been a popular and promising research direction in recent years, many studies are dedicated to improving the performance and efficiency of using LLMs for reranking. Besides, it can also be applied in many real-world applications, such as search engines or retrieval-augmented generation. In response to the growing demand for research and application in practice, we introduce a unified framework, \textbf{LLM4Ranking}, which enables users to adopt different ranking methods using open-source or closed-source API-based LLMs. Our framework provides a simple and extensible interface for document reranking with LLMs, as well as easy-to-use evaluation and fine-tuning scripts for this task. We conducted experiments based on this framework and evaluated various models and methods on several widely used datasets, providing reproducibility results on utilizing LLMs for document reranking. Our code is publicly available at https://github.com/liuqi6777/llm4ranking.

View on arXivView PDF

Code Implementations(1)

MIT

Large language models for document ranking.

751Shell, PythonMay 23, 20246 months agoMIT

Similar Papers

Cite this paper

@article{liu2025llmranking,
  title  = {LLM4Ranking: An Easy-to-use Framework of Utilizing Large Language Models for Document Reranking},
  author = {Qi Liu and Haozhe Duan and Yiqun Chen and Quanfeng Lu and Weiwei Sun and Jiaxin Mao},
  year   = {2025},
  eprint = {2504.07439},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.07439v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.07439.svg)](https://codeofpaper.com/paper/2504.07439)

Discussion