Skip to main content

Basic Usage

Segment Options

Use SegmentOptions to configure segmentation behavior:

Checkpoint Reuse

Use checkpoints to avoid re-parsing a document when running segmentation after conversion. First convert with save_checkpoint=True, then segment using the returned checkpoint_id:

Segmentation Result

The result object contains the segmentation data alongside standard conversion fields:

Async Usage

Next Steps

Segmentation Recipe

Learn more about document segmentation patterns and use cases.

Structured Extraction

Extract structured data from documents using JSON schemas.

Document Conversion

Convert documents to Markdown, HTML, JSON, or chunks.