PROCESSORS · SEGMENT

The file says one PDF. Inside are a dozen separate documents.

Batch-scanned mail and stapled intake packets arrive as one file that's really many documents. Segment finds each boundary and splits the file into typed, page-ranged pieces, each tagged high, medium, or low confidence.

BEFORE · AFTER

A 12-page scan, split into the four documents inside it.

This is a single inbound PDF — a claims packet that arrived as one continuous scan. Segment reads the pages, marks the seams, and returns four labeled documents with the exact page range of each.

  • Claim form pages 1–3 · confidence high
  • Police report pages 4–7 · confidence high
  • Repair estimate pages 8–10 · confidence medium
  • Damage photos pages 11–12 · confidence medium
Page-level split returns the ranges alone; block-level parses as it splits, so you can run an optimized extraction on each document.
TWO MODES

Split at the page, or at the block.

Pick how deep the seams go. Page-level split is the fast, cheap pass; block-level goes inside the page and hands back the parsed markdown.

PAGE-LEVEL · SPLIT

Boundaries at the page

Detects where one document ends and the next begins, without a full parse. It returns just the segment boundaries — page ranges and titles — and no OCR text, so it's the fastest and cheapest way to break a packet into its parts. Priced at $0.50 per 1,000 pages.

BLOCK-LEVEL

Boundaries at the block

Lets a seam fall mid-page at a specific content block, guided by an optional custom prompt — "start a new segment at each invoice." It runs a full Convert alongside the split and returns the parsed markdown for each segment. Priced as convert + segment, $4.50 per 1,000 pages.

CAPABILITIES

What Segment does.

S · 01 AUTO-DETECT

It finds the boundaries on its own

Hand Segment a batch-scanned PDF and it works out where one document ends and the next begins. No template to maintain, no separator pages to insert, no manual splitting step.

S · 02 NAMED SEGMENTS

Each document comes back labeled and ranged

Every segment returns with a type label — invoice, contract, receipt — the pages it spans, and a confidence level. That is enough to route each one to the right downstream processor without a separate classification pass.

S · 03 REAL-WORLD INTAKE

Scans, phone photos, and handwriting included

The packets you actually receive are scanned crooked, photographed on a phone, and half handwritten. Convert reads them first, across 90+ languages, so even a messy inbound PDF still splits cleanly.

S · 04 PIPELINE STEP

The opening move in a chain

Run Segment first in a Pipeline to split the packet, then send each component to Convert and Extract on the schema that fits its type.

SDK · PYTHON

Describe the documents you expect; iterate over what comes back.

A short schema names the section types worth looking for. Segment returns each match as a typed record you can loop over and hand straight to the processor that handles that type.

import json
from datalab_sdk import DatalabClient, SegmentOptions

client = DatalabClient()

# Name the segment types you expect. The schema tells Segment what
# to look for in a multi-document packet.
schema = json.dumps({
    "segments": [
        {"name": "invoice",  "description": "Vendor invoice with line items"},
        {"name": "contract", "description": "Signed agreement or T&Cs"},
        {"name": "receipt",  "description": "Proof of payment"},
    ],
})

options = SegmentOptions(segmentation_schema=schema, mode="balanced")
result = client.segment("intake_packet.pdf", options=options)

for segment in result.segmentation_results:
    print(f"{segment['name']}: pages {segment['page_range']}")

# Example response:
# invoice:   pages [0, 1, 2]
# contract:  pages [3, 4]
# receipt:   pages [5]
NAME · PAGES · CONFIDENCE
WHY SEGMENT

Segment finds the seams by reading the document itself.

CONTENT-BASED No separator pages

Barcode and blank-page separators assume you control the scanner. The packets you receive from outside have none, so Segment reads the content itself to find where one document ends and the next begins.

REVIEWABLE Page ranges and confidence

Every segment comes back with the exact pages it spans and a confidence level, so you can route the confident splits automatically and review only the ones it was unsure about.

FEEDS THE PIPELINE The split is step one

Splitting is rarely the goal on its own. Run Segment first in a pipeline, and the type it detects at each seam decides the schema that component runs against in Convert and Extract.

DEPLOYMENT

Run intake splitting wherever the documents have to stay.

  • Managed cloud

    Start with an API key — nothing to host or operate.

    Sign up →
  • EU data residency

    Run in-region, with no egress to US infrastructure.

    Sign up →
  • Your VPC

    Runs inside your own AWS, GCP, or Azure account.

    Talk to sales →
  • On-prem & air-gapped

    Fully offline, the same model weights, dedicated support.

    Talk to sales →
SOC 2 Type II · BAA available View our trust center →
START

Drop in a packet and watch it come apart cleanly.

Free tier, no credit card required.