Tara: Welcome back to AI for Lawyers. Last time we talked about what AI actually is — the three waves, classify versus generate. Today we're going inside the machine. What actually happens when you type a question into ChatGPT or Claude? How does it produce that answer?
Dan: Right, and I think this is where a lot of people's understanding gets fuzzy. They type something in, something comes back, and it feels like magic. But it's not magic.
Tara: it is absolutely not magic. And the best analogy to start with is one you already use every day — your phone keyboard. When you start typing a message, your keyboard suggests the next word. Type "looking forward to" and it might suggest "hearing," "seeing," or "meeting." That prediction is based on patterns your phone has learned from your typing history.
Dan: so you're saying ChatGPT is basically autocomplete?
Tara: At its core, yes. A large language model is autocomplete trained on an enormous scale. Instead of learning from your text messages, it learned from billions of documents — books, websites, articles, code, legal filings, everything publicly available on the internet. And instead of predicting one word on your phone keyboard, it predicts the next word over and over again, thousands of times, to produce full paragraphs and pages of text.
Dan: that reframes it completely. So when I ask it a legal question, it's not looking anything up. It's predicting what text would most likely come next based on patterns it absorbed during training.
Tara: Exactly. this is the single most important thing for lawyers to understand about these tools. The model does not have a database of facts it consults. It has statistical patterns about how words relate to each other. When it produces a correct answer, it's because the patterns it learned happen to align with reality. When it produces an incorrect answer — what we call a hallucination — it's because the statistically likely sequence of words doesn't match the facts.
Dan: That explains why it sounds so confident even when it's wrong. It's not checking whether it's right. It's just generating the most probable next word.
Tara: Precisely. Confidence is baked into the output format, not earned through verification. The model produces text that reads like an expert wrote it, regardless of whether the content is accurate. This is why the verification imperative we discussed last time is so critical.
Dan: so the model learns from training data. What does "training" actually look like? What's happening technically?
Tara: think of it this way. The model starts as a massive mathematical structure — billions of adjustable numbers called parameters. During training, it reads a document, tries to predict the next word, checks whether it got it right, and then adjusts its parameters slightly to do better next time. It does this billions of times across billions of documents. By the end, those parameters encode patterns about language, facts, reasoning styles, and even things like tone and formality.
Dan: So when people say GPT-4 has a trillion parameters, those are essentially the knobs that got tuned during training?
Tara: That's a useful way to think about it. More parameters generally means the model can capture more nuanced patterns. But more parameters also means more compute, more cost, and more potential for memorising things it shouldn't. The parameter count is like the capacity of the model's brain — how much it can hold.
Dan: Now I keep hearing about tokens and context windows. What are those?
Tara: Great question. the model doesn't actually read words — it reads tokens. A token is a chunk of text, roughly three quarters of a word on average. The word "understanding" might be two tokens. A common word like "the" is one token. This matters because models have a limited number of tokens they can process at once — that's the context window.
Dan: so the context window is like the model's working memory?
Tara: Exactly. Think of it as the model's desk. Everything it needs to work with — your question, any documents you've pasted in, the conversation so far, and the response it's generating — all has to fit on that desk. When the desk is full, the model starts losing track of things from earlier in the conversation. A model with a larger context window can hold more on its desk, but even the largest models have limits.
Dan: That's why people say to keep your prompts focused rather than dumping an entire contract into the chat.
Tara: strategic use of the context window is one of the core prompt engineering skills we'll cover later. For now, just understand that there's a real constraint on how much information the model can work with at any given moment.
Dan: Let me try the legal analogy you used last time. An LLM is like a remarkably well-read intern who has absorbed an entire law library — every case, every textbook, every commentary. Fluent, fast, articulate. But they've never actually practised law. They've never stood in court, never negotiated a clause, never exercised professional judgment.
Tara: That's exactly the right framing. And just like that intern, the model can produce work that looks polished and professional. But the quality of the underlying reasoning may not match the quality of the prose. A beautifully written legal memo that cites non-existent cases is worse than a rough draft that's factually sound.
Dan: the takeaway here is that these models are fundamentally pattern-completion engines. Incredibly powerful ones, but still pattern completion. They generate the most statistically probable text, not the most truthful text.
Tara: That's it. And understanding this distinction is what separates a lawyer who uses AI effectively from one who gets burned by it. The model's superpower and its biggest risk are the same thing — it produces fluent, confident text whether or not it's correct. Your job is to bring the judgment, the verification, and the professional expertise that the model cannot. Next time, we'll get specific about exactly where these tools excel and where they reliably fall short.
Dan: ... The hosts on this podcast are AI-generated voices. Content is designed by a practising lawyer but is for educational purposes only — not legal advice.