arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.15285cs.AI
收藏

上下文增强的多模型编程(CAMP):一种混合本地-云 Copilot 框架

Contextual Augmented Multi-Model Programming (CAMP): A Hybrid Local-Cloud Copilot Framework

Nanyang Technological University(南洋理工大学);City University of Hong Kong(香港城市大学)

Yuchen Wang, Shangxin Guo, Chee Wei Tan

AI总结:

提出CAMP框架,通过本地RAG模型检索代码库上下文以优化云模型,在Xcode中实现代码补全等任务,验证了混合本地-云架构在AI辅助编程中的有效性。

摘要:

基于云的大型语言模型(LLMs)的进步彻底改变了AI辅助编程。然而,由于计算需求和沙盒限制,将它们集成到某些本地开发环境中(如Apple软件生态系统内的iOS应用和macOS)仍具挑战。本文提出CAMP,一个多模型AI辅助编程框架,包含一个采用检索增强生成(RAG)的本地模型,从代码库中检索上下文信息以构建上下文感知的提示,从而优化云模型性能,增强LLMs在本地集成开发环境(IDEs)中的能力。该方法在Copilot for Xcode中实现,这是一款为Xcode定制的AI辅助编程工具,采用RAG模块解决软件约束并支持多种生成式编程任务,包括自动代码补全、文档生成、错误检测和智能用户代理交互。生成代码质量的客观实验和用户采用的主观实验结果共同证明了该系统的初步成功,标志着其对AI辅助编程领域的重大贡献。

英文摘要:

The advancements in cloud-based Large Languages Models (LLMs) have revolutionized AI-assisted programming. However, their integration into certain local development environments like ones within the Apple software ecosystem (e.g., iOS apps, macOS) remains challenging due to computational demands and sandboxed constraints. This paper presents CAMP, a multi-model AI-assisted programming framework that consists of a local model that employs Retrieval-Augmented Generation (RAG) to retrieve contextual information from the codebase to facilitate context-aware prompt construction thus optimizing the performance of the cloud model, empowering LLMs' capabilities in local Integrated Development Environments (IDEs). The methodology is actualized in Copilot for Xcode, an AI-assisted programming tool crafted for Xcode that employs the RAG module to address software constraints and enables diverse generative programming tasks, including automatic code completion, documentation, error detection, and intelligent user-agent interaction. The results from objective experiments on generated code quality and subjective experiments on user adoption collectively demonstrate the pilot success of the proposed system and mark its significant contributions to the realm of AI-assisted programming.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑