Document processor outputs follow standardized formats based on the processor type.
Understanding these formats is essential when working with evaluation sets, webhooks, and API responses.
Splitter Output Type
Type Definition
1
type SplitterOutput = {
2
splits: Split[];
3
};
4
5
type 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 document
9
endPage: number; // The end page of the split document
10
11
// Fields included in outputs, but not required for creating an evaluation set item
12
identifier?: string; // Identifier for the split document (e.g. invoice number)
13
observation?: string; // Explanation of the results