# CGenAI - Code Generative Artificial Intelligence
AI that generate code based on [[LLM - Large Language Model|LLM]] and [[NLP - Natural Language Processing|NLP]].
## What it is
CGenAI is a tool that predicts what's comming next in a software programming context. Anything that seems to do more that this is layers of configuration on top of this very basic behavior.
## How does it work
If someone enter the text `user_name = input(`, it's easy to guess what's comming next. The AI will probably complete with `"What's your name?")`. It is possible for an AI to output something that seems to be what the user wanted because it learned patterns on a huge volume of data, including codebases, websites, documentation etc.
### The case of ChatGPT
ChatGPT is a general GenAI, meaning it is not specialized for code, but this is the first layer. Internally, and depending on when and what versions are used, it can now use specialized models that are more efficient for specific task. The goal is not to provide better output, but same level of output expected compared to other topics but less expensive to run for the company.
So, if you ask a code related question, even to a generalize ChatGPT, you'll probably end-up using a dedicated model.
### ChatGPT is a GenAI not an AGI
ChatGPT is a GenAI, made to predict what's comming next after an ordered list of words (or any kind of character). It is not an AGI capable of reasonning, at all, even if it seems like it. For those knowing what System A and System B is in cognitive science, consider that AGI is an AI using System B, while GenAI (such as ChatGPT) is using System A, all the time….
---
Bibliography:
- [Title - website.com](need bibliography)