Skip to content

Prompting large language models

For people

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

Free on glitchdata 5.0 (1) beginner 4 lessons 57 min
Share X LinkedIn Reddit Bluesky Email

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, task, audience, constraints — and the line almost everybody leaves out.

    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

Ratings

5.0 (1)

Sign in to leave a rating. Sign in

  • 5.0 Terence Chia @terence-chia 4 days ago

    Tks. This is helpful.

Discussion 0

Use @handle to bring somebody in, and #tag to file it.

Nothing here yet. Ask a question, or say how you used it.

Sign in to join the discussion. Sign in

More in Generative AI

Generative AI advanced

Evaluating LLM applications

Build test sets, grade outputs with code, people and model-based graders, and catch regressions before your users do.

4 lessons 1 hr Free For people