SEAICLIRAug 5, 2024

LLM Agents Improve Semantic Code Search

arXiv:2408.11058v111 citationsh-index: 3
Originality Incremental advance
AI Analysis

This addresses code search accuracy for programmers, presenting a substantial advancement through agentic LLMs and RAG, though it builds incrementally on existing RAG and ensemble methods.

The paper tackles the problem of ambiguous or context-poor prompts in semantic code search by using Retrieval Augmented Generation (RAG) agents to enhance queries with repository details, achieving a 78.2% success rate at Success@10 and 34.6% at Success@1 on the CodeSearchNet dataset.

Code Search is a key task that many programmers often have to perform while developing solutions to problems. Current methodologies suffer from an inability to perform accurately on prompts that contain some ambiguity or ones that require additional context relative to a code-base. We introduce the approach of using Retrieval Augmented Generation (RAG) powered agents to inject information into user prompts allowing for better inputs into embedding models. By utilizing RAG, agents enhance user queries with relevant details from GitHub repositories, making them more informative and contextually aligned. Additionally, we introduce a multi-stream ensemble approach which when paired with agentic workflow can obtain improved retrieval accuracy, which we deploy on application called repo-rift.com. Experimental results on the CodeSearchNet dataset demonstrate that RepoRift significantly outperforms existing methods, achieving an 78.2% success rate at Success@10 and a 34.6% success rate at Success@1. This research presents a substantial advancement in semantic code search, highlighting the potential of agentic LLMs and RAG to enhance code retrieval systems.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes