Copilot RAGLoad external content to feed GitHub Copilot with relevant context. This extension is a very early prototype: it just downloads a URL locally and opens it in the editor. Commands
Extension SettingsNone yet. This extension does NOT require an API key. About the projectImplementing a basic RAG architecture in VS CodeLLM, despite being impressively knowledgeable, are language processing models and thus are meant to be fed with up-to-date text context to provide relevant suggestions. For example, as of early 2024, GPT-4o won't write a proper Next.js App Router route handler and will stick to an older syntax as shown in the illustration below. The solution : providing proper context to the model. This idea is usally embodied into the "RAG" architecture. According to IBM's definition: Retrieval-augmented generation (RAG) is an AI framework for improving the quality of LLM-generated responses by grounding the model on external sources of knowledge to supplement the LLM’s internal representation of information. Copilot RAG extension is meant at implementing a very basic RAG architecture. RoadmapLoading a web page is sadly usually not enough to craft a proper prompt. This early version doesn't parse text, so don't expect significant improvements for GitHub Copilot suggestions after loading a web page. Potential improvements on our roadmpa:
AlternativesCopilot RAG aims at mimicking Cursor context loading features such as @Docs. Cline is another powerful alternative with contextualization features. Despite existing competition, this extension targets GitHub Copilot as it is provided for free to open source developers. In order to keep the experience as simple as possible, Copilot RAG does not require any API key and sticks to basic retrieval patterns that do not need a model. Read: we won't use embeddings and vector search. ContributeWe use a standard VS Code extension development workflow. The debugger allows for testing the extension live. Copilot RAG is developed by LBKE, a French training organization. Copilot RAG is not affiliated with GitHub Copilot or Microsoft Copilot. Release Notes0.0.1Initial release. 0.0.2
|