Skip to content

Dataset

Legal datasets of law firm matter files for AI training

A legal dataset of matter files is a set of complete files for individual legal matters, each holding the pleadings, correspondence, attorney notes, drafts, docket and deadline entries and the outcome, with every document tied to its matter number and date. SourceX sources these from established businesses such as law firms and corporate legal departments that keep them in matter management and document management systems. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Whole files for individual legal matters, every document tied to a matter number, a date and a stage
Typical systems
iManage Work, NetDocuments, Clio Manage, Filevine, Litify, rules-based docketing calendars
Typical history
Specified by the buyer; closed matters with a known outcome, from opening to closing
Modality
Word and PDF documents, filed emails and notes, plus docket and deadline records
Delivery formats
Agreed per order; original files with extracted text, JSONL metadata, docket and deadline tables
Preparation
Parties, counsel and witnesses pseudonymized consistently; privilege protocol and sealed-material exclusions set per dataset, for you to confirm
Licensing
Rights reviewed matter by matter; each client's own approval is yours to confirm with counsel; permitted use set in the license
Availability
Sourced to your spec by practice area and matter type; supply is not guaranteed
Office documents and PDFsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
matter_idstringPseudonymous matter number carried by every document, docket entry and deadline in the file.
practice_areaenumThe firm's own practice group and matter type codes, plus an agreed common label.
representationobjectThe side the firm acted for, the forum or deal type and the jurisdiction.
timelineobjectOpened and closed dates and the dated stage changes between them, such as pleadings, discovery and mediation.
partiesarrayPseudonymous parties, counsel, insurers, experts and witnesses with their roles, stable across the whole file.
documentsarrayEach file with its document number and version, class, folder, author role, and separate document, filed and received dates.
docket_entriesarrayThe court's numbered entries for the matter with date, filer and description, linked to the filed document.
deadlinesarrayCalendar entries with the trigger event, the rule or order behind the date, due date, completion date and any recalculation.
correspondencearrayLetters and filed emails with sender and recipient roles, such as client, opposing counsel or adjuster, and thread links.
notesarrayAttorney and paralegal file notes and call memos, with author role, date and the privilege category assigned.
outcomeobjectHow the matter ended, such as judgment, dismissal, settlement or closing, with the date and any disclosable terms.
withheldarrayDocuments removed under the privilege protocol, a seal or a protective order, kept as placeholders with date, type and reason.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "matter_id": "m_2f9d07",
  "practice_area": "commercial_litigation",
  "representation": {
    "side": "defendant",
    "forum": "us_district_court"
  },
  "timeline": {
    "opened": "2021-03-09",
    "closed": "2022-08-30"
  },
  "docket_entries": [
    {
      "no": 1,
      "date": "2021-03-02",
      "text": "COMPLAINT against [PTY_1]"
    },
    {
      "no": 9,
      "date": "2021-04-13",
      "text": "ANSWER and COUNTERCLAIM by [PTY_1]",
      "doc_id": "doc_000147"
    },
    {
      "no": 17,
      "date": "2021-06-21",
      "text": "SCHEDULING ORDER"
    },
    {
      "no": 31,
      "date": "2021-12-17",
      "text": "ORDER amending scheduling order"
    }
  ],
  "deadlines": [
    {
      "event": "answer_due",
      "trigger": "service 2021-03-08",
      "basis": "FRCP 12(a)(1)(A)(i)",
      "due": "2021-03-29",
      "status": "superseded"
    },
    {
      "event": "answer_due",
      "basis": "order on stipulation, docket no. 6",
      "due": "2021-04-13",
      "completed": "2021-04-13"
    },
    {
      "event": "fact_discovery_cutoff",
      "basis": "docket no. 17",
      "due": "2022-01-14",
      "status": "superseded"
    },
    {
      "event": "fact_discovery_cutoff",
      "basis": "docket no. 31",
      "due": "2022-03-15",
      "completed": "2022-03-15"
    }
  ],
  "documents": [
    {
      "doc_id": "doc_000147",
      "version": 6,
      "class": "pleading",
      "title": "Answer and Counterclaim",
      "document_date": "2021-04-13",
      "filed_date": "2021-04-13",
      "first_draft": "2021-03-26"
    }
  ],
  "notes": [
    {
      "doc_id": "doc_000131",
      "author_role": "associate",
      "date": "2021-03-23",
      "privilege": "none_claimed",
      "text": "Call with counsel for [PTY_2]. They agree to move the answer date to April 13. We draft the stipulation; they sign by Friday."
    }
  ],
  "withheld": [
    {
      "doc_id": "doc_000139",
      "class": "client_call_note",
      "date": "2021-04-06",
      "reason": "attorney_client_privilege"
    },
    {
      "doc_id": "doc_000512",
      "class": "expert_report",
      "date": "2022-02-18",
      "reason": "protective_order"
    }
  ],
  "outcome": {
    "type": "settled_at_mediation",
    "date": "2022-06-02",
    "terms": "confidential, not included"
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Replay a matter step by step

Cut a file at any docket entry, ask a model what should happen next, and compare its answer with what the lawyers filed, sent or calendared.

Train legal agents on procedure

Deadline chains tied to trigger events and rules teach the order of procedural steps and what moves when a court amends its schedule.

Draft from the file, not from a prompt

Pair each filed document with the notes, letters and earlier filings that existed on its date to train drafting grounded in a real record.

Summarize a matter for a client

Status letters and closing memos are lawyer-written summaries of the file at a point in time, usable as targets.

Test retrieval inside one matter

When the expert disclosure was due, and under which order, is a question whose answer sits in one entry among hundreds of documents.

Use-case guides: Legal AI, Document AI, enterprise search and RAG, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Closed with a known outcome

Matters that ran to judgment, settlement or closing, with the ending recorded in the file.

Reliable document dates

Document, filed and received dates kept apart from system created and modified dates.

Calendar history

Superseded deadlines kept with the entry that replaced them, not overwritten.

One matter type per batch

Files grouped by practice area and matter type, so their document sets are comparable.

Email filed to the matter

Correspondence saved into the matter workspace, not left in personal mailboxes.

Placeholders for withheld items

Removed documents shown as dated stubs, so the sequence stays intact.

Document stack

Legal dataset

This page covers legal matter files.Illustrative

A matter file is a long-horizon task record

A matter file records one piece of professional work from the day it opened to the day it closed. Read as a folder tree, it is a pile: pleadings in one place, correspondence in another. Read against its docket and deadline calendar, it is a sequence. The docket lists what was filed and when. The calendar lists what the lawyers had to do next and why. Together they let a buyer rebuild what the lawyer knew, and what was due, at each step.

The calendar carries the procedure. Many firms compute deadlines with rules-based calendaring tools: a trigger event such as service of a complaint is entered, and the software generates the dependent dates from the court's rules. Under the Federal Rules of Civil Procedure, a served defendant generally has 21 days to answer, and a scheduling order then sets cutoffs that can be changed only for good cause and with the judge's consent. When the order is amended, the dates behind it move. A calendar that keeps the superseded dates shows that movement. One that overwrites them leaves letters in the file referring to deadlines that no longer appear.

Replay depends on dates, and each document has several. The date typed on a letter, the date it was served, the date it was filed and the date the system last modified the file can all differ, and a migration between document systems can reset the last one. Transactional matters have no court docket, so their clock is the closing checklist and the email record. With the timeline intact, a file supports a task no document collection can: given everything in the file on one day, what is the next step, and what did the lawyers do.

Scope by practice area and matter type before volume

Matter count is the wrong first number to ask for. A personal injury file holds an intake sheet, medical records and bills, lien letters, a demand package, adjuster correspondence and a settlement statement showing how the money was divided. A commercial dispute holds a complaint and answer, written discovery, deposition notices, expert disclosures, motions and orders. A transactional matter has no pleadings at all: it has a term sheet, a diligence request list, drafts of the agreements, a closing checklist and the signed closing set. The three share almost no document types.

They share few decision points either. The injury lawyer decides when treatment is complete enough to send a demand and whether an offer covers the liens. The commercial litigator decides whether to move to dismiss or answer, which discovery disputes are worth a motion and when to mediate. The deal lawyer decides which diligence findings change the agreement and which closing conditions can be waived. A model trained on a mixed set learns a blur of all three. Volume inside one matter type is what supplies repeated examples of the same decision under different facts.

A request should name the practice area, the matter type, the side represented, the forum and the stage reached, and only then a count. Firm matter type codes help but are local: one firm's general litigation code is another firm's four codes, so ask for the code list and a sample from each. Ask also for the split between matters that settled early and matters that went through discovery or trial, since an early settlement leaves a thin file.

What to check before licensing

  • Confirm that the client in each matter, not only the firm, approved release of its file. A lawyer's duty of confidentiality generally covers all information relating to the representation, and the rules differ by state, so have counsel review how consent was documented.
  • Agree a written privilege protocol before any sample: which attorney-client communications and work product are included, which are withheld, who made the calls and how withheld items are marked.
  • Confirm that sealed filings and material designated under a protective order were excluded, including copies attached to emails or quoted in drafts.
  • Check that the other side's productions, medical records and expert reports in the file are the holder's to share. A matter file holds much that neither the firm nor the client wrote.
  • Pick one matter in the sample and rebuild its timeline from the docket, the deadline entries and the document dates. Count the documents whose only date is a system timestamp.
  • Ask whether superseded deadlines were kept, and whether docket entries are the court's own or the firm's summary of them.
  • Test pseudonyms across one file. The same party, lawyer, judge and witness should carry one replacement in captions, email headers, signature blocks and scanned exhibits.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

What is in a matter file that court records do not show?

Most of it. A court docket holds what was filed, and many matters are never filed at all. The file adds correspondence with the client and the other side, attorney notes, drafts that were never sent, discovery exchanged between the parties, the deadline calendar and the terms on which the matter ended. Those records sit with the firm or legal department that handled the matter, not in any public source.

How is privileged material handled?

It should be handled under a written protocol that you agree for the dataset before any delivery. Attorney-client communications and work product make up much of a matter file, so the scope has to say which categories the client agreed to release, which are withheld and how withheld documents are marked. Ask who applied the protocol, and have your own counsel review it, including what release means for the client's privilege. Withheld items should remain as dated placeholders.

Can I request only litigation or only transactional matters?

Yes, and you should be that specific. Name the practice area, the matter type, the side represented, the forum or deal type and the stage the matters reached. Supply is not guaranteed for a given type, since it depends on which holders and clients agree to release closed matters.

Do files include the time entries and invoices for the matter?

Not unless you ask for them. Time narratives and invoices usually sit in the firm's billing system, not the matter workspace, and they raise their own questions about rates and client confidentiality. They can be requested as a companion set keyed to the same matter number. Say in your request whether you need them and whether rates can be masked.

How are the names of parties, lawyers and judges treated?

Personal details are removed or replaced before delivery, and the method is recorded for each dataset. In a matter file the names appear in captions, signature blocks, email headers and scanned pages, so replacement has to be consistent across all of them. Public court filings in the same matter can make re-identification easier, so ask how case numbers, courts and dates were generalized. No de-identification method is perfect.

Are open matters ever included?

Not as a rule. Closed matters are the usual scope: a closed file has a known outcome, and releasing an active file raises obvious risks for the client. Even for closed matters, check whether an appeal, a related proceeding or the confidentiality terms of a settlement still restrict what can be shared, and ask what the holder's retention policy removed from older files.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies