Evidence Hub

Evaluating Retrieval-Augmented Generation Strategies for Repository-Level Code Understanding

Anees Rehman

Zenodo (CERN European Organization for Nuclear Research), 2026

Abstract

Retrieval-Augmented Generation (RAG) is increasingly employed to ground large language models in vast code repositories. However, performance degrades when resolving repository-level dependencies and multi-file code contexts. This study evaluates dense, sparse (BM25), and hybrid Reciprocal Rank Fusion (RRF) retrieval strategies across Python, Java, and C++ codebases using an LLM-as-a-Judge evaluation framework.

Read the paper

Related studies

Go deeper in Evidence Hub

Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.

Open this study Sign up free