This is the reference code for main functions of LLM4Rerank accepted by WWW'25. The simple prompt templates merely serve as a functional reference.
If you feel our work is insightful and want to use the code or cite our paper, please add the following citation to your paper references.
@inproceedings{gao2025llm4rerank,
title={LLM4Rerank: LLM-based Auto-Reranking Framework for Recommendations},
author={Gao, Jingtong and Chen, Bo and Zhao, Xiangyu and Liu, Weiwen and Li, Xiangyang and Wang, Yichao and Wang, Wanyu and Guo, Huifeng and Tang, Ruiming},
booktitle={Proceedings of the ACM on Web Conference 2025},
pages={228--239},
year={2025}
}