Skip to content

Dataset

Document template and form library datasets for AI training

A document template dataset is a company's library of reusable documents, such as letter, report and contract templates and intake and request forms with their field definitions, validation and conditional logic, together with de-identified completed instances of each. SourceX sources these libraries to a buyer's spec from established businesses whose operations, legal and administrative teams keep them in document automation, form builder and e-signature tools. Each dataset is de-identified and licensed for an agreed permitted use. The buyer confirms that templates licensed from a third-party forms publisher are excluded.

Dataset manifest

Sourced to your spec
What it is
Reusable templates and forms with field definitions and logic, each matched to completed instances
Typical systems
Word templates, fillable PDFs, DocuSign, Adobe Acrobat Sign, Google Forms, Jotform, HotDocs, PandaDoc
Typical history
Specified by the buyer; limited by how long the business kept template versions and submissions
Modality
Document files and form definitions, with slot values and review events as structured records
Delivery formats
Agreed per order; original .dotx, .docx and PDF files, form definitions as JSON, instances as JSONL
Preparation
Completed instances de-identified; ask for typed placeholders and confirm third-party publisher forms are excluded
Licensing
Rights reviewed per template for authorship; permitted use set in the license
Availability
Sourced to your spec; instance pairing depends on the business's tools; 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
template_idstringStable ID for one template or form, which every version and completed instance refers to.
template_kindenumLetter, report, contract, notice, intake form, request form or checklist, from the library's folders or an agreed classification.
titlestringThe template's name in the library, with any client or matter name replaced.
originobjectWho wrote the template, such as in-house staff, outside counsel or a vendor, and the rights-review flag recorded for it.
template_versionsarrayDated versions of the template with the editor role, change note and the period each was in force.
fixed_textstringThe template body with placeholders, merge fields and content controls kept in place as named markers.
slotsarrayEach fillable part: name, data type, allowed values, default, and whether it is typed, picked from a list, merged from a system or calculated.
optional_blocksarrayClauses, paragraphs or form sections that appear only under a condition, with the condition as the tool stores it.
logic_rulesarrayRequired-field, visibility, validation, calculation and routing rules, in the builder's own structure and in a normalized form.
instancesarrayCompleted documents or submissions made from this template, de-identified, each with its creation date and channel.
instances[].template_versionintegerThe template version the instance was made from, with a flag when that was inferred from text alignment.
instances[].slot_valuesobjectThe value in each slot, as a typed placeholder where it identified someone, with blank, hidden and not-applicable kept distinct.
instances[].off_template_editsarrayPlaces where fixed language was changed, added or deleted after generation, as a diff against the template version.
instances[].review_eventsarrayReturns for correction, declines, voids and resubmissions, with the stated reason and the fields changed in response.
Sample recordIllustrative

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

Example record

{
  "template_id": "tpl_0b62e4",
  "template_kind": "intake_form",
  "title": "New client intake, business tax engagement",
  "origin": {"author": "in_house", "rights_flag": "company_authored"},
  "template_versions": [
    {"v": 4, "in_force": ["2022-01-10", "2023-08-31"]},
    {"v": 5, "in_force": ["2023-09-01", null], "note": "Ownership table shown for partnerships"}
  ],
  "slots": [
    {
      "name": "entity_type",
      "type": "choice",
      "options": ["sole_prop", "partnership", "s_corp", "c_corp"],
      "required": true,
      "fill": "picked"
    },
    {"name": "tax_id", "type": "string", "required": true, "fill": "typed"},
    {"name": "owners", "type": "table", "fill": "typed"},
    {"name": "assigned_office", "type": "string", "fill": "merged_from_crm"}
  ],
  "optional_blocks": [{"block": "ownership_table", "show_when": "entity_type in [partnership, s_corp]"}],
  "logic_rules": [
    {"rule": "validation", "field": "tax_id", "pattern": "^\\d{2}-\\d{7}$"},
    {"rule": "routing", "when": "states_count > 1", "send_to": "multistate_review"}
  ],
  "instances": [
    {
      "instance_id": "sub_58a1",
      "template_version": 5,
      "created": "2024-02-12",
      "slot_values": {
        "entity_type": "partnership",
        "tax_id": "[EIN]",
        "owners": [{"name": "[PERSON_1]", "ownership_pct": 60}, {"name": "[PERSON_2]", "ownership_pct": 30}],
        "assigned_office": "[OFFICE_3]"
      },
      "off_template_edits": [],
      "review_events": [
        {
          "t": "2024-02-13",
          "event": "returned_for_correction",
          "reason": "Ownership adds to 90 percent. Confirm the third partner.",
          "fields_changed": ["owners"]
        },
        {"t": "2024-02-15", "event": "resubmitted_and_accepted"}
      ]
    },
    {
      "instance_id": "sub_61c7",
      "template_version": 5,
      "created": "2024-03-02",
      "slot_values": {
        "entity_type": "c_corp",
        "tax_id": "[EIN]",
        "owners": "hidden_by_logic",
        "assigned_office": "[OFFICE_1]"
      },
      "review_events": []
    }
  ]
}

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

What AI teams use it for

Generate documents from templates

Template and instance pairs train a model to fill slots and choose optional clauses from case facts while leaving fixed language alone.

Train form-filling agents

Field definitions with real submitted values teach an agent what each field expects, which sections apply and when to leave a field empty.

Recover form structure from documents

Machine-readable definitions are ground truth for models that detect fields, types and dependencies in a flat PDF or page image.

Check completeness before submission

Returned and corrected submissions train a checker to catch what a reviewer would send back, including rules the form does not enforce.

Evaluate on decided content

Held-out instances let you score only the slots and clauses a person chose, so copied boilerplate earns nothing.

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

What makes this data valuable

Instances per template

Many completed instances per template show the range of each slot, not one example.

Version pinned

Each instance names the template version it was made from, so a diff shows real edits.

Logic as definitions

Conditions and validation arrive machine-readable, not as a picture of the form.

Fill method labeled

Slots are marked as typed, picked, merged or calculated, which separates decisions from lookups.

Review events kept

Returns, declines and resubmissions with reasons give the scarce negative cases.

Authorship on record

Each template states who wrote it, so third-party forms can be told apart and left out.

Document stack

Document template dataset

This page covers document templates and form libraries.Illustrative

A template and its instances separate what is fixed from what was decided

A finished letter or contract does not say which of its words were boilerplate and which someone had to choose. Line the blank template up against many documents made from it and the split appears. Text identical in every instance is fixed language. Places that vary are slots. Blocks present in some instances and absent in others are options someone selected. That is direct supervision for document generation and form filling: the template is the instruction, the slot values are the target, and a model can be scored on the decided parts alone.

Not every slot is a decision. A merge field filled from a CRM or matter record is a lookup. A dropdown is a choice among listed options. A free-text box for scope of work is writing. In a Word template these are different objects: a MERGEFIELD code, a content control with a tag and a list of entries, an IF field that includes a paragraph conditionally. Ask for each slot to be labeled by how it was filled, and whether the record behind the merged values is included, since a model needs the facts the person had.

Two habits break the pairing. Templates change, and a Word document records only the file path of the template it was attached to, not that template's text or version. Compared with the file at that path today, an instance shows edits nobody made, so each instance has to be matched to the version in force when it was created. And staff often open last month's document and overwrite it instead of starting from the template, which leaves another recipient's values in the file and matches no version cleanly. What remains after alignment is the useful residue: fixed language that someone changed for one recipient, which should be delivered as a diff.

Form logic carries the business rules a scanned copy cannot show

A completed form on paper, or as a flattened PDF, shows one path through the form. It does not show the section that would have opened had another box been ticked, which fields were mandatory, what format the tax ID box would refuse, or where an answer sent the submission next. Those rules live in the form definition as required flags, show and hide conditions, validation patterns, calculations and branching. Read together they are the company's completeness and eligibility rules in executable form. They also settle what a blank means: skipped, not applicable or never shown.

Where the logic sits depends on the tool. A fillable PDF lists its fields under the document's AcroForm entry, each with a name, a type, flags such as required and read-only, and often JavaScript for formatting and validation. Flattening merges the fields into the page and discards all of it. An e-signature template assigns fields to recipient roles and can show a field only when another holds a given value. Web form builders store branching and validation in their own definition format, which a printed copy of the blank form drops. Ask for the definition itself and the version behind each submission, because questions are renamed, added and removed over time.

Rejections are stored in fewer places than buyers expect. A validation message shown in the browser usually leaves no record, because the blocked attempt was never saved. What is kept sits on the review side: a submission returned for correction with a reason, an envelope declined or voided, and the corrected resubmission. These events are scarce, and they expose rules the form never encoded, such as a reviewer sending back an ownership table that adds up to ninety percent.

What to check before licensing

  • Confirm completed instances are de-identified, and check on a sample that replaced values keep their type and format, so a date is still a date and an ID keeps its shape.
  • Ask which templates came from a third-party forms publisher, an industry association or a software vendor's sample library, and confirm they are excluded.
  • Count instances per template and per template version on the sample. Blank templates with no instances support schema work but not generation or filling.
  • Ask how each instance was matched to a template version. A stored template ID is stronger than a match inferred from text alignment.
  • Check that form logic arrives as a machine-readable definition, not a PDF or screenshot, and that hidden, blank and not-applicable values can be told apart.
  • Ask whether returns, declines and resubmissions are recorded, in which system, and what share of instances have any.
  • Check signature images, initials, free-text boxes and attachments for residual personal data. If any form holds health information, confirm the de-identification method and jurisdiction with counsel.

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

Why license completed instances and not just the templates?

Because a template alone shows the fixed language and the empty slots, not what people put in them. Completed instances show the range of values each slot takes, which optional clauses get chosen together, and where staff departed from the template. Say in your request whether instances are required and the minimum number per template you would accept.

How are completed instances matched to their template?

Through a stored reference where the tool keeps one, and by text alignment where it does not. E-signature and document automation tools usually record which template a document was generated from. A file made by hand from a Word template records only that template's file path, not its version, so it is matched by aligning fixed language against each template version and flagged as inferred.

What form logic can be exported?

Field definitions, conditional rules and validation settings can usually be exported, in a structure that depends on the tool. Fillable PDFs carry field names, types, flags and scripts inside the file. E-signature templates and many web form builders expose their definitions through an export or an API. Logic built with custom scripts or held in a downstream workflow may not export cleanly, so ask for it to be listed.

Are standard industry forms included?

They should be excluded when a third party owns them, and you should confirm that they were. Many businesses fill in standard forms issued by an industry body, a forms publisher or a software vendor, and may hold only a license to use them. Ask for each template's origin to be recorded, and have counsel review any template whose authorship is unclear. Templates the business wrote itself are the ones to put in scope.

How are completed instances de-identified?

Values that identify a person or company are removed or replaced before delivery. Ask for typed placeholders, so a name slot still reads as a name and an ID keeps its shape. The method is recorded for each dataset and a sample is checked after processing. No method is perfect, so check free-text boxes, signature images and attachments on your sample.

How is this different from scanned forms or a document archive?

The unit here is the template with its definition and its instances. A scanned-form dataset pairs page images with keyed values and teaches reading. A document archive holds finished files with no marker of which words came from a template. This dataset keeps the blank form, its field logic and the documents made from it together.

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