Code Suggestions
AI-generated code completion and generation within IDEs
Overview
Code Suggestions is one of the main features developed by the Code Creation group. It provides AI-generated code within IDEs through two main capabilities:
- Code Completion: Short AI-generated suggestions intended to complete an existing line or block of code
- Code Generation: Longer AI-generated suggestions intended to create entire functions, classes, code blocks, etc.
Key Concepts
A lot of the terms we use in this area sound similar and can be confusing at first. Here are the basic terms we use:
- Code Creation: The group name and a collection of features relating to providing AI generated code
- Code Suggestions: A feature within Code Creation that provides AI-generated code within an IDE
- Code Completion: A short AI-generated suggestion intended to complete an existing line or block of code
- Code Generation: A longer AI-generated suggestion intended to create entire functions, classes, code blocks, etc.
- Duo Chat: Another feature that interacts with GitLab Duo Chat to write new code, refactor existing code, or scan code for vulnerabilities
If it helps, here are these terms in a diagram:
stateDiagram
direction LR
state "Code Creation" as creation
state "Code Suggestions" as suggestions
state "Code Completion" as completion
state "Code Generation" as generation
state "Duo Chat Features" as duo
creation --> suggestions
creation --> duo
suggestions --> completion
suggestions --> generation
Technical Implementation
For detailed technical information about how Code Suggestions works, including architecture diagrams and API details, see the Engineering Overview.
Dashboards and Monitoring
Documentation
Development guidelines for engineers working on Code Suggestions features
Technical and engineering overview of the Code Suggestions feature