RankLLM: A Python Package for Reranking with LLMs
On the map: Mixture-of-experts → MoE large language models
Abstract (arXiv)
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.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Placed in MoE large language models, one of 12 directions in Mixture-of-experts. First posted on arXiv 25 May 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 5; 2026: 11.
16 papers.
Sort:
By area:
- 2025Supervised Fine-Tuning or Contrastive Learning? Towards Better Multimodal LLM Rerankingcited by 6
- 2025Evaluating Large Language Models for Cross-Lingual Retrievalcited by 5
- 2026Overview of the TREC 2025 Retrieval Augmented Generation (RAG) Trackcited by 3
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Modelscited by 3
- 2026On the Effectiveness of Proposed Techniques to Reduce Energy Consumption in RAG Systems: A Controlled Experimentcited by 2
- 2026Very Efficient Listwise Multimodal Reranking for Long Documentscited by 2
- 2025Lighting the Way for BRIGHT: Reproducible Baselines with Anserini, Pyserini, and RankLLMcited by 1
- 2026SEEK: Skill-Routed Evaluation with Evolvable Knowledge for Industrial Searchcited by 1
- 2025Embedding-Based Context-Aware Rerankercited by 0
- 2025Selective LLM-Guided Regularization for Enhancing Recommendation Modelscited by 0
- 2026Diagnosing LLM Reranker Behavior Under Fixed Evidence Poolscited by 0
- 2026A Reproducibility Study of Metacognitive Retrieval-Augmented Generationcited by 0
4 more
- 2026Led to Mislead: Adversarial Content Injection for Attacks on Neural Ranking Modelscited by 0
- 2026CompRank: Efficient LLM Reranking via Token-Level Compression and Decoding-Free Scoringcited by 0
- 2026A Reranker for Orchestrating Heterogeneous Speech and Text Retrieverscited by 0
- 2026JevGPT: Thinking Fast and Slow in Autonomous Researchcited by 0
- 2026JevGPT: Thinking Fast and Slow in Autonomous Research13 Oct 2026
- 2026SEEK: Skill-Routed Evaluation with Evolvable Knowledge for Industrial Search24 Sep 2026
- 2026A Reranker for Orchestrating Heterogeneous Speech and Text Retrievers24 Aug 2026
- 2026CompRank: Efficient LLM Reranking via Token-Level Compression and Decoding-Free Scoring10 Jun 2026
- 2026Very Efficient Listwise Multimodal Reranking for Long Documents12 May 2026
- 2026Led to Mislead: Adversarial Content Injection for Attacks on Neural Ranking Models2 May 2026
- 2026A Reproducibility Study of Metacognitive Retrieval-Augmented Generation21 Apr 2026
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models16 Mar 2026
- 2026Overview of the TREC 2025 Retrieval Augmented Generation (RAG) Track10 Mar 2026
- 2026Diagnosing LLM Reranker Behavior Under Fixed Evidence Pools20 Feb 2026
- 2026On the Effectiveness of Proposed Techniques to Reduce Energy Consumption in RAG Systems: A Controlled Experiment5 Jan 2026
- 2025Selective LLM-Guided Regularization for Enhancing Recommendation Models25 Dec 2025
4 more
- 2025Supervised Fine-Tuning or Contrastive Learning? Towards Better Multimodal LLM Reranking16 Oct 2025
- 2025Embedding-Based Context-Aware Reranker15 Oct 2025
- 2025Evaluating Large Language Models for Cross-Lingual Retrieval18 Sep 2025
- 2025Lighting the Way for BRIGHT: Reproducible Baselines with Anserini, Pyserini, and RankLLM2 Sep 2025
- 2026Overview of the TREC 2025 Retrieval Augmented Generation (RAG) Trackcited by 3
- 2026On the Effectiveness of Proposed Techniques to Reduce Energy Consumption in RAG Systems: A Controlled Experimentcited by 2
- 2026Very Efficient Listwise Multimodal Reranking for Long Documentscited by 2
- 2025Embedding-Based Context-Aware Rerankercited by 0
- 2026A Reproducibility Study of Metacognitive Retrieval-Augmented Generationcited by 0
- 2026CompRank: Efficient LLM Reranking via Token-Level Compression and Decoding-Free Scoringcited by 0
- 2026A Reranker for Orchestrating Heterogeneous Speech and Text Retrieverscited by 0
- 2026A Reranker for Orchestrating Heterogeneous Speech and Text Retrievers24 Aug 2026
- 2026CompRank: Efficient LLM Reranking via Token-Level Compression and Decoding-Free Scoring10 Jun 2026
- 2026Very Efficient Listwise Multimodal Reranking for Long Documents12 May 2026
- 2026A Reproducibility Study of Metacognitive Retrieval-Augmented Generation21 Apr 2026
- 2026Overview of the TREC 2025 Retrieval Augmented Generation (RAG) Track10 Mar 2026
- 2026On the Effectiveness of Proposed Techniques to Reduce Energy Consumption in RAG Systems: A Controlled Experiment5 Jan 2026
- 2025Embedding-Based Context-Aware Reranker15 Oct 2025
- 2026JevGPT: Thinking Fast and Slow in Autonomous Researchcited by 0
- 2026JevGPT: Thinking Fast and Slow in Autonomous Research13 Oct 2026
- 2025Evaluating Large Language Models for Cross-Lingual Retrievalcited by 5
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Modelscited by 3
- 2026SEEK: Skill-Routed Evaluation with Evolvable Knowledge for Industrial Searchcited by 1
- 2026Diagnosing LLM Reranker Behavior Under Fixed Evidence Poolscited by 0
- 2026Led to Mislead: Adversarial Content Injection for Attacks on Neural Ranking Modelscited by 0
- 2026SEEK: Skill-Routed Evaluation with Evolvable Knowledge for Industrial Search24 Sep 2026
- 2026Led to Mislead: Adversarial Content Injection for Attacks on Neural Ranking Models2 May 2026
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models16 Mar 2026
- 2026Diagnosing LLM Reranker Behavior Under Fixed Evidence Pools20 Feb 2026
- 2025Evaluating Large Language Models for Cross-Lingual Retrieval18 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025LLM4Ranking: An Easy-to-use Framework of Utilizing Large Language Models for Document Reranking
- 2025Rankify: A Comprehensive Python Toolkit for Retrieval, Re-Ranking, and Retrieval-Augmented Generation
- 2026LLM-Confidence Reranker: A Training-Free Approach for Enhancing Retrieval-Augmented Generation Systems
- 2025LLM Optimization Unlocks Real-Time Pairwise Reranking
- 2025Language Model Re-rankers are Fooled by Lexical Similarities
- 2025RankArena: A Unified Platform for Evaluating Retrieval, Reranking and RAG with Human and LLM Feedback
- 2024Assessing generalization capability of text ranking models in Polish
- 2024Enhancing Q&A Text Retrieval with Ranking Models: Benchmarking, fine-tuning and deploying Rerankers for RAG