Introducing GitHub Copilot – our AI pair programmer
GitHub Copilot is an AI-powered tool that uses LLMs trained on vast and diverse datasets containing a significant amount of open source code from public repositories across various programming languages, including Python. By combining the model’s extensive knowledge with your code’s context, GitHub Copilot provides tailored coding suggestions, as well as chat and code analysis features, to assist in your development process.
Code completion design overview
To provide meaningful code completions, Copilot processes the input and output of the LLM, like the code completion program developed in Lab 2.3. For the input, Copilot structures a prompt based on the lines surrounding the cursor, function signatures, and additional context, such as recent edits, Git details, file names and open files. The LLM’s output is further processed, including validation to ensure it compiles successfully.
We can...