v2025-04-21
Splitter outputs follow a standardized format that you’ll encounter when working with evaluation sets, webhooks, and API responses.
1type SplitterOutput = {2 splits: Split[];3};45type Split = {6 classificationId: string; // The id of the classification type (set in the processor config)7 type: string; // The type of the split document (set in the processor config), corresponds to the classificationId.8 startPage: number; // The start page of the split document9 endPage: number; // The end page of the split document1011 // Fields included in outputs, but not required for creating an evaluation set item12 identifier?: string; // Identifier for the split document (e.g. invoice number)13 observation?: string; // Explanation of the results14};
1{2 "splits": [3 {4 "classificationId": "invoice",5 "type": "invoice",6 "startPage": 1,7 "endPage": 38 },9 {10 "classificationId": "other",11 "type": "other",12 "startPage": 4,13 "endPage": 514 }15 ]16}