A small law firm can build an AI-searchable precedent library by gathering only approved templates and anonymised models, cleaning them, putting them in access-controlled folders, and pointing a business-grade AI tool at those folders alone. Client files stay out. Every answer must quote its source document so a lawyer can check it.
The reason to build one is plain: fee earners spend time hunting for "that good indemnity clause we used last year", and the answer lives in someone's head or in a folder nobody has tidied since 2019. The reason to be careful is just as plain: the fastest way to leak client data is to point a search tool at the whole document system. So keep the library small, clean and checkable.
Three tiers, and only one of them goes in
Before any tool is chosen, sort what the firm holds into three tiers. The decision about which tier a document belongs to is the most important step in the whole project.
| Tier | What it contains | In the AI library? |
|---|---|---|
| A: Templates | Documents written as templates from the start: engagement letters, standard clauses, checklists, forms | Yes, after a review date is added |
| B: Anonymised models | Past drafts converted into models, with every identifier removed and a fee earner's approval | Yes, only once approved |
| C: Live and closed client files | Anything that is a client's matter file, correspondence or advice | No, never |
Tier C is where most firms' instincts mislead them. A closed file feels like a precedent because it contains a good piece of drafting. But it also contains the client's facts, names, figures and sometimes privileged advice, and a library that mixes them makes confidentiality a matter of luck. If the drafting is worth keeping, someone turns it into a Tier B model on purpose. The wider issue is covered in reusing past client work with AI without leaking client data.
An eight-person firm and 1,400 documents
Take an illustrative firm with eight fee earners across property, wills and probate, and employment. Their shared drive holds roughly 1,400 files that people think of as "precedents". A partner and a senior paralegal give themselves two weeks, around three hours each a day, to turn that into a library.
In the first pass, the paralegal sorts by file name and last-modified date into four buckets: keep as is, merge duplicates, retire, and "needs a lawyer to look". The illustrative result:
- Keep as is: 310 documents, mostly Tier A templates with clean names.
- Duplicates and near-duplicates to merge: 520 documents collapsing to about 140 distinct ones. The firm had eleven versions of the same tenancy agreement.
- Retire: 330 documents, mostly superseded by newer forms or never templates in the first place.
- Needs a lawyer: 240 documents. Among them, 90 were closed-file drafts that looked like good models.
After the lawyers' review, about 60 of those 90 became Tier B models with identifiers stripped, and 30 were rejected because the drafting was too tied to one client's facts. The firm ends with about 310 + 140 + 60 = 510 documents in the library, from the 1,400 it began with. In this illustration the library ends up about a third of the size of the folder it came from, and better for it.

The Complete Excel Course with AI Integration
From formulas and pivot tables to Power Query, DAX, VBA and AI with Copilot, ChatGPT and Claude — hands-on from the first lesson.
By Sagnik Bhattacharya and Virginia Thorn, Primetime Emmy Award winner
Buy nowCleaning a precedent so it can be trusted
Cleaning is more than deleting names. Each precedent goes through the same checklist, and the checklist is recorded in a "precedent card" kept at the top of the document or in a sheet beside it.
Remove what identifies anyone
- Party names, addresses, company numbers, matter references and bank details, replaced with bracketed placeholders such as [Buyer], [Property address] and [Amount].
- Document properties and tracked changes, which routinely hold the author's name and the original client's name in comments. In Word, File > Info > Check for Issues > Inspect Document finds and removes comments, tracked-change revision marks and document properties such as the author's name. Microsoft recommends running it on a copy, which suits this job anyway: the original stays untouched in the closed file.
- Headers, footers and file names. A file called "Smith_lease_v7_FINAL.docx" in a Tier B folder is a leak with a friendly label.
- Unusual facts. A clause drafted around a rare situation can identify a client even without a name. If the clause is only meaningful in that situation, it is not a model.
Make it usable
- One document per use, with a plain title: "Licence to assign, commercial lease, landlord's consent".
- A drafting note at the top: when to use it, when not to, the main variations, and a plain-language list of the placeholders to complete.
- The date it was last checked against current law, who checked it and the next review date.
The precedent card, filled in for one document, looks like this (illustrative):
Title: Licence to assign, commercial lease, landlord's consent
Tier: A (template) Practice area: Property
Owner: [initials] Last checked: 3 Feb 2026 Review by: 3 Feb 2027
Use when: landlord consents to the tenant assigning a lease of business premises
Do not use when: the lease bars assignment outright; a guarantor is also being released
Placeholders: [Landlord], [Tenant], [Assignee], [Premises], [Lease date], [Guarantor]
Related: Rent deposit deed; Deed of release of guarantor
These cards are what make retrieval work. A search tool matches a question like "do we have a template for a rent deposit under a business lease?" to the card text, so the card is written for a reader who has never seen the document.
Access controls that match how the firm already works
An AI library inherits whatever access you give it, so design permissions first and the AI second.
- Folders by audience. A firm-wide folder for general templates, a folder per practice area, and a curator-only folder for drafts awaiting review. Do not create a folder that "everyone" can read just because it is easier.
- Groups, not individuals. Grant access to a group per practice area and add people to groups. When someone leaves, removing them from groups removes them from the library.
- Edit rights for curators only. A small group of two or three people can add, change or retire precedents. Everyone else can read and ask questions.
- Information barriers respected. If any team works behind a barrier, they have their own library or no access to the shared one. A tool that can answer from any file it can see will not know about the barrier unless the permissions say so.
- Check what the tool actually inherits. Some tools search only what the signed-in user can open; others search everything they were given. Ask the supplier which it is, in writing, and test it with an account that should not see a folder. The questions in what to ask before buying AI that touches client data cover the rest of the supplier conversation.
Choosing the tool for a library of a few hundred documents
For a library of a few hundred precedents, three types of tool are realistic.
- Project-style features in a business AI plan. ChatGPT Projects and Claude Projects let you attach files and ask questions across them, but their limits differ. OpenAI's help centre (checked November 2026) caps a project at 40 files on Business, Enterprise and Edu plans, so the 510-document library above would not fit in one project even split three ways by practice area; you would also need to combine precedents into a handful of compilation files per area, keeping each precedent's card at the top of its section so answers still cite the precedent by name. Anthropic's help centre gives no fixed file count for Claude projects and says paid plans switch to a retrieval mode that expands project knowledge by up to ten times as it nears the limit. Run the retrieval test below on whichever you choose, because a library that is technically loaded is not the same as one that is reliably searched.
- The AI inside your existing document system. If your firm uses Microsoft 365, the paid Microsoft 365 Copilot licence (Microsoft's documentation now calls the app Microsoft Copilot) grounds answers in SharePoint and OneDrive files automatically, and Microsoft's privacy documentation says it only surfaces content the individual user has at least view permission for. That makes your SharePoint permissions the library's access control: a folder shared with everyone is visible to everyone's Copilot. The free Copilot Chat tier, by contrast, sees only the files you upload with a prompt. Test the behaviour with an account that should not see a folder. Practice management products such as Clio also offer AI features; check which ones come with your plan.
- A specialist legal knowledge tool. These are worth a look once you have thousands of documents or need drafting integration. The comparison in ChatGPT or a legal AI tool for a small firm will help you weigh cost against fit.
Whichever you pick, use a business plan that does not train on your content, and run through a short trial scorecard before signing anything for a year. Tier A and B documents carry little confidentiality risk by design, but "little" is not "none", so the data-handling terms still need reading.
The instruction that makes it cite its source
Set the AI's standing instruction once, in the project or the tool's settings. A version to start from:
You answer questions about our firm's precedent library. Use only the documents provided.
For every answer, name the source document, the section or clause number, and its
"Last checked" date. If the library does not contain the answer, say "Not in the library"
and do not draft one from general knowledge. If a source is past its review date,
say so at the top. Never reproduce text that looks like a client name or address;
flag it instead.
This does three jobs. It makes every answer checkable, it makes silence the default when the library has nothing, and it surfaces stale documents. A lawyer who sees "Source: Licence to assign, clause 7.2, last checked 3 Feb 2026, review due 3 Feb 2027" knows exactly what to open and how far to trust it.
The retrieval test: twenty questions before anyone relies on it
Do not launch on a good demo. Write twenty questions in advance, with the right answer and source already known, and score the tool against them. A reasonable mix:
- Ten easy questions with an obvious source: "Which template do we use for a standard employment contract for a part-time worker?"
- Four questions needing two documents: "What differences are there between our short-form and long-form commercial leases?"
- Three questions the library cannot answer: the correct response is "Not in the library".
- Two questions about a retired or out-of-date precedent: the correct response flags that it is past review.
- One trap question that invites the tool to cite a document that does not exist.
Score each answer on three lines: right document, right clause, honest about gaps. A table helps:
| Question type | Count | Pass mark before launch |
|---|---|---|
| Easy, one source | 10 | 10 of 10 right document, 9 of 10 right clause |
| Two sources | 4 | 3 of 4 |
| Not in library | 3 | 3 of 3 say so |
| Out-of-date source | 2 | 2 of 2 flag it |
| Trap | 1 | Must not invent a source |
A fail on "not in the library" or the trap question is the serious one. It means the tool will fabricate when the library is silent, and a fabricated clause delivered with a convincing citation is more dangerous than no answer. If it fails, tighten the instruction, reduce the library to the relevant practice area, or choose another tool. The related risk with case law is covered in how to stop AI inventing case law.
A Tier B conversion, before and after
This is what turning a closed-file draft into a model looks like in practice. The original paragraph sits in a settlement agreement from a closed employment matter (all invented for illustration):
Before: "Mr [Surname] shall receive a payment of $18,500 in full and final settlement,
payable within 14 days of signature to the account held by his solicitors at [Bank],
and [Company name] Ltd waives any claim arising from the incident at the
[Site] depot on 12 March."
After: "[Employee] shall receive a payment of [Amount] in full and final settlement,
payable within [Number] days of signature to [Payee account details], and
[Employer] waives any claim arising from [Description of incident]."
Note: use where the employer also gives up a claim. Do not use where the settlement
includes a confidentiality clause; see Precedent 41.
Three things changed. The identifying facts became placeholders, the figures became prompts, and a drafting note tells the next reader when not to use the clause. The conversion took a paralegal about 20 minutes, and a fee earner approved it in five. At that rate, 60 models cost about 25 hours of paralegal time and five of lawyer time, which is a realistic budget to plan around.
What a retrieval test looks like when it goes wrong
Here is an illustrative result from the firm's first test. The question and the AI's reply were:
Q: Do we have a precedent for a tenant's break clause with a rolling notice period?
A: Yes. See "Commercial lease, break clause variation", clause 4.3, last checked
9 Jan 2025. It allows the tenant to end the lease on three months' notice.
The tester opens the document. The clause exists, but it is a fixed-date break, not a rolling one, and the review date passed two months ago. So the answer has the right document, a plausible clause number and a wrong description, and it did not warn about the stale review date. Scoring it, that is a fail on "right clause" and "flags out-of-date source".
The firm fixes this in two steps. First, it rewrites the standing instruction to add "Quote the clause wording in one sentence, copied exactly, before describing it." Second, it adds the review date to the first line of each document, because the tool had been reading the card in a separate file and missing it. On the second run, the tool quotes the fixed-date wording, the tester sees the mismatch at once, and the stale warning appears. Two small changes took that question from fail to pass, and the quoted wording became permanent policy because it makes errors visible in a second.
One more habit pays for itself: keep a short "do not rely on" list beside the library, naming precedents that exist for historical reasons but must not be reused, such as a form tied to a repealed procedure. Staff sometimes find these through the search and assume they are current, so the standing instruction should tell the tool to name anything on that list and decline to use it as a model.
Rolling it out to fee earners
Launch to one practice area first. Run a 45-minute session where each person asks the library three real questions from their current work, and note the failed searches. Give people a one-line rule on the page they will bookmark: "The library finds the document; you read the document." Do not announce it as the way to draft. Announce it as a faster way to find the firm's own approved wording.
After a month, review the usage sheet, fix the top three failed searches, retire anything that has not been opened, and then open the library to the next practice area. At that pace, the example firm could have all three practice areas on the library inside a quarter, and the cost is mostly the hours above plus a few business-plan seats. Because the library holds only Tier A and B material, the worst failure is an embarrassing wrong clause caught by a lawyer, not a client's file in the wrong hands.
Four things that go wrong in real libraries
The near-duplicate problem
Two versions of a share-purchase clause sit in the library, one amended after a lesson learned. The tool quotes the old one. The fix is process: when a precedent is updated, the old version moves to an archive folder that is not indexed, in the same step. If both stay, you are trusting the search to guess which is better.
The precedent that outlived its law
A will template last reviewed three years ago quietly refers to a form that has changed. Review dates and the "past review" warning exist to catch this. Where the law moves faster than your reviews, shorten the cycle for that practice area to six months.
The summary that sounds authoritative
Fee earners start pasting the AI's paraphrase into advice instead of opening the clause. Make the rule explicit: the AI's answer finds the document, and the lawyer reads and adapts the document. A paraphrase is never what goes to the client.
The folder nobody curates
Six months in, nobody has added a precedent, and the library is quietly decaying. Give curation an owner and a time budget, say two hours a month for the paralegal, and add a "propose a precedent" form. A library is a small recurring job, not a project that ends.
Running and reporting
Track a handful of numbers in a shared sheet: searches a week, answers marked "useful" by fee earners, documents added, documents retired, and failed searches (questions where the tool said "not in the library"). The failed searches are the most useful, because they list the precedents the firm needs next. After a quarter, review them in a ten-minute partner meeting and commission the three most requested.
If you want a second pair of eyes on the tier decisions and the permission design before you start, that is what my AI implementation consultation is for. The work itself is mostly sorting, cleaning and deciding, which a paralegal and a partner can do in a fortnight. Our guide on turning solved tickets into a searchable knowledge base shows the same pattern outside law, and the guide to cleaning messy data helps with the spreadsheet of precedent cards.
Questions before you point AI at your precedents
Can I use past client documents as precedents?
Only after they are cleaned of client identifiers and approved by a fee earner as a model. Raw client files stay out of the library. The safest rule is that the library holds templates and anonymised models, while live matters stay in the document management system under their own access controls.
Do I need a special legal knowledge product?
Not at first. A business-tier assistant with project files, or an AI feature in your document system, can handle a few hundred precedents, but check per-project file caps (40 files on ChatGPT Business when checked in November 2026) and split by practice area. Specialist products matter when you have thousands of documents, need fine-grained permissions, or want it integrated into drafting.
How do I stop the AI inventing a clause?
Instruct it to answer only from the library and to quote the source document and clause number. Then test it with questions whose answer is not in the library; it should say so. Any answer without a source reference is treated as unverified.
Who should be able to see which precedents?
Match the library to existing access: practice-area groups for their own precedents, a firm-wide group for general templates, and a small curator group with edit rights. Matters under an information barrier should never share a library with the other side's team.
How often should precedents be reviewed?
Set a review date on every precedent when it enters the library, commonly twelve months, and give each one an owner. Anything past its review date gets a visible warning in the search results, or is hidden until reviewed.
Further reads
- How Small Law Firms Use AI to Draft Letters and Routine Documents — Drafting routine letters from approved models.
- AI Contract Review for Small Firms: What It Catches and Misses — What AI catches and misses when reviewing against a model.
- AI Software for Solicitors: Data, Supervision and Supplier Checks — Supplier checks on data, supervision and contracts.
- How to Summarise Bundles and Transcripts With AI Safely — Summarising long documents safely once the library works.
- Which Legal Tasks Should a Small Firm Never Hand to AI? — The tasks that should never rely on a library answer alone.
- AI Readiness Checklist for Accountants, Solicitors, Consultants — Check the firm is ready before widening AI use.
- AI Implementation Plan for a Small Law Firm: The First 90 Days — A 90-day plan with the library as one early step.
- Family Law Document Automation: Gavel Workflows or Generative AI? — Rules-based assembly against prompting for family law documents: costs for a four-fee-earner firm, how each fails, and a hybrid that uses both.
- AI Tools and AI Development: The Complete 2026 Guide — the AI hub, including every tutorial in the AI-for-business series.
Sources: OpenAI help centre (Projects in ChatGPT), Anthropic help centre (What are projects), Microsoft Learn (Copilot privacy, and the Copilot licence comparison), Microsoft Support (Document Inspector), all checked November 2026. Figures in worked examples are illustrative.