brainax

What is generative AI?

Short answer: generative AI is AI that creates something new, such as text, images, voice or video, instead of only sorting or labelling what already exists. ChatGPT, Claude and Gemini are generative: they are language models that write an answer piece by piece, each time picking the best-fitting next piece of text. Image generators draw a new picture from your description instead of looking up a ready one. Generative AI learned patterns from huge amounts of examples, so it writes smoothly, but it doesn't check facts by itself. Below is how it fits into AI as a whole, how it works and where it goes wrong.

Free course on this topicAI basics: free courseStart the course →

Generative AI vs AI vs machine learning

Think of nesting dolls. AI is any program that does "smart" things. Inside it sits machine learning (ML): programs that learn from examples instead of rules a person wrote. Inside ML are neural networks, and inside them are language models (LLMs) like ChatGPT. Each ring is narrower than the one around it.

Much of the ML already in your phone isn't generative. A spam filter learned from emails people marked as spam and answers "spam" or "not spam". Your TikTok feed learns what you watch to the end. Generative models do something different: they produce new text, pictures or sound.

More in the lesson: AI, ML, neural nets: what's what

How does generative AI work?

Text. A language model was trained on a huge amount of books, websites and code to guess which piece of text comes next. After "Bitcoin is often called digital…" it is far more likely to pick "gold" than "pizza". Then the next word, and so on. It works with tokens, pieces of text such as a short word or part of a longer one. That one simple skill grows into answering questions, translating, summarising notes and writing code.

Images. Many image models draw through diffusion: they start from pure noise and remove it step by step, checking against your prompt. The model doesn't copy a photo from the web, it draws a new one.

Voice and video. Multimodal models work with more than text. An image is cut into small squares, each turned into numbers, and handled like tokens. A voice assistant often works as a chain: speech recognition turns your voice into text, the model writes a reply, and speech synthesis reads it out loud.

More in the lessons: how a neural network thinks, a picture out of noise, images, voice, video

How a chatbot is trained: 3 stages

1. Pretraining. The model reads a huge pile of text and learns to guess the next token. The result is a base model that continues text brilliantly but can't answer questions: ask "How do I prepare for an exam?" and it might add five more questions, like a forum list.

2. Fine-tuning on examples. It keeps learning on pairs of "request → good answer" written or picked by people.

3. Human ratings (RLHF). People pick the better of two answers, and the model learns which answers people like: clear, polite, safe.

The side effect: a chatbot can be a people-pleaser and give in when you confidently push a myth.

More in the lesson: how a chatbot is trained

Where generative AI gets things wrong

What it means for you: use generative AI as a fast first draft and a helper, and check every fact that matters.

More in the lessons: how a neural network thinks, images, voice, video

FAQ

Is ChatGPT generative AI?

Yes. ChatGPT, Claude and Gemini are large language models, the narrowest ring inside AI. They generate new text by predicting the next piece of text, and many of them also work with images and voice.

What is the difference between AI and generative AI?

AI is the broad field of programs that do "smart" things, including simple rule-based ones. Generative AI is the part that creates new content such as text, images or sound, instead of only classifying or recommending.

Can generative AI be wrong?

Yes, and confidently. It builds the most plausible answer, not a checked one, and its knowledge stops at a training date. Always check facts, numbers and quotes that matter.

Understand AI from zero

The free Brainax course "AI basics" has 23 short lessons, from what AI, ML and neural networks are to prompts, RAG and AI at work. The first lesson takes a few minutes and ends with a quiz. Start the lesson

Free course on this topicAI basics: free courseStart the course →