Can you fill in the missing line?
Try a completion, then change the retrieval method to see which code it would bring into the prompt.
Retrieval method
Suggestion versus reference
Original teaching examples with scripted suggestions. The page does not run a model.
What retrieval changes
AIRCoder ranks repository snippets using three kinds of evidence.
QueryCode at the cursor
Text similarityFind similar snippets
DependenciesFind relevant symbols
StructureCompare enclosing code
Ranked contextSnippets for the generator
Published results
Accuracy and retrieval latency reported by Shi, Gao, and Gao in the AIRCoder paper.
Swapping in DraCo dependency extraction
Code exact match with StarCoder2-3B
Only the dependency extractor changes. Table 4
Time spent on retrieval
Mean seconds per query
AIRCoder spent 0.320 s per query on dependency extraction. Table 7
Explore all Table 4 ablations
The DraCo rows use its static dependency extractor inside AIRCoder. Code EM is exact match, ES is edit similarity, and ID metrics score identifiers.
Papers
- AIRCoderShi, Gao & Gao · ACL 2026Adaptive fusion of retrieval signals
- DraCoCheng, Wu & Hu · ACL 2024Repository dependency context from static analysis
- RepoformerWu et al. · ICML 2024Selective retrieval for code completion
- RepoCoderZhang et al. · EMNLP 2023Iterative retrieval and generation