Lesson objective

Explain in plain words how a language model turns text into tokens and predicts what comes next, and use that explanation to predict when its answer to a legal question is likely to be unreliable.

Plain-language explanation

Why this matters now

Law / rule: In Mata v. Avianca, Inc. (S.D.N.Y. June 22, 2023), two attorneys filed an affirmation citing six court decisions that did not exist, produced by ChatGPT, and then filed purported copies of them. The court wrote that "there is nothing inherently improper about using a reliable artificial intelligence tool for assistance. But existing rules impose a gatekeeping role on attorneys to ensure the accuracy of their filings," and imposed a $5,000 penalty jointly on the respondents under Rule 11. The sanction was for the false statements and the failure to withdraw the fake cases once challenged, not for using the tool. The decision binds only its parties, but it is the most-cited example of what happens when a lawyer does not know what a language model is actually doing.

Three years on, the models are larger and the numbers on their specification sheets are easy to misread. As of September 2026, the leading vendors publish context windows of about a million tokens and knowledge cutoffs in 2026. Those figures decide how much of a document a model can see at once and how current its knowledge is, and both change with every release. This lesson gives you the vocabulary to read them.

A question to sit with

A language model has read more legal text than any lawyer alive. Why can it still invent a case that does not exist? Because it was never trained to know anything. It was trained to continue text convincingly, and a convincing citation and a real one look the same from the inside.

What goes wrong

Fluency is mistaken for knowledge. The model produces grammatical, confident, well-structured prose whether or not the content is true. A reader who judges reliability by tone will be misled by exactly the outputs that most need checking.

The knowledge cutoff is ignored. Every model stops learning at a date. Ask it about a rule amended after that date and it will answer from the old rule, without saying so, unless it can search or you supply the new text.

The context window overflows. Paste a 500-page appendix into a tool with a smaller window and the end of the document is cut off or the request is rejected. If the answer depends on the last exhibit, the answer is wrong, and the output does not say "I did not read that part."

The same question gets two answers. Ask twice and you may receive two different day counts. Neither run announces which one is right.

The practical answer

Tokens. A model does not read words; it reads tokens, which Anthropic's platform glossary defines as "the smallest individual units of a language model," corresponding "to words, subwords, characters, or even bytes." For Claude, "a token approximately represents 3.5 English characters," so 100 tokens is roughly 75 words. A 10,000-word memorandum is on the order of 18,000 tokens at that ratio. Other vendors' ratios differ, but the idea is the same: everything you give the model is chopped into tokens, and everything it produces comes back one token at a time.

Prediction. During pretraining, the model is shown enormous amounts of text and adjusted, over and over, so that it becomes better at predicting the next token. Probability here means the model's estimate of how likely each possible next token is, given everything before it. When it answers your question, it is choosing likely continuations, not looking anything up. Fine-tuning and human feedback later shape the model to be helpful and to follow instructions, but they do not add a fact-checker.

Why a fabricated citation is so well formed

A citation follows a rigid pattern: party names, a volume number, a reporter, a page, a court, a year. The model has seen millions of them and has learned the pattern perfectly. When the most probable continuation is a citation, the model produces one with the right shape. Whether the case exists is a separate question the model was never trained to answer.

The context window. Anthropic's documentation defines it as "all the text a language model can reference when generating a response, including the response itself," and calls it "a 'working memory' for the model." Everything counts against it: the system prompt, every message so far, every attached document, tool results, and the model's own reasoning. When input alone exceeds the window, the request fails with an error; and even below the limit, the vendor warns that "as token count grows, accuracy and recall degrade, a phenomenon known as context rot." Longer is not automatically better.

Knowledge cutoff. The date after which the model has not seen training data. Anthropic distinguishes a "reliable knowledge cutoff," the date through which knowledge is most reliable, from the later "training data cutoff." Ask about anything after the cutoff and the model will guess unless it can search or you supply the text.

Model (as of September 2026, from vendor pages) Context window Knowledge cutoff
Claude Fable 5.1 (Anthropic) 1M tokens Reliable through June 2026
Claude Opus 5 (Anthropic) 1M tokens Reliable through May 2026
Claude Sonnet 5 (Anthropic) 1M tokens Reliable through January 2026
Claude Haiku 4.5 (Anthropic) 200K tokens Reliable through February 2025 (training data to July 2025)
GPT-6 Astra (OpenAI) 1.05M tokens April 30, 2026
GPT-5.6 family (OpenAI) 1.05M tokens February 16, 2026

Anthropic's page adds that 1M tokens "is roughly 555k words" and 200K tokens "is roughly 150k words" on its current tokenizer. These figures were correct when fetched on September 14, 2026, and will be stale within months; re-read the vendor page before relying on any of them.

Temperature and non-determinism. Temperature is a setting that, in the glossary's words, "controls the randomness of a model's predictions"; lower values make the model pick the most probable token more often, higher values let it wander. Many legal tools hide the setting. Even at the lowest setting the output is not fixed: the same glossary states that "even with temperature set to 0, the results will not be fully deterministic and identical inputs may produce different outputs across API calls." Non-determinism is the name for this: the same question, asked twice, can produce two different answers.

Reasoning ("thinking") models. Newer models can spend hidden effort before answering. OpenAI's reasoning guide says these models "use internal reasoning tokens before producing a response," which "helps the model plan, use tools effectively, inspect alternatives, recover from ambiguity, and solve harder multi-step tasks." Those tokens "are not visible via the API" but "still occupy space in the model's context window and are billed as output tokens." Reasoning improves many tasks; it does not turn prediction into verification.

What it looks like the model is doing What the model is actually doing
Recalling a case Producing the most probable citation-shaped text
Reading your whole document Reading up to the context window, then losing the rest
Giving you the current rule Giving you the rule as it appeared in text up to the cutoff
Giving the same answer each time Sampling from probabilities; results can differ run to run
Thinking it through Spending hidden tokens on intermediate steps that you cannot audit

Remember this

  • A model reads and writes tokens and predicts the next one; it does not look facts up.
  • The context window is the model's working memory; everything counts, and accuracy degrades as it fills.
  • The knowledge cutoff is a date; anything after it is a guess unless the model can search or you supply the text.
  • Outputs are not fixed. The same prompt can produce different answers, even at the lowest temperature.
  • A citation in AI output is a probable string, never proof the authority exists. Locate it and read it.

Legal example

Dana Okafor is a second-year associate at the fictional firm Harlow & Pike. She is preparing a motion in a fictional state court and uses a general-purpose assistant her firm permits for early research, referred to here as the fictional product "BriefForge Chat."

The cutoff. Dana asks, "How many days after service does a defendant have to respond to a complaint in this state?" The assistant answers "thirty days" in a confident paragraph and cites the fictional "Rule 12(a)" of the state's civil rules. The fictional legislature had amended the rule to twenty-one days two months earlier. The model's published knowledge cutoff was before the amendment, and the tool had no search function. Nothing in the answer hinted that it might be out of date.

The repeat. Dana asks the same question again in a fresh session to double-check. This time the assistant says "twenty days" and mentions a "safe-harbor extension" that does not exist in the fictional rule. Two runs, two answers, both wrong, both fluent.

The overflow. Dana then uploads a 480-page appendix and asks whether Exhibit 41, at the end, contradicts Exhibit 3. The assistant produces a comparison that discusses Exhibit 3 in detail and describes Exhibit 41 in vague terms that do not match the document. The tool's context window was smaller than the appendix; the last hundred pages were never read, and the summary of Exhibit 41 was the model's guess at what such an exhibit would say.

The citation. In its first answer the assistant had also cited "Harlan v. Metro Transit Authority, 412 P.3d 88" for the proposition that late responses are excused for good cause. (This is a fictional citation invented for this lesson; it does not exist.) It had the shape of a real citation. Dana searched the reporter and found nothing.

What Dana did next is the lesson. She checked the vendor's model page and wrote down the cutoff and the context window on her model facts card. She pulled the current rule from the official source and read it. She split the appendix and asked about Exhibit 41 on its own, then read the exhibit herself. She struck the citation. Her supervising partner reviewed the motion against the primary sources before signing, and Dana recorded the tool, the version, the date and what she had verified in the matter's AI use record.

Responsible-use warning

Never treat a statement of law, a rule number or a citation produced by a language model as evidence that the authority exists, says what the model claims, or is current. The model produced the most probable text; it did not consult anything. Never rely on an answer about a document longer than the tool's context window without confirming the whole document was read, and never rely on a single run for a number that matters. These habits exist to prevent the filing that cites a case no court ever decided.

Human-review requirement

A licensed attorney reviews every AI-assisted research answer, draft or summary before it is relied on and owns the decision to use it. In this lesson's context the reviewer checks three things: that every authority has been located in a primary source and read; that the model's published knowledge cutoff predates nothing the answer depends on, or that the current text was supplied in the prompt; and that any document the model summarised fitted within its context window or was split and checked in parts. The reviewer records the model name and version, the date, and what was verified in the matter's AI use record.

Practical exercise

Build a model facts card and run three tests, using only fictional facts and a tool your firm permits.

  1. Open the vendor's model documentation for the tool you will use. Record the model name and version, the published context window (in tokens), the published knowledge cutoff, the temperature setting if the tool exposes it, and whether a reasoning or "thinking" mode is on. Record the date you checked. If any figure is not published, write "not published" rather than guessing.
  2. Convert the context window into an approximate page count using the vendor's own words-per-token guidance, if given, and a working assumption of 300 words per page. State your assumption.
  3. Cutoff test. Choose a real procedural rule you know was amended after the published cutoff. Ask the tool the question without mentioning the amendment. Record whether it answered from the old rule, flagged uncertainty, or offered to search.
  4. Repeat test. Ask the tool the same fictional-fact question three times in separate sessions (for example, "Under the fictional Rule 7 pasted below, how many days does a party have to reply?"). Paste the same fictional rule text each time. Record the three answers and note any differences.
  5. Overflow test. Create a fictional document longer than the tool's stated window (a long lorem-ipsum file with one distinctive sentence placed on the last page works). Ask the tool to quote the distinctive sentence. Record whether it could.
  6. Write a five-line summary: what the three tests showed, and the one habit you will change.
  7. Paste the facts card, the three test results and the summary into the submission box.
  8. In the workbook, Module 01 worksheet, "Model facts card," record the card and the test results with the date. Set a reminder to re-check the vendor page in six months; these figures change.

Knowledge check

  1. What is a token, and why does the number of tokens in a document matter?

    Answer guidance: A token is the smallest unit a model reads and writes, often part of a word; for one vendor about 3.5 English characters. Token count decides whether a document fits in the context window and how much of it the model can actually consider.

  2. You are asked to check whether a summary of a 600-page appendix produced by an assistant is reliable. What is the first thing you check about the tool?

    Answer guidance: Its context window. If the appendix exceeds the window, part of it was never read and the summary of that part is a guess; split the document and check each part, then read the key exhibits yourself.

  3. A memo drafted with AI assistance states the current version of a rule that you know was amended last month. What most likely went wrong, and how do you fix it?

    Answer guidance: The amendment came after the model's knowledge cutoff and the tool answered from memory. Pull the current rule from the official source, supply it in the prompt if you rerun the task, and verify the memo against it.

  4. A partner argues that because the reasoning mode was on, the answer can be trusted without checking the citations. Do you agree?

    Answer guidance: No. Reasoning tokens let the model plan and consider alternatives, but they are hidden, cannot be audited, and do not verify that a cited authority exists. Every citation is still located in a primary source and read before use.

Sources and further reading