What generative AI actually is
Generative AI is a subset of deep learning that creates new content - text, images, audio, video, or code - rather than just predicting a label or a number.
It learns patterns from huge training datasets and uses that learned distribution to produce novel, often unique, outputs each time you ask.
Most modern generative AI for text and code runs on transformer-based large language models (LLMs), which use a self-attention mechanism to weigh the relevance of each word against every other word in the input.
Foundation models (FMs)
A foundation model is a very large model pre-trained on broad, unlabelled data that can be adapted to many downstream tasks without retraining from scratch.
Key traits examiners test: FMs are multi-purpose (not built for one narrow job), they need adaptation (prompting, fine-tuning, or RAG) to shine at a specific task, and they get better with more data and compute (scale).
Amazon Bedrock is AWS's managed service for accessing FMs from multiple providers (Anthropic, Meta, Mistral, Cohere, Stability AI, Amazon Titan/Nova) through one API - no infrastructure to manage.
Core generative AI concepts
- Tokens: the chunks (words or word-pieces) a model reads and generates; pricing and context limits are measured in tokens, not words.
- Embeddings: numerical vector representations of meaning, used for search, clustering, and RAG retrieval.
- Prompt: the input instruction; prompt engineering is refining wording to get better outputs without changing the model.
- Context window: the maximum amount of text (in tokens) a model can consider at once - too long and older content gets truncated or ignored.
- Hallucination: when a model generates plausible-sounding but false or unsupported content - a known limitation, not a bug you can fully eliminate.
- Temperature: a setting controlling randomness/creativity of output - low temperature = more deterministic, high = more varied.
Common exam trap
Generative AI is NOT the same as traditional/discriminative ML. Discriminative models classify or predict from existing data (is this email spam?); generative models create brand-new content that did not exist before. Know which use case fits which.
Business use cases (exam favourites)
- Content creation: marketing copy, images, video scripts, summarisation.
- Chatbots and virtual assistants (e.g. Amazon Q).
- Code generation and review (e.g. Amazon Q Developer).
- Search and personalisation, using embeddings/RAG.
- Summarising long documents and translating text.
Limitations to remember
High compute cost, interpretability challenges (it's hard to explain exactly why an output was produced), potential for bias inherited from training data, and hallucination risk - always mentioned as trade-offs against generative AI's flexibility.
What is generative AI?
A subset of deep learning that creates new content (text, image, audio, video, code) by learning patterns from training data.
tap to reveal
How does generative AI differ from discriminative/traditional ML?
Generative AI creates new content; discriminative ML classifies or predicts labels/values from existing data.
tap to reveal
What is a foundation model (FM)?
A large model pre-trained on broad, unlabelled data that can be adapted to many downstream tasks without training from scratch.
tap to reveal
What is Amazon Bedrock?
A fully managed AWS service giving API access to foundation models from multiple providers (Anthropic, Meta, Mistral, Cohere, Stability AI, Amazon Titan/Nova) with no infrastructure to manage.
tap to reveal
What architecture underpins most modern generative AI for text?
The transformer architecture, using a self-attention mechanism to weigh relevance between all words in the input.
tap to reveal
What is a token in generative AI?
A chunk of text (word or word-piece) that a model reads or generates; the unit used for pricing and context limits.
tap to reveal
What is the context window?
The maximum number of tokens a model can consider at once in a single input/output interaction.
tap to reveal
What are embeddings used for?
Numerical vector representations of meaning, used for semantic search, clustering, and retrieval (e.g. in RAG).
tap to reveal
What is hallucination in generative AI?
When a model produces plausible-sounding but false or unsupported content - an inherent limitation of generative models.
tap to reveal
What does the temperature setting control?
The randomness of generated output - low temperature gives deterministic/focused results, high temperature gives more varied/creative results.
tap to reveal
What is prompt engineering?
The practice of refining the wording and structure of a prompt to get better model outputs without changing or retraining the model.
tap to reveal
What is Amazon Q Developer used for?
AWS's generative AI assistant focused on code generation, code review, and developer productivity.
tap to reveal
Name three business use cases for generative AI.
Content creation, chatbots/virtual assistants, and code generation (also valid: summarisation, translation, personalised search).
tap to reveal
What limitation does scaling (more data/compute) address in FMs?
Generally improves FM performance and capability, but increases compute cost and does not remove hallucination risk.
tap to reveal
Why is interpretability listed as a generative AI limitation?
Because it's difficult to explain exactly why a model produced a specific output, making outputs hard to fully audit or trust blindly.
tap to reveal