This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/python/settings/vision/document-split-settings.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. DocumentSplitSettings

Settings for DocumentSplit. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document’s settings, otherwise the SDK globally when set on SdkSettings.

Tags: Vision

from nutrient_sdk import DocumentSplitSettings

Construction

DocumentSplitSettings is accessed through a Document instance for per-document overrides, or via SdkSettings for SDK-wide defaults.

# Per-document override
with Document.open("input.pdf") as doc:
settings = doc.settings.document_split_settings
settings.some_field = new_value # mutate fields directly
# SDK-wide default (applies to all documents)
SdkSettings.document_split_settings.some_field = new_value

Settings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — doc.settings.document_split_settings = other_settings is rejected.

Properties

boundary_threshold

@property
def boundary_threshold(self) -> float
@boundary_threshold.setter
def boundary_threshold(self, value: float) -> None

Calibrated per-page confidence, in [0,1], at or above which a page starts a new sub-document. The first page is always a boundary. Higher values yield fewer, larger segments (the model must be more certain to cut); lower values split more eagerly. Default 0.5.

Type: float

Default: 0.5f


enable_document_decision_split

@property
def enable_document_decision_split(self) -> bool
@enable_document_decision_split.setter
def enable_document_decision_split(self, value: bool) -> None

When true, compute per-page boundary confidences via the nutrient-document-decision GGUF model’s chunk-based shared-state design instead of the SigLIP2/e5/CRF ONNX pipeline. Resolved from the CDN (Vision/DocumentDecision/*). Slower than the specialist — opt-in, not a default. Default false.

Type: bool

Default: false


include_page_confidences

@property
def include_page_confidences(self) -> bool
@include_page_confidences.setter
def include_page_confidences(self, value: bool) -> None

Diagnostic opt-in. When true, the split artifact additionally carries the calibrated boundary confidence for every page (pageConfidences) and, when stream_candidate_labels is set, every page’s document type and its confidence (pageDocumentTypes, pageDocumentTypeConfidences), letting a caller re-split the stream offline without re-running the model. Default false so production artifacts stay lean.

Type: bool

Default: false


render_dpi

@property
def render_dpi(self) -> int
@render_dpi.setter
def render_dpi(self, value: int) -> None

DPI used to render each page for the image tower. Default 200.

Type: int

Default: 200


stream_candidate_labels

@property
def stream_candidate_labels(self) -> str
@stream_candidate_labels.setter
def stream_candidate_labels(self, value: str) -> None

JSON array of candidate document-type labels, each {“key”: string, “description”: string|null} (at least 2 entries). Setting this classifies every page against these labels (one ‘choice’ question per page, fused into the same pass that decides boundaries) and splits wherever the page document type changes, in addition to the detected boundaries, so every segment has one document type. Labels can therefore only add splits. Zero-shot, not a trained task. Requires enable_document_decision_split. Left unset (the default), no classification runs and the split is boundaries only.

Type: str