mlsanityData to 14 Oct 2026

DeepCodeSeek: Real-Time API Retrieval for Context-Aware Code Generation

arXiv 2509.25716 ↗First posted 30 Sep 2025cs.SE cs.AI cs.IRcited by 0

Not on the map. Why?

Abstract (arXiv)

Current search techniques are limited to standard RAG query-document applications. In this paper, we propose a novel technique to expand the code and index for predicting the required APIs, directly enabling high-quality, end-to-end code generation for auto-completion and agentic AI applications. We address the problem of API leaks in current code-to-code benchmark datasets by introducing a new dataset built from real-world ServiceNow Script Includes that capture the challenge of unclear API usage intent in the code. Our evaluation metrics show that this method achieves 87.86% top-40 retrieval accuracy, allowing the critical context with APIs needed for successful downstream code generation. To enable real-time predictions, we develop a comprehensive post-training pipeline that optimizes a compact 0.6B reranker through synthetic dataset generation, supervised fine-tuning, and reinforcement learning. This approach enables our compact reranker to outperform a much larger 8B model while maintaining 2.5x reduced latency, effectively addressing the nuances of enterprise-specific code without the computational overhead of larger models.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 10 of its 15 references that are in the map. First posted on arXiv 30 Sep 2025.

Builds on

10 of 15 references.

References · 10

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  3. 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 517
  4. 2023Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agentscited by 360
  5. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 263
  6. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
  7. 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 65
  8. 2024CoIR: A Comprehensive Benchmark for Code Information Retrieval Modelscited by 60
  9. 2025REARANK: Reasoning Re-ranking Agent via Reinforcement Learningcited by 24
  10. 2024Building A Coding Assistant via the Retrieval-Augmented Language Modelcited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond
  2. 2025SpareCodeSearch: Searching for Code Context When You Have No Spare GPU
  3. 2024LLM Agents Improve Semantic Code Search
  4. 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding
  5. 2024APIGen: Generative API Method Recommendation
  6. 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation
  7. 2024Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learning
  8. 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agents