Skip to content

Prompting large language models

How LLMs work, how to write prompts that get reliable results, and how to check what comes back.

Free on glitchdata beginner 4 lessons 57 min

What you'll learn

  • Explain tokens, context windows and next-token prediction
  • Write prompts with clear context, instructions and examples
  • Ask for structured output you can use directly
  • Recognise hallucinations and verify answers

About this course

Large language models (LLMs) such as Claude and GPT can draft, summarise, classify and reason over text — but the quality of what you get depends heavily on what you ask. This course covers what these models actually do, the building blocks of a good prompt, and the habits that stop you trusting a confident wrong answer.

No coding is needed, though the last lessons include optional examples for people who call models from code.

Course content

4 lessons · 57 min

  1. 1
    What a language model actually does

    Tokens, prediction and the context window.

    Free preview 12 min
  2. 2
    Anatomy of a good prompt

    Context, a clear task, constraints and the audience.

    15 min
  3. 3
    Examples, structure and output formats

    Few-shot examples and output you can parse.

    16 min
  4. 4
    Hallucinations and checking the answers

    Why models make things up, and a routine for catching it.

    14 min

What learners say

Sign in and enrol to leave a review.

No reviews yet — be the first once you have worked through it.

More in Generative AI