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.
Characterizing Web Search by Conversational LLM Agents: From Search Decisions and Strategies to Results and Responses
Max Planck Institute for Software Systems(马克斯·普朗克软件系统研究所);Saarland University(萨尔大学);Laboratoire d’Informatique de l’École Polytechnique(巴黎综合理工学院计算机科学实验室);Seoul National University(首尔大学);Ruhr University Bochum(波鸿鲁尔大学);Microsoft(微软)
Mitigating Context Interference for Reliable and Efficient Search Agents
The Chinese University of Hong Kong(香港中文大学);University College London(伦敦大学学院);Zhejiang University(浙江大学);The University of Hong Kong(香港大学);The University of Edinburgh(爱丁堡大学)
Token-Flow Firewall: Semantic Runtime Auditing for Persistent AI Agents
State Key Laboratory of AI Safety(人工智能安全国家重点实验室);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学北京校区)