Split
Category: Processing
The Split activity groups the transaction's pages into separate documents. A single upload (or batch of uploads) often contains several documents, and Split decides where each one begins and ends.
Settings
The Split step's panel has five blocks, all folded when it opens. Folded, each block says what it holds, in grey where a value is what a new step starts with and in black where someone changed it. A step saved before a setting existed shows what that setting does without it. A mode that reads no model (one document per file, per page, or all in one) has only the Splitting and Exits blocks.
The classes are the project's, the same ones the Classify step uses, and the step chooses which of them it cuts with. The split fields, the guidelines, the window and the model are the step's own.
Splitting. The Split mode: how pages are grouped into documents (see Split modes). A new step starts with Intelligent LLM Splitting; a step saved without a mode runs One document per file. The switch in the panel's header turns the step off: see below. With a mode that reads a model, a card sums up Split Settings: the classes the step cuts with (all of them, some, or none), its split fields and any description of its own. Edit split settings opens it.
Instructions. The Splitting guidelines: extra instructions for the model, such as what starts a document when the fields do not show it. They are this step's own, saved with the workflow. A new step starts with the two in Blank pages and cover sheets; change them, add your own or delete them. A guideline or a description can also refer to a value the transaction brings, such as {{ meta:po_number }}: see Metadata in Guidelines and Descriptions.
Model.
| Setting | What it does | A new step starts with |
|---|---|---|
| Model | The model this step uses. Tenant default follows the model your organization set for splitting. | Tenant default |
| What the model reads | Image and Text, Image Only or Text Only. With Image and Text the model sees a new letterhead or layout as well as the words. A text-only model reads Text Only. | Image and Text |
| Send images of pages without text | With Text Only: still send the image of a page that has no text (a blank page, a photo), so the model can see it. See Pages without text. | Off |
Advanced.
| Setting | What it does | A new step starts with |
|---|---|---|
| Window size | How many consecutive pages the model looks at in one go when deciding where a document ends. A larger window gives more context around a possible boundary and costs more per window. A step saved without a window reads 2. | 10 |
| Step size | How far the window moves between checks, from 1 up to one less than the window size, so every boundary is checked and the last window ends on the last page. Changing the window size sets the step to that maximum, the cheapest choice: each boundary is checked once, in context, and each page is sent about once. A smaller step checks each boundary in several windows. A step saved without a window reads 1. | 9 |
| Answer length | The longest answer the model may give. | Your organization's length for splitting |
Exits. Where the transaction goes after the step, and the failure exit.
Split Settings
The dialog shows How splitting works and the Splitting Guidelines at the top, the classes on the left, and the split fields of the class selected on the right.
- The classes are the project's, shared by every step. Add class adds one to the project; the icons on a class rename, duplicate or delete it, for every step, as in the classes dialog. Select a class to change its name or description.
- The tick boxes. Every class has one, and every class starts ticked: a step with every box ticked cuts with every class, and any class added later. Clear a box and the step cuts with the ticked ones only; the cleared classes fold into Not used. Tick the last one again, or choose Use all classes, and the step works with every class again. A line above the classes says which. With none ticked, the step cuts by its split fields alone. A Split step's choice never limits what a Classify step assigns: Split never sets a document's class, so the two can work with the same classes or different ones. A class you add is used by every step that works with all classes; a step that chooses gets it ticked here.
- Description for splitting. A class's description is shared: every step that uses the class sends it. When classification (or another step) reads it too, the selected class says so and offers Use a different description for splitting (in the step's name when there are several Split steps), for when what marks the start of a document of that class is not what the description says. The box starts empty, with the shared text in grey, and nothing is saved until you type. Clearing it, or Use the shared description, goes back to the shared one. Send no description sends the class name alone. The class is marked while it has one.
- Split fields: fields that help the model see where a document starts (a new number, date or party means a new document), for every class (Common Fields) and per class. A new step starts with document number, document date, issuing party, receiving party and page number for every class.
- Pages of any other kind go to the project's catch-all class (Unknown, or the name you gave it) while the step works with it.
A Split step saved when it could keep a list of document types of its own is converted the next time the project is opened: each type becomes the project's class of the same id or name, a type the project does not have is added to it, and the step works with exactly those, keeping its own description of a class where it differed. Steps that worked with every class keep the classes they had, so none starts using an added one; a Classify step given a choice this way stops discovering new classes. Published versions keep running as they were published; the next publish carries the converted step.
Intelligent splitting always analyzes every page of the transaction. There is no setting to look at only the first few pages, because a page the model never sees could not be placed in any document.
Split modes
| Mode | Behavior |
|---|---|
| One document per file | Each file added to the transaction becomes one document, keeping its page order. Documents never span files. |
| One document per page | Every page becomes its own single-page document. |
| All pages in one document | The whole transaction is a single document, in the order the files were added. |
| Intelligent LLM splitting | The model detects document boundaries from content. All pages are analyzed as one stream, so a document may span several files. |
| Intelligent LLM splitting within files | The model detects document boundaries inside each file. File borders are always document borders, so documents never span files. |
Pages always have to be grouped into documents, so there is no "no split" outcome: Import makes each file one document. A Split step that is off (the switch in its panel's header) leaves the documents as they are, so changes an earlier step made to them (a Data Transform, or a reviewer's splits and merges before a Send To back to this step) are kept: every file stays one document.
Blank pages and cover sheets
The model is not told how to place a blank page or a fax cover sheet, and left to itself it often makes each one a document of its own: the empty back of a page scanned two-sided, or the cover sent in front of an invoice. A new Split step starts with two guidelines that place them:
A blank page, such as the empty back of a one-sided page scanned two-sided, belongs to the document of the page before it: it never starts a new document. A fax cover sheet, and any pages of terms sent with it, belong to the document sent behind them: there is no border between the cover, those pages and that document.
On our test batches of scanned and faxed business documents, with them no blank back was cut off from the page before it any more, and most cuts at cover sheets went. They are ordinary guidelines. Delete the second sentence if your cover sheets are documents of their own, or narrow it to some document types ("for invoices, ..."). A step saved before they were added has no guidelines unless someone wrote them. To get the same behaviour, paste the text above into its Splitting guidelines.
Per-file split policies
API clients and connectors can pin a split constraint on individual files at upload time, overriding the step's mode for just those files. A file can be marked as exactly one document, or as self-contained (one or more whole documents, analyzed inside the file only). The email import connector uses this to keep the email body separate from its attachments. See Per-File Split Policies.
Pages without text
A page with no text is a normal page: a blank page, a photo, a signature sheet. OCR reads it and finds nothing, and that is not an error. This applies to the intelligent modes, which send pages to the model.
- Some pages have text: splitting works as usual. Each page without text is marked to the model as "(no text on this page)". A blank page between two documents often helps the model see the boundary.
- No page has text, and page images are sent (the model reads images, or Send images of pages without text is on): the model splits from the images.
- No page has text, and no image is sent: there is nothing for the model to read, so it is not called. Each file becomes one document, with split confidence 0, so the Human Review step flags the split for a person to check. The Activity Log names the pages.
A page that never went through OCR is different. If the step sends text and a page has no OCR result at all (there is no OCR step before Split, or OCR is off in it), and no image of the page is sent, the step fails at once and names the pages. Add an OCR step before Split, or send page images.