05

Learning/AI Basics/Chapter 5

Chapter 5 · Families of AI

Language AI and large language models

Most hospital information is text: notes, letters, reports, procedures. Large language models (LLMs) can read and write that text fluently. They are the fastest-growing category of hospital AI, and the one whose risks are least intuitive.

⏱ 4 min read⚡ Takeaways: 30 s❓ Self-check includedinShare on LinkedIn
In a hurry? The takeaways30-second read
  1. An LLM generates the most plausible continuation, not a verified truth.
  2. It only knows its training data plus what is put in its context window.
  3. Typical errors are hallucinations, omissions and mis-attribution; omissions are the hardest to spot.
  4. Always ask which model, where it runs, and what happens to the data.

Got these four points? You have the essentials. Read on for the explanations, examples and traps.

From keyword search to language models

Natural language processing (NLP) is the branch of AI that deals with human language. Older NLP tools extracted specific facts from text, such as diagnoses or smoking status, using rules or small models, built task by task. Large language models changed this: a single model can summarise, translate, extract, classify, answer questions and draft text, guided only by instructions written in plain language.

How an LLM works, in five ideas

1

Tokens

Text is cut into small pieces, roughly parts of words. “Hypokalaemia” might become three or four tokens. Length, limits and costs are counted in tokens.

2

Next-token prediction

The model is trained to predict the next token. It produces the most plausible continuation, which is not necessarily the true one. This single fact explains hallucinations.

3

The transformer

The 2017 architecture behind LLMs uses attention: for each word, the model weighs which other words are relevant. This lets it track long documents and complex instructions.

4

Pre-training, then tuning

Pre-trained on general text, then fine-tuned to follow instructions safely, often with human feedback. Knowledge stops at the training cut-off unless current documents are provided.

5

The context window

Everything the model “sees” for an answer: instructions, question, documents. Modern windows hold hundreds of pages. What is not there, and not learned, the model does not know.

Context windowInstructions “you assist clinicians…”Documents: notes, results…Question “summarise the last stay”
→
LLMnext-token prediction
→
Generated textto be checked
An LLM only uses what it learned in training plus what is placed in its context window for this answer.

Hospital uses of language AI

UseWhat it doesExamples on the site
Ambient scribeListens to the consultation (with consent), transcribes it and drafts the clinical note for the clinician to reviewAbridge and similar “voice AI” profiles
Record summarisation and Q&ASummarises a patient's history or answers questions about the recordChatEHR (Stanford)
DraftingDrafts discharge letters, replies to patient messages, referral lettersSeveral EHR-embedded tools
Coding and administrationSuggests diagnosis and procedure codes, prior authorisation documentsRevenue-cycle profiles
Knowledge assistantsAnswers questions from guidelines, internal procedures or literature, with sourcesVersa (UCSF) and RAG tools

Strengths and characteristic errors

Strengths

  • Reads hundreds of pages in seconds
  • Reformulates for different audiences (clinician, patient)
  • Handles messy free text, abbreviations, several languages
  • Follows instructions in plain language
  • Drafts text that is often good enough to edit

Characteristic errors

  • Hallucination: plausible but false content, such as a medication never prescribed
  • Omission: leaves out an important fact, often silently
  • Wrong attribution: mixes up who said what, or which episode a fact belongs to
  • Inconsistency: different answers to the same question; sensitivity to phrasing
  • Over-confidence: rarely says “I don't know” unless designed to
⚠Watch out: medical exam scores

LLMs are often promoted with scores on medical licensing exams such as the USMLE. Multiple-choice exams measure knowledge recall on clean, complete questions. Real patients come with incomplete, contradictory records and no answer options. Exam scores say little about safety in clinical use: ask for evaluation on the actual task in a real setting.

Where the model runs, and who sees the data

?Which model? A commercial model through a cloud service (for example from OpenAI, Anthropic or Google), or an open-weight model (for example Llama, Mistral or Qwen) that the hospital or vendor can run on its own servers.
?Where does it run? On the hospital's servers, in the vendor's cloud, or in a hyperscaler's cloud region. This determines which data protection rules and contracts apply.
?Is our data used for training? Enterprise and healthcare contracts usually exclude it; consumer chatbots may not. Staff must not paste patient data into public chatbots.
🏥In the hospital

Some hospitals run an open-weight model on their own GPU servers so that no patient data leaves the hospital network. The trade-off is investment in hardware and an in-house team to operate and validate the system. Others use a commercial model in a contracted cloud region, which is simpler to run but makes the processor contract, the data location and the exclusion from training essential.

Self-check 5

Explain to a colleague, in two sentences, why an LLM can write a fluent discharge summary that contains a medication the patient never received.

Show the answer

An LLM writes the most plausible next words, not verified facts. If similar letters often mention a common drug, the model can add it fluently even though this patient never received it, especially when the source documents are incomplete.

If you can answer out loud in a minute, you have understood the chapter.

Found this useful?Share it with your team or your network.
inShare on LinkedIn

Adapted from AI Basics for Hospital Professionals, edition 1, November 2026. Educational content only: not legal, regulatory or clinical advice, and no product recommendation. Facts and dates checked as of November 2026; verify regulatory dates at the official sources.