HyRACC: A Hybrid Retrieval-Augmented Framework for More Efficient Code Completion

Retrieval-Augmented Generation (RAG) approaches have significantly advanced code completion tasks, addressing limitations like the use of updated third-party libraries and new project dependencies. However, existing RAG methods often face challenges in balancing retrieval costs and completion accuracy. In this paper, we introduce HyRACC, a hybrid retrieval-augmented framework designed to enhance code completion efficiency. HyRACC incorporates a novel approach that uses hybrid databases at both block-level and token-level, coupled with a two-step retrieval scheme. This structure not only ensures high retrieval accuracy but also boosts response speed and reduces storage requirements. Our experimental results demonstrate that HyRACC improves code completion accuracy while optimizing latency and storage usage. Remarkably, HyRACC operates independently of model parameters, which facilitates its integration with various models and domains. This flexibility and efficiency make HyRACC particularly suitable for integration into plugins or local deployment, meeting diverse user needs for personalized code completion.

Authors

Institutions

Publication Details

Published
2025-04-27
DOI
https://doi.org/10.1109/forge66646.2025.00013
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

HyRACC: A Hybrid Retrieval-Augmented Framework for More Efficient Code Completion

Bin Luo, Yijun Feng, J. S. Shang, C. Li
Natural Language Processing Techniques
article

HyRACC: A Hybrid Retrieval-Augmented Framework for More Efficient Code Completion

Bin Luo, Yijun Feng, J. S. Shang, C. Li
article en

Abstract

Retrieval-Augmented Generation (RAG) approaches have significantly advanced code completion tasks, addressing limitations like the use of updated third-party libraries and new project dependencies. However, existing RAG methods often face challenges in balancing retrieval costs and completion accuracy. In this paper, we introduce HyRACC, a hybrid retrieval-augmented framework designed to enhance code completion efficiency. HyRACC incorporates a novel approach that uses hybrid databases at both block-level and token-level, coupled with a two-step retrieval scheme. This structure not only ensures high retrieval accuracy but also boosts response speed and reduces storage requirements. Our experimental results demonstrate that HyRACC improves code completion accuracy while optimizing latency and storage usage. Remarkably, HyRACC operates independently of model parameters, which facilitates its integration with various models and domains. This flexibility and efficiency make HyRACC particularly suitable for integration into plugins or local deployment, meeting diverse user needs for personalized code completion.

Nanjing University (CN)
Openalex Percentile: Top 92%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

HyRACC: A Hybrid Retrieval-Augmented Framework for More Efficient Code Completion — Bin Luo, Yijun Feng, et al. · (2025) | TGRS Research Map | TGRS