paper-with-me

홈 › Papers

RankLLM: A Python Package for Reranking with LLMs

2025-05-25 · Sahel Sharifymoghaddam, Ronak Pradeep, Andre Slavescu, Ryan Nguyen, Andrew Xu, Zijian Chen, Yilin Zhang, Yidi Chen, Jasper Xian, Jimmy Lin

The adoption of large language models (LLMs) as rerankers in multi-stage retrieval systems has gained significant traction in academia and industry. These models refine a candidate list of retrieved documents, often through carefully designed prompts, and are typically used in applications built on retrieval-augmented generation (RAG). This paper introduces RankLLM, an open-source Python package for reranking that is modular, highly configurable, and supports both proprietary and open-source LLMs in customized reranking workflows. To improve usability, RankLLM features optional integration with Pyserini for retrieval and provides integrated evaluation for multi-stage pipelines. Additionally, RankLLM includes a module for detailed analysis of input prompts and LLM responses, addressing reliability concerns with LLM APIs and non-deterministic behavior in Mixture-of-Experts (MoE) models. This paper presents the architecture of RankLLM, along with a detailed step-by-step guide and sample code. We reproduce results from RankGPT, LRL, RankVicuna, RankZephyr, and other recent models. RankLLM integrates with common inference frameworks and a wide range of LLMs. This compatibility allows for quick reproduction of reported results, helping to speed up both research and real-world applications. The complete repository is available at rankllm.ai, and the package can be installed via PyPI.

📄 PDF Abstract BibTeX arXiv:2505.19284

Code (1)

castorini/rank_llm pytorch

Tasks

Mixture-of-ExpertsRAGRerankingRetrievalRetrieval-augmented Generation

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

Rankify: A Comprehensive Python Toolkit for Retrieval, Re-Ranking, and Retrieval-Augmented Generation

2025-02-04 · Abdelrahman Abdallah, Bhawna Piryani, Jamshid Mozafari, Mohammed Ali 외

Retrieval, re-ranking, and retrieval-augmented generation (RAG) are critical components of modern applications in information retrieval, question answering, or knowledge-based text generation. However, existing solutions…

BenchmarkingInformation RetrievalQuestion AnsweringRAG+5

Rethinking the Necessity of Adaptive Retrieval-Augmented Generation through the Lens of Adaptive Listwise Ranking

2026-04-17 · Jun Feng, Jiahui Tang, Zhicheng He, Hang Lv 외 arxiv

Adaptive Retrieval-Augmented Generation aims to mitigate the interference of extraneous noise by dynamically determining the necessity of retrieving supplementary passages. However, as Large Language Models evolve with i…

RankLLM: Weighted Ranking of LLMs by Quantifying Question Difficulty

2026-02-12 · Ziqian Zhang, Xingjian Hu, Yue Huang, Kai Zhang 외 arxiv

Benchmarks establish a standardized evaluation framework to systematically assess the performance of large language models (LLMs), facilitating objective comparisons and driving advancements in the field. However, existi…

Computational Efficiency

LangFair: A Python Package for Assessing Bias and Fairness in Large Language Model Use Cases

2025-01-06 · Dylan Bouchard, Mohit Singh Chauhan, David Skarbrevik, Viren Bajaj 외

Large Language Models (LLMs) have been observed to exhibit bias in numerous ways, potentially creating or worsening outcomes for specific groups identified by protected attributes such as sex, race, sexual orientation, o…

FairnessLanguage ModelingLanguage ModellingLarge Language Model

LLM-Enhanced Hierarchical Heterogeneous Graph Representation Learning for Malicious Python Package Detection

2026-07-03 · Hang Gao, Xiaoyu Chen, Baoquan Cui, Zhen Tang 외 arxiv

Malicious Python packages have become a major threat to software supply chain ecosystems due to the widespread adoption of open-source repositories such as PyPI. Existing learning-based detection methods struggle to capt…

Graph Representation LearningGraph Neural Network