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.
- An LLM generates the most plausible continuation, not a verified truth.
- It only knows its training data plus what is put in its context window.
- Typical errors are hallucinations, omissions and mis-attribution; omissions are the hardest to spot.
- 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
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.
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.
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.
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.
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.
Hospital uses of language AI
| Use | What it does | Examples on the site |
|---|---|---|
| Ambient scribe | Listens to the consultation (with consent), transcribes it and drafts the clinical note for the clinician to review | Abridge and similar “voice AI” profiles |
| Record summarisation and Q&A | Summarises a patient's history or answers questions about the record | ChatEHR (Stanford) |
| Drafting | Drafts discharge letters, replies to patient messages, referral letters | Several EHR-embedded tools |
| Coding and administration | Suggests diagnosis and procedure codes, prior authorisation documents | Revenue-cycle profiles |
| Knowledge assistants | Answers questions from guidelines, internal procedures or literature, with sources | Versa (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
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
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.
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.
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.
