Limai Docs
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 logging

Subcommands

limai split list-project

List the splitters in a project.

$limai split list-project

List 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 create

Create 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 segments

limai 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 complete

limai 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.pdf

Split asynchronously and wait

limai split file spl_abc123 ./multi-doc.pdf --async --wait

Split asynchronously and check later

limai split file spl_abc123 ./multi-doc.pdf --async
limai split status spl_abc123 --split-id split_xyz789

List all splits

limai split list spl_abc123 --json

On this page