> 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/suppliers.md). Agents can also search and read this documentation through its [MCP server](https://typless.gitbook.io/typlessapi/~gitbook/mcp).

# Suppliers

How Typless groups documents by supplier and keeps one model per supplier

Inside a document type, Typless keeps one **supplier** (also called a **model**) for every company that issues the documents, for example every vendor that sends you invoices. Suppliers are how Typless learns: trainable models train one model per supplier, and pretrained models apply each supplier's own description.

## How a supplier is created

A supplier is created from your feedback. When you confirm a document with correct values, through [add-document-feedback](https://typless.gitbook.io/typlessapi/api-docs/api-schema.md#api-add-document-feedback), [add-document](https://typless.gitbook.io/typlessapi/api-docs/api-schema.md#api-add-document) or the [training room](https://typless.gitbook.io/typlessapi/typless-hub/document-type.md#training-room), Typless reads the value of the `supplier_name` field:

* If the document type has no supplier with that name yet, Typless creates it and adds the document to its dataset.
* If the supplier exists, the document is added to its dataset.

Supplier names are matched case-insensitively, so `ACME`, `Acme` and `acme` are the same supplier. Spaces and accents count, so send the supplier name the same way every time, for example from your supplier master data.

{% hint style="info" %}
📘 <mark style="color:blue;">**Extraction alone doesn't create a supplier**</mark>

An extracted document is stored as unconfirmed. Only the confirmed values (feedback) create the supplier and teach Typless how its documents look.
{% endhint %}

## How a document is matched to a supplier

When a new document arrives, Typless recognises its supplier from the documents you confirmed earlier in the document type. If it recognises the supplier:

* **Trainable model**: the supplier's trained model extracts the data. A document from an unknown supplier gets no reliable values until you confirm one of its documents and the supplier is trained.
* **Pretrained model**: the pretrained model extracts the data in any case. If the document matches a supplier, that supplier's description is added to the extraction.

The `supplier_id` of the matched supplier is returned with the extraction result, see [Understanding response](https://typless.gitbook.io/typlessapi/typless/data-extraction.md#understanding-response).

## Steering a pretrained model per supplier

For pretrained document types, confirmed documents are not used for training. Their job is to create and recognise the supplier, so that you can attach a **supplier description**: short instructions that apply only to that supplier's documents.

A typical loop:

1. Extract documents with a pretrained document type.
2. Confirm each document with the correct values (feedback). Each new supplier appears in the document type's ***Models*** view.
3. When one supplier's documents come back wrong in the same way, open ***Models***, choose ***Edit description*** for that supplier and describe the rule, for example *This supplier writes dates as MM/DD/YYYY.*
4. The next documents of that supplier are extracted with the description.

The [Supplier descriptions](https://typless.gitbook.io/typlessapi/automation-use-cases/supplier-descriptions.md) use case walks through this with code. Field descriptions and the document type description are covered in [Descriptions and presets](https://typless.gitbook.io/typlessapi/typless/document-type/descriptions-and-presets.md).

## Managing suppliers

You can see and manage the suppliers of a document type in the Typless hub: their confidence, number of trained documents and status, train or lock them, view their dataset, edit their description or delete them. See [Managing models](https://typless.gitbook.io/typlessapi/typless/training/managing-models.md).
