CLI Reference
split
Document splitting commands
$
limai split <subcommand>Manage splitters, and upload and split multi-document files into individual segments.
Options
--jsonOutput raw JSON--verboseEnable debug loggingSubcommands
limai split list-project
List the splitters in a project.
$
limai split list-projectList the splitters in a project.
Options
--project-id <id>Project ID (required)limai split create
Create a splitter. Its segments are sent on to either a model or a classifier.
$
limai split createCreate a splitter.
Options
--name <name>Splitter name (required)--output-type <type>Output type: DEPLOYMENT or CLASSIFIER (required)--project-id <id>Project ID (required)--deployment-id <id>ID of the model segments are sent to--classifier-id <id>ID of the classifier segments are sent to--prompt <text>Split prompt(default: Split this document into individual documents.)--merge-segmentsMerge segmentslimai split file <splitterId> <file>
Upload a file and split it into segments. By default, runs synchronously.
$
limai split file <splitterId> <file>Upload and split a document.
Options
--asyncUse asynchronous splitting (returns split ID)--waitWait for async split to completelimai split status <splitterId>
Check the status of an asynchronous split.
$
limai split status <splitterId>Check split status.
Options
--split-id <id>Split ID (required)limai split list <splitterId>
List all splits for a splitter.
limai split list <splitterId>Examples
Split a document synchronously
limai split file spl_abc123 ./multi-doc.pdfSplit asynchronously and wait
limai split file spl_abc123 ./multi-doc.pdf --async --waitSplit asynchronously and check later
limai split file spl_abc123 ./multi-doc.pdf --async
limai split status spl_abc123 --split-id split_xyz789List all splits
limai split list spl_abc123 --json