Aller au contenu
Londres, Royaume-Uni · Fondé en 1994
Français

Unit 2: Generative AI and Large Language Models

How generative AI creates new text, images and other content, how chat assistants built on large language models work, and why they can be both very useful and confidently wrong.

Unit 2 of 5 · about 54 minutes

2.1 What generative AI is

Most of the AI systems described in the previous unit are designed to analyse or predict: to sort emails, flag transactions or forecast demand. Generative AI is different in one important respect. It produces new content, such as text, images, audio, video or computer code, in response to an instruction. When you ask a chat assistant to draft a letter, or an image generator to create an illustration of a lighthouse at dusk, you are using generative AI.

Generative AI is not a separate field from machine learning. It is built with the same underlying ideas, particularly deep learning, but trained in a way that allows the model to create outputs rather than simply choose between a fixed set of labels.

Main types of generative AI

TypeWhat it producesTypical workplace uses
TextWritten content and conversationDrafting emails, summarising reports, answering questions
ImagePictures, illustrations, design ideasConcept sketches, presentation visuals, mock-ups
AudioSynthetic speech, music, transcriptionVoice-overs, meeting transcripts, accessibility
VideoShort clips and animationsTraining material, marketing drafts
CodeSoftware instructions and formulasSpreadsheet formulas, simple scripts, explaining code

Many modern tools are "multimodal", meaning they can work across several of these types at once. For example, you might upload a photograph of a whiteboard and ask a chat assistant to turn the notes into a tidy action list, or describe a chart and ask for it to be created from a spreadsheet.

Foundation models

Generative AI is usually built on what are called foundation models. These are very large models trained on vast and varied collections of data, such as text from books, websites and other sources, or large libraries of images with descriptions. Because they learn broad patterns rather than one narrow task, they can then be adapted to many uses: answering customer questions, drafting legal summaries, writing product descriptions and much more.

Training a foundation model requires huge amounts of computing power and is carried out by a relatively small number of technology providers. Most organisations do not train their own. Instead, they use these models through applications, such as chat assistants or features built into office software, or through services that allow them to connect a model to their own systems and documents.

Why generative AI felt like a turning point

Generative techniques have been developing for many years, but from late 2022 public chat assistants made them available to anyone with a web browser. Three features explain why this felt like a step change:

  • Natural language instructions. People could simply describe what they wanted in ordinary words, without learning special commands.
  • Breadth. The same tool could help with a cover letter, a spreadsheet formula, a recipe and a summary of a policy document.
  • Fluency. The outputs read as if a capable person had written them, which made them immediately useful, and also made errors harder to spot.

Since then, these tools have been built into email, word processing, design, customer service and many other everyday applications, so that people increasingly use generative AI without opening a separate tool.

Remember: Generative AI creates content that is plausible, based on patterns it has learned. Plausible is not the same as true, original or appropriate, which is why human judgement remains essential.

Generative and predictive AI together

In practice, organisations often combine both kinds. A customer service system might use predictive AI to route a message to the right team and generative AI to draft a suggested reply. An insurer might use predictive models to estimate risk and a chat assistant to explain the policy to customers in plain language. Recognising which part of a system is predicting and which part is generating helps you understand where different kinds of error might arise.

In practice

Look at the software you already use at work. Many word processors, email clients, presentation tools and meeting platforms now include features that draft, summarise or rewrite content. Identify one such feature and try it on a low-risk task, such as summarising a public article or suggesting a clearer title for a document you have written. Notice what it does well and where you would want to change its output. This simple habit of trying, observing and adjusting will serve you well throughout the rest of the course.

2.2 How chat assistants and large language models work

The chat assistants that many people now use daily are built on large language models, often shortened to LLMs. Understanding, in broad terms, how these models work makes it much easier to use them well and to anticipate their mistakes. No mathematics is required.

Predicting the next piece of text

At heart, a large language model is trained to do one thing: predict what text is likely to come next. Text is broken into small units called tokens, which are often whole words, parts of words or punctuation marks. During training, the model is shown enormous amounts of text and repeatedly asked to predict the next token. Each time it is wrong, its internal parameters are adjusted slightly. After this process has been repeated an enormous number of times, the model becomes extremely good at producing text that fits the patterns of language it has seen.

When you type a question, the model generates a reply one token at a time, each choice based on your question and everything it has written so far. This simple mechanism, applied at vast scale, produces surprisingly capable behaviour: summarising, translating, reasoning through problems, writing in different styles and answering questions on many subjects.

Most modern language models use an architecture called the transformer, introduced by researchers in 2017. Its key strength is the ability to consider how all the words in a passage relate to one another, which helps the model keep track of meaning across long pieces of text.

From raw model to helpful assistant

A model trained only to predict text is not yet a useful assistant. Developers typically add further stages:

  1. Pre-training on very large amounts of general text, which gives the model its broad knowledge of language and facts.
  2. Fine-tuning on carefully prepared examples of good questions and answers, which teaches it to follow instructions and respond helpfully.
  3. Learning from feedback, where people (and sometimes other AI systems) rate different responses, and the model is adjusted to favour answers that are more helpful, accurate and safe.

Providers also add safety measures and usage policies, which is why assistants will decline some requests.

The context window

A language model does not remember conversations in the way people do. Each time it responds, it works from the text it is given at that moment: your current message, the earlier messages in the conversation, any documents you have attached and hidden instructions from the provider. This material is called the context, and the maximum amount the model can consider at once is called the context window.

Context windows have grown considerably, so many assistants can now work with long reports or several documents at once. Even so, very long conversations can cause the model to give less attention to earlier details. Some tools offer "memory" features that store selected information between conversations, but these work by adding saved notes back into the context, not by the model itself learning from you.

Tools, search and documents

Because a model's built-in knowledge stops at the end of its training, many assistants are now connected to additional tools. Common examples include:

  • web search, so the assistant can look up recent information and cite sources;
  • document retrieval, where the assistant searches an organisation's own files and uses relevant passages in its answer (often called retrieval-augmented generation);
  • data analysis, where the assistant runs calculations on a spreadsheet rather than estimating figures from memory;
  • actions, such as drafting a calendar invitation or filling in a form, sometimes described as "agents" when the assistant carries out several steps towards a goal.

Some assistants also offer "reasoning" modes, in which the model works through a problem step by step before giving its final answer. This often improves results on complex tasks, though it does not guarantee correctness.

Tip: If an answer depends on recent events, current prices or your organisation's own policies, check whether the assistant is actually using search or your documents. If not, it is answering from patterns learned during training.

In practice

Try asking a chat assistant the same question twice in separate conversations, for example "Suggest five names for a staff wellbeing newsletter". You will probably receive different answers, because the model chooses among likely options each time rather than retrieving a stored reply. Then ask a factual question about something that happened very recently, and see whether the assistant searches the web, says it is unsure, or answers anyway. These small experiments show the mechanics described above far more clearly than any diagram.

2.3 Strengths, limits and hallucinations

Generative AI can save considerable time and help people do things they could not easily do before. It can also produce errors that are difficult to notice. Using it well depends on knowing, in practical terms, where it tends to be strong and where it tends to be weak.

Where generative AI is strong

  • Drafting and rewriting. Producing a first version of an email, report section or job advert, or rewriting text for a different audience or tone.
  • Summarising. Condensing long documents, meeting transcripts or email threads into key points, especially when you provide the source material.
  • Explaining. Describing an unfamiliar concept in plain language, or at different levels of detail, and answering follow-up questions patiently.
  • Brainstorming. Generating many options quickly, such as campaign ideas, interview questions or possible risks in a plan.
  • Structuring. Turning rough notes into a table, a checklist or an outline.
  • Translating and adapting. Producing reasonable translations and helping non-native speakers write with confidence.

In all of these, a person can quickly judge whether the output is useful, and the cost of a minor error is usually low.

Where it is weak

  • Facts it cannot check. Without search or provided documents, a model may give outdated or wrong information.
  • Precise numbers. Unless it uses a calculation tool, a model may make arithmetic mistakes or invent figures.
  • Specialist judgement. Legal, medical, financial and safety matters need qualified review, because a fluent answer can still be wrong or incomplete.
  • Knowledge of your context. It does not know your organisation's history, unwritten rules or the people involved unless you tell it.
  • Consistency. The same request can produce different answers, which matters when decisions must be repeatable and fair.

What hallucinations are

A "hallucination" is the term commonly used when a generative AI system produces information that sounds convincing but is false or unsupported. Examples include a made-up reference to a report that does not exist, an invented quotation, an incorrect date, a non-existent legal case or a confident description of a product feature that was never released.

Hallucinations happen because of how language models work. They generate text that is likely to follow from the request, based on patterns. When the model lacks reliable information, it may still produce something that has the right shape: a plausible-looking citation, a typical-sounding statistic or a convincing name. It is not lying in any human sense, because it has no intention; it is simply continuing the pattern.

Providers have reduced hallucinations through better training, search tools and citations, but they have not eliminated them. Citations themselves should be checked, because a source can be real while the claim attributed to it is not.

Reducing the risk

  1. Give the assistant the source material, such as the policy, report or data, and ask it to work only from that.
  2. Ask it to say when it is unsure or when the information is not in the material provided.
  3. Request sources or quotations, and then open and read them.
  4. Check names, numbers, dates and references against a trusted source before using them.
  5. Match the level of checking to the level of risk: more for a client report, less for a brainstorm.

Remember: Fluency is not evidence. The more polished and confident an answer sounds, the easier it is to forget to check it.

Other limits worth knowing

Generative AI can reflect biases present in its training data, for instance by defaulting to stereotypes when describing professions. It can be overly agreeable, accepting a flawed premise in your question rather than challenging it. It may produce generic, average-sounding writing unless guided. And it can be manipulated by hidden instructions placed in documents or web pages it reads, an issue known as prompt injection, which matters when assistants are connected to email or other systems.

In practice

A helpful rule of thumb is to treat a chat assistant like a capable, fast, well-read new colleague who has never worked in your organisation and occasionally makes things up with a straight face. You would happily ask such a colleague for a first draft or a list of ideas. You would not send their work to a client, a regulator or a court without reading it carefully. Applying that same instinct to AI outputs will prevent most serious problems.

Case study: A briefing note with a citation that did not exist

At Linden Housing Trust, a fictional social housing provider, a policy officer used a chat assistant to prepare a briefing note for the board on damp and mould in rented homes. She asked it to summarise the relevant guidance and include supporting research. The draft was well organised and persuasive, and included three references to published studies.

Before submitting the note, she followed the trust's simple rule: every reference must be opened and read. Two of the references were genuine, although one did not say quite what the summary claimed. The third could not be found anywhere; the assistant had produced a plausible title, author and year.

She rewrote her request, this time uploading the official guidance and two reports she had already collected, and instructed the assistant to use only those documents and to quote the passages it relied on. The new draft was shorter, accurate and easy to verify. Her manager later added the episode to the team's induction pack as an example of why fluent writing still needs checking.

Activity

Ask a chat assistant to explain a topic you know well from your own work, and request that it include two or three sources. Read the answer critically and check each source. Write a short note on what was accurate, what was missing or wrong, and whether any source was invented or misrepresented.

Compare with a model answer

A good answer chooses a topic where the learner has genuine expertise, so that errors can be recognised. It separates the response into parts: what was correct and useful, what was oversimplified or out of date, and what was simply wrong.

It reports on each source specifically: whether it exists, whether it is from a credible organisation, and whether it actually supports the statement attached to it. Many learners find at least one weakness, such as a real source cited for a claim it does not make.

The strongest answers draw a conclusion about how to use the tool in future, for example supplying source documents, asking the assistant to flag uncertainty and always verifying references before sharing work with others.

Key takeaways

  • Generative AI creates new content such as text, images, audio and code, and is built on large foundation models trained by a small number of providers.
  • Large language models generate text by predicting likely next tokens; fine-tuning and human feedback turn them into helpful assistants.
  • Assistants work from their context window and do not remember or learn from you in a human sense; search and document tools extend what they can know.
  • Hallucinations are plausible but false outputs that arise from pattern-based generation; they have been reduced but not eliminated.
  • Generative AI is strongest for drafting, summarising and brainstorming, and needs careful checking for facts, figures and specialist judgement.

Unit check

Create a free account to answer the check, save your progress and receive your free certificate.

Create a free account Log in
← Unit 1 Unit 3 →
WhatsApp