Beyond Code Snippets: Benchmarking LLMs on Repository-Level Question Answering
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have shown impressive capabilities across software engineering tasks, including question answering (QA). However, most studies and benchmarks focus on isolated functions or single-file snippets, overlooking the challenges of real-world program comprehension, which often spans multiple files and system-level dependencies. In this work, we introduce StackRepoQA, the first multi-project, repository-level question answering dataset constructed from 1,318 real developer questions and accepted answers across 134 open-source Java projects. Using this dataset, we systematically evaluate two widely used LLMs (Claude 3.5 Sonnet and GPT-4o) under both direct prompting and agentic configurations. We compare baseline performance with retrieval-augmented generation methods that leverage file-level retrieval and graph-based representations of structural dependencies. Our results show that LLMs achieve moderate accuracy at baseline, with performance improving when structural signals are incorporated. Nonetheless, overall accuracy remains limited for repository-scale comprehension. The analysis reveals that high scores often result from verbatim reproduction of Stack Overflow answers rather than genuine reasoning. To our knowledge, this is the first empirical study to provide such evidence in repository-level QA. We release StackRepoQA to encourage further research into benchmarks, evaluation protocols, and augmentation strategies that disentangle memorization from reasoning, advancing LLMs as reliable tool for repository-scale program comprehension.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 31 of its 65 references that are in the map. First posted on arXiv 27 Mar 2026.
Builds on
31 of 65 references.
References · 31
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2023Making Retrieval-Augmented Language Models Robust to Irrelevant Contextcited by 364
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2017Why We Need New Evaluation Metrics for NLGcited by 232
- 2022FaithDial: A Faithful Benchmark for Information-Seeking Dialoguecited by 108
- 2023A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challengescited by 75
19 more
- 2025Can LLMs Replace Human Evaluators? An Empirical Study of LLM-as-a-Judge in Software Engineeringcited by 64
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
- 2025A Self-Improving Coding Agentcited by 58
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2025LongCodeBench: Evaluating Coding LLMs at 1M Context Windowscited by 37
- 2025The Distracting Effect: Understanding Irrelevant Passages in RAGcited by 32
- 2016Understanding the Factors that Impact the Popularity of GitHub Repositoriescited by 27
- 2025From Prompts to Templates: A Systematic Prompt Template Analysis for Real-world LLMappscited by 19
- 2025CoReQA: Uncovering Potentials of Language Models in Code Repository Question Answeringcited by 17
- 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completioncited by 15
- 2019An Empirical Study of Obsolete Answers on Stack Overflowcited by 14
- 2023Practices and Challenges of Using GitHub Copilot: An Empirical Studycited by 13
- 2024The Prompt Canvas: A Literature-Based Practitioner Guide for Creating Effective Prompts in Large Language Modelscited by 4
- 2024Developers' Perceptions on the Impact of ChatGPT in Software Development: A Surveycited by 3
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Modelscited by 3
- 2025Querying Large Automotive Software Models: Agentic vs. Direct LLM Approachescited by 3
- 2025Are We on the Same Page? Examining Developer Perception Alignment in Open Source Code Reviewscited by 2
- 2024Context Awareness Gate For Retrieval Augmented Generationcited by 1
Built on by
Citing papers per year: 2026: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Synergizing LLMs and Knowledge Graphs: A Novel Approach to Software Repository-Related Question Answering
- 2025Never Come Up Empty: Adaptive HyDE Retrieval for Improving LLM Developer Support
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?
- 2026Robustness and Reasoning Fidelity of Large Language Models in Long-Context Code Question Answering
- 2025Encyclo-K: Evaluating LLMs with Dynamically Composed Knowledge Statements
- 2023DIVKNOWQA: Assessing the Reasoning Ability of LLMs via Open-Domain Question Answering over Knowledge Base and Text
- 2023ToolQA: A Dataset for LLM Question Answering with External Tools
- 2026Human-Aligned Enhancement of Programming Answers with LLMs Guided by User Feedback