> For the complete documentation index, see [llms.txt](https://typless.gitbook.io/typlessapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://typless.gitbook.io/typlessapi/typless/training.md). Agents can also search and read this documentation through its [MCP server](https://typless.gitbook.io/typlessapi/~gitbook/mcp).

# Training

Training is how [trainable models](https://typless.gitbook.io/typlessapi/typless/document-type/model-type.md#trainable-models) learn. Since you are the author of the document types and the structure is not known in advance, you have to [build a dataset](https://typless.gitbook.io/typlessapi/typless/training/building-a-dataset.md) for your documents that you are automating. Providing context is done by feeding the data to Typless, which then starts recognizing and building connections between the documents. Typless trains one model per [supplier](https://typless.gitbook.io/typlessapi/typless/suppliers.md).

{% hint style="info" %}
📘 <mark style="color:blue;">**Pretrained models need no training**</mark>

Document types with a [pretrained model](https://typless.gitbook.io/typlessapi/typless/document-type/model-type.md#pretrained-models) extract data from the first document. Your confirmed documents still matter: they create the suppliers, so you can steer each supplier with a description. See [Suppliers](https://typless.gitbook.io/typlessapi/typless/suppliers.md).
{% endhint %}

### Number of documents for precise extraction

<table><thead><tr><th width="313">Quality</th><th width="229">Metadata</th><th>Line items</th></tr></thead><tbody><tr><td>Under 300DPI, skewed scans, ...</td><td>1 - 4</td><td>1 - 7</td></tr><tr><td>300 DPI, original PDFs, ...</td><td>1 - 3</td><td>1 - 5</td></tr></tbody></table>

{% hint style="info" %}
**📘&#x20;**<mark style="color:blue;">**Train using just values - No additional data needed**</mark>

Forget about special annotation or template building process. Typless takes care of everything - Automatically!
{% endhint %}

### Triggering training

{% hint style="success" %}
**👍&#x20;**<mark style="color:green;">**Training is executed automatically every day at 22:00 UTC**</mark>

For **your suppliers** with new documents in the [dataset](https://typless.gitbook.io/typlessapi/typless/training/building-a-dataset.md) of all your document types.\
**Free of charge**
{% endhint %}

The daily training retrains a supplier after each of its first 10 new documents, then after every 5th document up to 30 documents, and after every 10th document after that.

If you want to see results immediately, you can trigger the training yourself:

* **All suppliers of a document type**: in the [Typless hub](https://app.typless.com), open ***Document types***, open the actions menu of your document type and choose ***Train models***.
* **One supplier**: open the document type's ***Models*** view and choose ***Train model*** in the supplier's actions menu, see [Managing models](https://typless.gitbook.io/typlessapi/typless/training/managing-models.md).
* **Through the API**: call [`start-training`](https://typless.gitbook.io/typlessapi/api-docs/api-schema.md#api-start-training) with the document type name.

While a supplier is training, its status is ***Models in training***. Training needs a subscription that includes training; with an expired or cancelled subscription, training doesn't start.
