Generative AI, defined
Generative AI is a branch of machine learning whose models produce new content — a paragraph, a SQL query, a product photo, a voice-over — rather than just labelling or scoring existing data. You describe what you want in natural language (a prompt), and the model generates an output that statistically fits that request.
The models behind it are usually called foundation models: very large neural networks trained once on broad data, then adapted to many tasks. A single foundation model can draft a contract clause, explain a Python error and translate a support ticket without being retrained for each job. That generality is what makes generative AI different from the narrow, single-purpose models most companies built before 2022.
Text
Chat assistants, summarisation, drafting, extraction, translation — powered by LLMs.
Code
Code completion, test generation, query writing, refactoring and debugging help.
Images & video
Text-to-image and text-to-video, image editing and upscaling — mostly diffusion models.
Audio
Speech synthesis, voice cloning, music generation and transcription.
How generative AI works
Every generative model follows the same two-phase life: it is trained on data to learn patterns, then it generates (also called inference) when you send it a prompt.
1. Pre-training: learning the patterns
A large language model is shown trillions of words and trained on one deceptively simple objective: predict the next token (a token is a word or piece of a word — see what tokens are). To get good at that across code, legal text, recipes and physics papers, the network has to internalise grammar, facts, reasoning patterns and style. The result is stored as billions of numerical parameters.
2. Fine-tuning and alignment: learning to be helpful
A raw pre-trained model just continues text. To turn it into an assistant, it’s further trained on examples of good instructions and answers, and then refined with human or AI feedback (techniques like RLHF) so it follows instructions, refuses harmful requests and answers in a useful format.
3. Inference: generating your answer
When you send a prompt, the model calculates a probability for every possible next token, picks one (settings like temperature and top-p control how adventurous that pick is), appends it, and repeats until the answer is complete. That’s why responses stream in word by word — and why the model can sound confident while being wrong: it optimises for a plausible continuation, not a verified fact.
Mental model: an LLM is less like a database and more like an extremely well-read colleague writing from memory. Brilliant at language and reasoning; unreliable on precise facts unless you hand it the source material.
The main types of generative models
| Model type | How it generates | Typical use |
|---|---|---|
| Transformer LLMs | Predict the next token using attention over the whole context | Chat, writing, code, reasoning, agents |
| Diffusion models | Start from noise and denoise step by step toward an image matching the prompt | Image and video generation, editing |
| Multimodal models | Transformers that accept and/or produce several types (text + image + audio) | Reading charts and screenshots, voice assistants |
| GANs | A generator and a discriminator compete until outputs look real | Earlier image synthesis, data augmentation |
| VAEs | Compress data into a latent space, then decode new samples from it | Building block inside many image models |
Generative AI vs traditional AI
“Traditional” (discriminative) machine learning answers a narrow question about data you already have: is this transaction fraud? what will sales be next month? which segment does this customer belong to? Generative AI produces something new. Most real systems use both.
| Traditional ML | Generative AI | |
|---|---|---|
| Output | A label, score or number | New text, code, image, audio |
| Training | Your own labelled data, one model per task | Pre-trained foundation model, adapted with prompts, RAG or fine-tuning |
| Data needed to start | Thousands of labelled examples | Often zero — just a good prompt |
| Evaluation | Accuracy, precision, RMSE — clear metrics | Harder: quality, faithfulness, tone — needs evals and human review |
| Example | Churn prediction model | Drafting the win-back email to at-risk customers |
Where generative AI is genuinely useful at work
- Summarising and extracting: turn 40-page policy documents, call transcripts or ticket threads into structured summaries and fields (great with JSON-schema outputs).
- Drafting: first versions of emails, reports, user stories, release notes and documentation.
- Question answering over your documents: internal knowledge assistants built with retrieval-augmented generation (RAG).
- Code and data work: writing and explaining SQL or Python, generating tests, converting between formats.
- Classification without training data: routing support tickets or tagging feedback using only instructions and a few examples.
- Automation with agents: multi-step workflows where the model calls tools — see how AI agents work.
Limitations you must know
Hallucinations
Fluent but false answers. Ground the model in sources and verify. How to reduce them →
Knowledge cutoff
Models only know their training data up to a date. Fresh facts need search, tools or RAG.
Privacy & security
Check where prompts go, data retention terms, and prompt-injection risks before sending sensitive data.
Cost & latency
You pay per token and wait per token. Long contexts get expensive fast. Estimate costs →
Check your understanding
How to start learning generative AI
- Get fluent at prompting. Learn to give role, context, examples and an output format. Start with our prompt engineering guide and the Prompt Builder.
- Understand the mechanics. Tokens, context windows, temperature and cost — they explain most “weird” model behaviour.
- Build a RAG app. It’s the most common production pattern. Read What Is RAG? then experiment with the RAG Chunking Visualizer.
- Move to agents and tools. Let models call APIs and act — with guardrails.
- Prove it. Practise with challenges, take the Skill Check, and follow a structured roadmap.
Discussion