All modules
Module 03 · 12 minBeginner

Understanding generative AI

Large language models, tokens, hallucinations, and a quick tour of prompting — with healthcare examples and clear rules of the road.

What a large language model actually is

A large language model (LLM) is a very large pattern-prediction engine trained on enormous amounts of text. It doesn't "know" facts the way a textbook does; it has learned which words tend to follow which words in which contexts.

Words → tokens → predictions

Large language models break text into small chunks called tokens. Then they predict the next most likely token, over and over, until a sentence forms.

The patient presents with a two-day history of fever and cough.

The model never "decides" the whole sentence at once. It picks one likely token, then conditions on what it just wrote to pick the next.

A chatbot, watching itself work

What are common causes of childhood fever?
Common causes include viral infections, bacterial infections, and post-vaccination response. Persistent fever in young children should be evaluated by a clinician.
Interactive experiment · 4–6 min

From source to output: what did the AI change?

Generative AI does not copy your information — it writes something new from patterns, context, and your instructions. Run the experiment below and watch exactly what gets kept, reworded, dropped, or invented.

Fictional patient only. Never enter real patient information or PHI into this activity — there is nothing to type here by design.
Part 1 · Give the AI information
Source information

Jordan is a 10-year-old seen for intermittent abdominal pain for 3 months. Growth has remained normal. There is no vomiting, gastrointestinal bleeding, weight loss, or fever. Laboratory testing performed by the pediatrician was normal.

Let's ask generative AI to summarize this information.

Prompt engineering, in two examples

The same model, two prompts. The clearer the request, the more useful the output.

Vague prompt

"Write something for my patient about their asthma."

Output: a long, generic essay about asthma — not tailored to the patient, reading level, or visit.
Clear prompt

"Write a 5th-grade-reading-level handout for a 10-year-old with mild persistent asthma. Cover daily controller use, rescue inhaler use, and when to call the clinic. Keep under 200 words."

Output: a focused, age-appropriate, length-appropriate handout you can edit and hand to the family.
Tip: Tell the model who the reader is, what you want, the format, and the length. Specificity beats cleverness every time.
Why generative AI sounds confident but can be wrong

A hallucination happens because the model optimizes for fluent, likely-sounding language — not for truth. It has no internal "I don't know" signal by default. That's why every clinically meaningful output must be verified against a trusted source.

  • Verify medications, doses, and guidelines independently.
  • Treat polished tone and length as style, not as evidence.
  • The more confident-sounding the answer, the more important the verification.

Where generative AI fits in clinical work

Today's safest uses are tasks where a clinician reviews every word before it reaches a patient or a chart.

Drafting patient instructions

Rewrite a discharge plan at the right reading level — you edit and sign.

Summarizing notes

Distill a long admission course into a one-paragraph handoff for review.

Educational support

Explain a pathway, drug class, or guideline in plain language for teaching.

Not for independent medical decisions. Generative AI shouldn't autonomously diagnose, prescribe, triage, or decide disposition. It can support the clinician — it cannot replace clinical accountability.

Required reading

Generative AI should always have human oversight

Every AI-generated word that touches a patient — a discharge instruction, a message, a chart note — must be reviewed by a qualified clinician before it's used. The model writes the draft. The clinician owns the decision.

Key takeaways
  • LLMs are sophisticated autocomplete: predict next token, then the next, then the next.
  • Tokens are small chunks of text — sometimes whole words, sometimes parts.
  • Fluent and confident does not mean true — hallucinations are an inherent risk.
  • Better prompts produce better output: state the audience, format, and length.
  • Use generative AI for drafts and education — never for autonomous clinical decisions.

Generative AI concept cards

Flip each card for a deeper definition and a clinical example.

Quick check

An ambient scribe drafts a note that includes a medication dose the patient didn't mention. The safest next step is to…

Check your understanding

Five quick questions on LLMs, prompts, and safe use.

Knowledge check
Question 1 of 5

You're not signed in — this score won't be saved or counted toward your level average. Sign in first to record it.

How does a large language model produce a sentence?

Score: 0
Previous: How AI learns