Maximizing RAG efficiency: A comparative analysis of RAG methods


Şakar T., EMEKCİ H.

Natural Language Processing, cilt.31, sa.1, ss.1-25, 2025 (SCI-Expanded, AHCI, SSCI, Scopus)

  • Yayın Türü: Makale / Tam Makale
  • Cilt numarası: 31 Sayı: 1
  • Basım Tarihi: 2025
  • Doi Numarası: 10.1017/nlp.2024.53
  • Dergi Adı: Natural Language Processing
  • Derginin Tarandığı İndeksler: Science Citation Index Expanded (SCI-EXPANDED), Arts and Humanities Citation Index (AHCI), Social Sciences Citation Index (SSCI), Scopus
  • Sayfa Sayıları: ss.1-25
  • Anahtar Kelimeler: Contextual Compression, Embedding Models, Large Language Models, Retrieval-Augmented Generation, Vector Databases
  • Hacettepe Üniversitesi Adresli: Evet

Özet

This paper addresses the optimization of retrieval-augmented generation (RAG) processes by exploring various methodologies, including advanced RAG methods. The research, driven by the need to enhance RAG processes as highlighted by recent studies, involved a grid-search optimization of 23,625 iterations. We evaluated multiple RAG methods across different vectorstores, embedding models, and large language models, using cross-domain datasets and contextual compression filters. The findings emphasize the importance of balancing context quality with similarity-based ranking methods, as well as understanding tradeoffs between similarity scores, token usage, runtime, and hardware utilization. Additionally, contextual compression filters were found to be crucial for efficient hardware utilization and reduced token consumption, despite the evident impacts on similarity scores, which may be acceptable depending on specific use cases and RAG methods.