Skip to content
Lucerna Law

Getting started with legal AI

Legal AI: A Plain Guide to What It Does

By Published 9 min readUpdated

Legal AI is software that uses artificial intelligence to do part of a lawyer's reading, searching or writing. Most of it today falls into four kinds: legal research, drafting, questions asked of a set of documents, and e-discovery review. Each kind works from different material and fails in a different way, so the label alone tells you little.

Legal AI means artificial intelligence applied to legal work: software that reads, sorts, searches or writes text a lawyer would otherwise handle by hand. The phrase has no official definition. Vendors, bar committees and reporters each use it for a different set of tools, which is why two people can disagree about it and both be right.

The wider term is no firmer. The ABA's ethics committee, in ABA Formal Opinion 512 on generative AI tools, says in a footnote that there is no single definition of artificial intelligence. It describes AI as technology that performs tasks traditionally requiring human intelligence.

Legal artificial intelligence is also older than the chatbots. The opinion, issued in July 2024, opens with uses that were already familiar. Lawyers use technology-assisted review in e-discovery to sort documents as responsive or not and to set privileged ones apart. They use contract analytics for due diligence. In basic legal research, it says, AI may enhance a lawyer's search results.

The opinion then turns to a newer subset, generative AI, which it describes as tools that create new content in response to a user's prompts and questions. So the phrase covers two generations of software. The older one classifies and ranks documents. The newer one writes sentences. A product may contain both.

One more source of confusion is the phrase "AI and the law". It can mean the law that governs AI: regulation, liability, copyright. It can also mean AI used inside legal work. This post is about the second, and so is the rest of this blog.

The four main kinds of legal AI are research tools, drafting tools, document question-and-answer tools, and e-discovery review tools. They differ in the material they work from, and that decides what each can get wrong. A research tool can misstate the law. A document tool can misstate your file.

KindWorks fromGives youCheck this first
Legal researchA library of cases, statutes and commentaryAn answer that cites authorityThat each authority exists and says what is claimed
DraftingA prompt, a template, sometimes your documentsA first draftEvery fact and every statement of law in the draft
Document Q&AThe files of one matterAn answer that cites passages in the fileThat each cited passage supports its sentence
E-discovery reviewA large collection of produced or collected documentsA coding or ranking for each documentThe coding, against a sample a person has read

Legal research

A research tool answers a question of law from a library of authority. Its typical failure is an authority that does not exist, or one that exists and does not hold what the answer says. The post on verifying citations has the steps for checking a citation to a case or statute.

Drafting

A drafting tool writes: a clause, a letter, a section of a brief. It works from what you type and whatever documents you give it. Fluent prose is the easy part, so a good-looking draft proves nothing about its facts.

Document Q&A

A document question-and-answer tool reads the files of a matter and answers questions about them: who said what, when, and where in the record. It knows your file and nothing else. The comparison of Westlaw AI and document AI explains why this and research are two different jobs.

E-discovery review

An e-discovery tool works at the scale of a production. It decides, document by document, what is likely responsive or privileged, so that people read less. Opinion 512 calls this technology-assisted review and names it as a well-known use of AI in litigation.

Products do not always stay in one box, and the names on the box vary. The map of legal AI companies sorts vendors by what they do.

Six terms cover most of what a lawyer will read in a legal AI vendor's pages: large language model, context window, retrieval, hallucination, citation and grounding. Each is defined below in a few plain sentences, with the source for the definition where there is one worth opening.

Large language model

A large language model is the engine inside a generative AI tool. Amazon Web Services, in its explainer on what a large language model is, describes it as a very large deep learning model pre-trained on vast amounts of data, adjusted during training until it predicts the next piece of text correctly. Opinion 512 puts it more bluntly: tools that produce text are prediction tools that generate a statistically probable output.

Context window

The context window is what the model can see while it writes one answer. Anthropic's documentation on how the context window works defines it as all the text a model can reference when generating a response, and calls it a working memory, separate from the data the model was trained on. The same page says accuracy and recall degrade as the window fills. A bigger window is not automatically a better answer.

Retrieval

Retrieval is the step that picks which text goes into the context window when everything will not fit. AWS, in its page on retrieval-augmented generation, describes the method as having the model reference a knowledge base outside its training data before it responds. For a lawyer the practical point is that a passage the retrieval step did not pick is a passage the model never read.

Hallucination

A hallucination is an answer that sounds right and has nothing behind it. Opinion 512 describes hallucinations as ostensibly plausible responses that have no basis in fact or reality. The opinion adds a quieter failure: a tool may combine accurate information in unexpected ways and produce a false result.

Citation

A citation is the tool's pointer to where a statement came from. In a research tool it points to an authority. In a document tool it points to a page, a paragraph or a message in your file. A citation is a place to look. It is not proof that the place says what the sentence says.

Grounding

Grounding means tying an answer to source text supplied to the model, such as your documents. Google Cloud's documentation on grounding defines it as the ability to connect model output to verifiable sources of information, and says it reduces the chances of inventing content. Reduces, not removes. Whether a given answer is supported is still a question someone has to check.

Legal AI is not a lawyer, not a source of law, not a check on its own output, and not confidential by default. Each of those is an easy assumption to make about software that writes like a colleague.

  • Not a lawyer. It holds no license and owes no duties. The phrase "AI lawyer" and the limits around it are the subject of the post on what "AI lawyer" means and where it stops.
  • Not a source of law. A model's sentence about a statute is a prediction of likely text. The statute is the source.
  • Not its own verifier. Opinion 512 says that because these tools are subject to mistakes, a lawyer's uncritical reliance on their output can lead to inaccurate advice or misleading statements to a court.
  • Not confidential by default. What happens to the text you type depends on the product's terms. The guide to client confidentiality and AI tools covers what to ask.
  • Not one product. A tool that is good at one of the four kinds may not attempt the others.

Fluent is a property of the writing, and accurate is a property of the checking.

On a single matter the kinds of legal AI line up in sequence, each handing its output to the next, with a person checking at every handoff. A worked example shows where each sits and why none of them replaces the others.

The four kinds in sequence on one hypothetical matter, with a person checking at every handoff
  1. 01

    E-discovery review

    Narrows the production

  2. 02

    Document Q&A

    Works the core file

  3. 03

    Research

    Finds the standard

  4. 04

    Drafting

    Assembles a first version

Take a hypothetical wrongful termination case. The employer produces 60,000 emails.

  1. E-discovery review narrows the production. A review platform ranks the emails by likely relevance. Reviewers read a sample to test the ranking, then read the top of the list.
  2. Document Q&A works the core file. The 400 emails that matter, two deposition transcripts and the personnel file go into a matter. A lawyer asks when the manager first learned of the complaint, and opens each cited passage.
  3. Research finds the standard. A research tool is asked for the elements of retaliation in the jurisdiction. The lawyer pulls and reads each authority it names.
  4. Drafting assembles a first version. The checked facts and the checked law go into a draft section of the brief, which the lawyer rewrites.

Four tools, four checks. The facts never came from the research tool and the law never came from the document tool. Trouble starts when one kind is asked to do another's job, such as asking a document tool what the law is, or a general chatbot what the file says.

Lucerna Law is the third kind: document question-and-answer for one matter at a time. A firm uploads a matter's documents, emails and text-message exports and asks questions in plain English. Answers cite the passages they rest on, and each citation opens the message or paragraph it names.

Its pages describe no library of case law or statutes. The model is given the text of the matter's files and told to answer only from that text, so it is the wrong place to ask what the law is. It can write a statement of facts or an outline as an answer in the chat, for the lawyer to check and edit. Its pages describe no coding or ranking of a production either, which is the work of an e-discovery platform.

Its limits are stated on its own pages. The 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 sentence. A matter of up to about 150 single-spaced pages goes to the model whole. From a larger one, only the passages that best match the question are sent, as the post on AI document review explains under how the AI reads the files in a matter. The product section of the homepage shows the four things it is built to be asked.

A lawyer should start with a task, not a product. Pick one piece of work that is slow today and that someone can check, decide which of the four kinds it belongs to, and only then look at tools of that kind. AI for lawyers is easier to judge when the job was chosen before the tool.

Three questions sort most tasks.

  • Is the question about the law, or about what is in my file?
  • Do I need words written, or documents sorted?
  • Who will check the output, and against what?

From here the next post is the survey of seven everyday uses of AI for law firms, each with a small example and what to check. Readers who want to follow AI in legal practice term by term can come back to the definitions above whenever a vendor's page uses one of them loosely.

Nothing here is legal advice. Professional rules on the use of AI differ by jurisdiction, and the opinion quoted above is the ABA's guidance, not any state's rule.