> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorpro.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Legal

> Long-term memory for a law firm's matters, grounded in each matter's own record and traceable to its sources.

EDN provides long-term memory for a firm's matters. It keeps each matter's documents, the client's instructions and the work done on it across months, sessions and practitioners. Every answer the firm's AI gives can be grounded in the matter's own record and cite its sources, so each fact is traceable to where it came from. Nothing an AI drafts is used as fact until a practitioner confirms it, and the firm can show exactly what EDN supplied to its AI for its answers, so its use of AI is auditable.

*The firm, the matter and the scenario in this example are fictional. The problems it addresses come from real court decisions in Australia and the United States.*

## Why it matters now

Courts in several jurisdictions in Australia and the United States have introduced rules requiring practitioners to disclose their use of generative AI and to verify the citations in court documents. Lawyers have been fined, ordered to pay costs, disqualified from cases and referred to regulators for filings that cited AI-generated cases that do not exist.

## How a firm organizes memory

Each matter is a project. Each conversation about the matter is a session linked to its project, and the matter's documents are uploaded into the project. A project never sees another project's memory, so one client's matter never appears in another's. See [Recommended structure](https://docs.tensorpro.ai/concepts/projects-and-sessions.md#recommended-structure).

## Who uses it

| Persona | Uses EDN to | So that |
| - | - | - |
| **Responsible lawyer** | Ask about the matter and get answers cited from its documents | They know where the matter stands without re-reading the file |
| **Paralegal** | Upload documents and record the client's instructions | What they record is remembered once, with its source |
| **Risk and compliance lead** | Review signed records, history and exports | They can show a court what the AI relied on |
| **Principal** | Keep each matter's memory separate, with any AI model | One client's matter remains separate from another's, and changing AI tools loses nothing |

## A matter over time

![Legal example over six months: documents uploaded as citable sources, the client's instructions saved, an AI-generated outline citing numbered sources, a missing authority answered with no source, the outline confirmed, an instruction corrected with its history kept, submissions drafted from numbered sources, and signed records exported for the court.](https://mintcdn.com/tensor-pro/SHb5_UbTl-WZrILc/images/use-case-legal-light.svg?fit=max\&auto=format\&n=SHb5_UbTl-WZrILc\&q=85\&s=20848cd2ca7384c9fb60ddcc407821a1)

In this example, one matter over six months: from opening the matter to answering the court's question about how AI was used.

1. **The matter is opened.** Its documents are uploaded: the lease, the correspondence, the court's procedural order and the authorities relied on. Each document becomes a source the AI can cite, so that every later answer can point back to the matter's own record.
2. **The client gives instructions.** EDN saves them as stated by the client, so that the record shows whose words they are.
3. **The partner asks for an outline of the arguments.** The AI receives a [SIP](https://docs.tensorpro.ai/concepts/sip.md) built from the matter, and the AI's outline cites numbered sources (\[1], \[2] and so on), each pointing to a document in the matter. When the application saves the outline, EDN stores it as AI-generated: it is kept, labeled as written by AI and never used as fact, so that every colleague who sees it knows where it came from.
4. **An associate asks for an authority the matter does not contain.** When nothing in the matter is relevant to the question, EDN tells the AI plainly that the matter has no source on it instead of giving it anything to guess from.
5. **The partner reviews and confirms the outline.** Only then can it be used as fact, so that what the firm relies on has been checked by a practitioner.
6. **The client changes the instruction.** The new instruction replaces the old one when it clearly matches the earlier instruction, and the old instruction stays in the history with its dates, so that advice is always based on the current instruction and every change can be traced.
7. **The submissions are drafted.** Every numbered source EDN supplies points back to a record in the matter, such as a passage of a document, so that every citation is traceable and the cite-check is a check against the matter's own record.
8. **The court asks how AI was used.** The firm exports EDN's records, so that its answer is evidence rather than recollection.

## Auditability: what the firm can show

* **Exactly what EDN supplied to the AI** for each answer. EDN signs a record of it when it builds a SIP, and the records can be exported from the Console.
* **Where every fact came from:** a document, the client's statement or a practitioner's confirmation.
* **What changed, and when.** Corrections keep the earlier version in the history.
* **What was kept out.** AI-written material was never used as fact until a practitioner confirmed it.
* **That no other matter was involved.** Each matter's memory is separate.

## What the firm gains

* **Less time re-reading files.** A practitioner picks up a matter, including after a handover, from its memory instead of re-reading the file.
* **Lower risk in what is filed.** Every citation is traceable to the matter's own record, and AI drafts are never treated as fact until a practitioner confirms them.
* **A ready answer when the court asks.** The firm can show what its AI relied on, without reconstructing it afterwards.
* **Confidentiality between clients.** Each matter's memory stays separate from every other matter.

## Real case: Lacey v. State Farm (2025)

In a 2025 federal case in California, about nine of the 27 legal citations in a ten-page brief were incorrect in some way, at least two of the cited authorities did not exist, and several quotations from judicial opinions were not genuine. An outline produced with AI tools had been passed to co-counsel without disclosing that AI was used, and its research went into the brief without being cite-checked. After two citations were queried, the brief was re-submitted without them but with the remaining AI-generated errors. The briefs were struck, the requested discovery relief was refused, and the two firms were ordered to pay 31,100 US dollars.

**These are the failures EDN is designed to prevent.**

Read the court's order: [Lacey v. State Farm Gen. Ins. Co., No. 2:24-cv-05205 (C.D. Cal. May 6, 2025)](https://www.lawnext.com/wp-content/uploads/2025/05/C.D.-Cal.-24-cv-05205-dckt-000119_000-filed-2025-05-06.pdf).

## What EDN is

EDN is long-term memory for your firm's AI, with provenance, governance, traceability, auditability and sovereignty built in. It is not a legal research database, and responsibility for every filing stays with the practitioner.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.