Skip to main content
The Split.Run() method divides documents into sections based on descriptions you provide. You define what sections to look for, and Split identifies which pages belong to each section.
The Go SDK (v0.1.0-alpha.1) has a type definition mismatch for Split responses. The splits array is returned in the API response but not typed in the SDK. Use the raw JSON to access split results reliably.

Basic Usage


Method Signatures

Synchronous Split

Asynchronous Split


Parameters

SplitRunParams

SplitCategoryParam

Each split category requires:

Configuration Examples

With Partition Key

Use PartitionKey when a section type repeats multiple times:

With Split Rules


Response Structure

Due to SDK type limitations, access the response via raw JSON:

Error Handling


Next Steps