Researchers have developed SaraCoder, a new retrieval-augmented generation framework designed to improve code completion by optimizing knowledge density within a fixed context budget. The framework employs a Hierarchical Feature Optimization module to prune an extensive pool of candidate code snippets and API definitions. It then selectively injects essential cross-file dependency definitions using an External-Aware Identifier Disambiguator. Experiments on benchmark datasets like CrossCodeEval and RepoEval-Updated demonstrate that SaraCoder surpasses existing RAG baselines such as GraphCoder and Repocoder in both code-level and identifier-level metrics, without increasing token usage. AI
IMPACT Enhances code completion efficiency by optimizing context utilization, potentially leading to faster and more accurate developer workflows.
RANK_REASON Research paper detailing a new method for code completion. [lever_c_demoted from research: ic=1 ai=1.0]
- CrossCodeEval
- External-Aware Identifier Disambiguator
- Hierarchical Feature Optimization
- Repocoder
- RepoEval-Updated
- retrieval-augmented generation
- SaraCoder
- Xiaohan Chen
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →