FlexRAG: A Flexible and Comprehensive Framework for Retrieval-Augmented Generation

Zhang Zhuocheng, Yang Feng, Min Zhang


Abstract
Retrieval-Augmented Generation (RAG) plays a pivotal role in modern large language model applications, with numerous existing frameworks offering a wide range of functionalities to facilitate the development of RAG systems.However, we have identified several persistent challenges in these frameworks, including lack of new techniques, difficulties in algorithm reproduction and sharing, and high system overhead.To address these limitations, we introduce **FlexRAG**, an open-source framework specifically designed for research and prototyping.FlexRAG supports text-based, multimodal, and network-based RAG, providing comprehensive lifecycle support alongside efficient asynchronous processing and persistent caching capabilities.By offering a robust and flexible solution, FlexRAG enables researchers to rapidly develop, deploy, and share advanced RAG systems.Our toolkit and resources are available at https://github.com/ictnlp/FlexRAG.
Anthology ID:
2025.acl-demo.60
Volume:
Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations)
Month:
July
Year:
2025
Address:
Vienna, Austria
Editors:
Pushkar Mishra, Smaranda Muresan, Tao Yu
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
621–631
Language:
URL:
https://preview.aclanthology.org/ingestion-acl-25/2025.acl-demo.60/
DOI:
Bibkey:
Cite (ACL):
Zhang Zhuocheng, Yang Feng, and Min Zhang. 2025. FlexRAG: A Flexible and Comprehensive Framework for Retrieval-Augmented Generation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), pages 621–631, Vienna, Austria. Association for Computational Linguistics.
Cite (Informal):
FlexRAG: A Flexible and Comprehensive Framework for Retrieval-Augmented Generation (Zhuocheng et al., ACL 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingestion-acl-25/2025.acl-demo.60.pdf
Copyright agreement:
 2025.acl-demo.60.copyright_agreement.pdf