Relative Positioning Based Code Chunking Method For Rich Context Retrieval In Repository Level Code Completion Task With Code Language Model
Not on the map. Why?
Abstract (arXiv)
Code completion can help developers improve efficiency and ease the development lifecycle. Although code completion is available in modern integrated development environments (IDEs), research lacks in determining what makes a good context for code completion based on the information available to the IDEs for the large language models (LLMs) to perform better. In this paper, we describe an effective context collection strategy to assist the LLMs in performing better at code completion tasks. The key idea of our strategy is to preprocess the repository into smaller code chunks and later use syntactic and semantic similarity-based code chunk retrieval with relative positioning. We found that code chunking and relative positioning of the chunks in the final context improve the performance of code completion tasks.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 10 of its 17 references that are in the map. First posted on arXiv 7 Oct 2025.
Builds on
10 of 17 references.
References · 10
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2022Language Models (Mostly) Know What They Knowcited by 1,856
- 2024The Faiss librarycited by 376
- 2024Does Prompt Formatting Have Any Impact on LLM Performance?cited by 141
- 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 65
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
- 2024Language Models for Code Completion: A Practical Evaluationcited by 39
- 2022Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systemscited by 13
- 2024Context Composing for Full Line Code Completioncited by 4
- 2024Full Line Code Completion: Bringing AI to Desktopcited by 4
Built on by
Not cited yet.