Getting started with legal AI
Legal AI Glossary: Forty Terms in Plain English
By Lucerna LawPublished 10 min readUpdated
This legal AI glossary defines forty terms a lawyer meets in a vendor's pages, contract and security documents. Each gets one to three plain sentences. The terms are grouped by where they turn up: the model, the retrieval step, the output, the contract and the rules of practice, with a link for further reading.
How is this legal AI glossary arranged?
This legal AI glossary is arranged in the order a question travels. A model exists before anyone asks anything. The retrieval step decides what the model is shown. The output is what comes back. Around all three sit a contract and a set of professional rules.
| Group | Terms | What the group describes |
|---|---|---|
| The models | 8 | What writes the answer |
| The retrieval | 8 | What the model is shown |
| The output | 8 | What comes back, and its faults |
| Contract and security | 9 | A promise or a control in a vendor's documents |
| Legal practice | 7 | A duty or an object from the rules lawyers already work under |
Six of the forty terms are defined at length in the guide to legal AI, under legal AI terms a lawyer meets: large language model, context window, retrieval, hallucination, citation and grounding. They are included here for completeness, at one sentence apiece.
Where an entry has no link to an outside source, the wording is this blog's own plain description, not a standard's.
The models: eight glossary terms for what writes the answer
The first eight glossary terms describe the model itself: the software that produces text. A lawyer does not configure any of this. The terms matter because vendors use them to explain what their product can and cannot do.
- Generative AI. Software that writes new content in response to a request. ABA Formal Opinion 512 describes these tools by their "ability to quickly create new, seemingly human-crafted content in response to user prompts". See what "generative" adds to older legal software.
- Large language model (LLM). The engine inside a generative AI tool, built to predict likely next text.
- Token. The unit a model reads and writes. Anthropic's glossary says tokens "can correspond to words, subwords, characters, or even bytes". A model works in tokens, not pages, so a page count only approximates how much it was given.
- Training. How a model comes to exist. The same glossary describes pretraining as "the initial process of training language models on a large unlabeled corpus of text". A no-training clause is about this process and the next one.
- Fine-tuning. That glossary's definition is "the process of further training a pretrained language model using additional data". A product fine-tuned on legal text is still a model that predicts text.
- Inference. Running a finished model to get an answer. Whether what was sent is kept afterwards, or later used for training, is a separate question for the contract. Of its own service, Lucerna Law's homepage says: "Answering a question does not change the model."
- Prompt. Everything the model is given for one answer: the question, plus whatever the tool adds, such as instructions and document text. The post on legal AI prompts has thirty to adapt.
- Temperature. A setting, defined in Anthropic's glossary as "a parameter that controls the randomness of a model's predictions during text generation". The glossary adds that even at zero, identical inputs may produce different outputs. Asking twice and getting two wordings is expected behaviour.
The retrieval: eight glossary terms for what the model is shown
The next eight glossary terms describe retrieval: how a tool decides which text reaches the model. For a lawyer this is the group that matters most, because a passage the model was never shown cannot appear in its answer.
- Context window. What the model can see while it writes one answer. The post on the AI context window covers why a case file may not fit.
- Retrieval. The step that picks which text goes into the context window when not everything fits.
- Retrieval-augmented generation (RAG). Anthropic's glossary calls it "a technique that combines information retrieval with language model generation". The same entry notes that its effectiveness depends on the quality and relevance of what is retrieved.
- Embedding. A way of turning text into numbers so that software can compare meanings. AWS, in its page on embeddings in machine learning, defines embeddings as "numerical representations of real-world objects" that capture relationships in the data.
- Keyword search. Matching the letters typed against the letters in the file. It finds "invoice" and misses "bill". The product's documentation describes the search box inside a Lucerna Law matter as this kind: a plain, case-insensitive "contains" match over chats, file titles and names, and passages.
- Passage. The unit of text a tool stores, retrieves and cites. The product's documentation says that in Lucerna Law a passage is one text message, or one paragraph of a document or an email.
- Optical character recognition (OCR). The step that turns a picture of a page into text. The product's documentation says Lucerna Law reads a scanned page only in a PDF of up to 1,000 pages, and that the file holds no text to check that reading against. A scan in a longer PDF is stored and yields no passages. The post on accuracy treats misread source text as its own kind of error.
- Metadata. NIST's glossary entry for metadata gives the short form: "Data about data." For a document that is the sender, the date and the file name. Lucerna Law's homepage says a file's title is taken from its file name and is sent to the model with the text.
How these fit together in one product is set out under how the AI reads the files in a matter.
The output: eight glossary terms for what comes back
Eight glossary terms describe the output: the answer and its faults. These are the terms a reviewer uses, and they describe what to look for on the page in front of you.
- Hallucination. An answer that sounds right and has nothing behind it. The post on AI hallucinations in legal work explains the mechanism.
- Confabulation. The term NIST uses. Its Generative AI Profile (NIST AI 600-1) defines it as "a phenomenon in which GAI systems generate and confidently present erroneous or false content in response to prompts", and says such outputs are colloquially called hallucinations or fabrications.
- Grounding. Tying an answer to source text supplied to the model.
- Citation. The tool's pointer to where a statement came from: a place to look, not proof.
- Citation check. A test software runs on its own citations. What it tests varies by product. Lucerna Law's server checks that each citation names a passage the model was given and strikes through one that does not. It does not check that the passage supports the statement. See what software checks for you, and what it leaves.
- Omission. A true answer missing something that matters. No citation reveals it, because there is nothing to open.
- Extraction. Pulling stated terms out of a document into a list or table. See what AI clause extraction is.
- Summary. A shorter account of a longer text. It drops things by design, so the question is what it kept. See what an AI summary of a legal document must keep.
Contract and security terms in a legal AI vendor's documents
Nine terms come from a vendor's contract and security page. Each names a promise or a control. The table gives the plain meaning and the post that reads the term closely, since a promise is only as good as the document it is written in.
| Term | Plain meaning | Read more |
|---|---|---|
| Training on customer data | Using what you upload or type to change a model | Three promises in one phrase |
| Zero data retention | A model provider's promise not to keep prompts and outputs once a request is answered. The phrase alone does not say what is kept anyway, or what the product built on the model keeps | What it covers and leaves out |
| Sub-processor | A company your vendor uses to store or process your data | Following client text past the vendor |
| Data processing agreement | The contract terms on what a vendor may do with data it handles for you | Whether a firm needs one |
| SOC 2 report | A certified public accountant's report on an examination of a vendor's controls | What a SOC 2 report is |
| Encryption | Transforming data so its meaning is concealed from anyone without the key | What "encrypted" means |
| Tenant isolation | Keeping one customer's records apart from another's | The homepage's security section |
| Multi-factor authentication | Signing in with two or more different kinds of proof | NIST's glossary entry for multi-factor authentication |
| Audit log | A dated record of what was done in a system, and by whom | The AI audit trail |
Three of these have a standard definition worth quoting. NIST's entry for encryption includes: "Cryptographic transformation of data (called 'plaintext') into a form (called 'ciphertext') that conceals the data's original meaning to prevent it from being known or used." Its entry for multi-factor authentication lists the factors as something you know, something you have, or something you are. Its entry for audit log includes "a chronological record of system activities".
On Lucerna Law's side of these terms, the homepage is specific. The company does not train models on client data. A SOC 2 Type I audit is planned, and no certification will be claimed until the auditor's report exists. Original files are encrypted under a key made for each firm, while the text read from them sits in the database and not under that key. Each answered question is recorded with who asked and when. Sign-in is with a Google account, which the privacy policy describes. The privacy policy names who processes data.
Legal-practice terms that meet legal AI
The last seven terms come from the rules lawyers already work under. None was written for AI. Each one names a duty or an object that an AI tool now touches, which is why vendors borrow the words.
- Electronically stored information (ESI). The Federal Rules' term for information held in electronic form. Rule 34(a)(1)(A) covers "writings, drawings, graphs, charts, photographs, sound recordings, images, and other data or data compilations—stored in any medium from which information can be obtained".
- Technology-assisted review (TAR). The older AI of e-discovery. Opinion 512 describes it as a tool lawyers use "to categorize vast quantities of documents as responsive or non-responsive and to segregate privileged documents". It sorts documents. It does not write answers.
- Privilege log. The list a party serves when it withholds material as privileged. Rule 26(b)(5)(A) requires a description that "will enable other parties to assess the claim". See the post on the AI privilege log.
- Bates number. The identifying number stamped on each page of a production. A tool's page citation may not be the Bates number: Lucerna Law cites a PDF by page and paragraph, and the page is the file's own. The post for litigation support covers naming files so the reference survives.
- Legal hold. In practice, the instruction to preserve material for a dispute, covered under what a litigation hold should say about phones. Inside Lucerna Law it is also a setting: a matter on legal hold cannot be deleted until the hold is released.
- Nonlawyer assistance. The title phrase of ABA Model Rule 5.3, which sets a supervising lawyer's duties over a nonlawyer "employed or retained by or associated with a lawyer". See what Rule 5.3 asks of the lawyer who supervises.
- Reasonable inquiry. The standard in Rule 11(b): a filing is certified "to the best of the person's knowledge, information, and belief, formed after an inquiry reasonable under the circumstances". See Rule 11 and a filing AI helped draft.
State versions of the Model Rules differ in wording, and state and local procedure differs from the federal rules quoted here.
Which legal AI glossary terms matter before a firm buys?
Before a firm buys, six of the forty glossary terms carry the questions worth asking: context window, retrieval, citation check, training on customer data, sub-processor and audit log. Each one maps to a question a vendor can answer in writing.
- Context window and retrieval. How much of a matter reaches the model, and what happens above that size?
- Citation check. What exactly does the software test about its own citations?
- Training on customer data. Where is the promise written, and does it bind the company that runs the model?
- Sub-processor. Which other companies handle the text?
- Audit log. What is recorded, who can read it, and can it be exported?
The longer list is under questions to put to an AI vendor.
A term a vendor cannot define in a sentence is a term to ask about twice.
The other terms are for reading a vendor's documentation without stopping at every noun. This glossary ranks no product and tested none.