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 DocumentSplitSettingsConstruction
DocumentSplitSettings is accessed through a Document instance for per-document overrides, or via SdkSettings for SDK-wide defaults.
# Per-document overridewith 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_valueSettings 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
@propertydef boundary_threshold(self) -> float
@boundary_threshold.setterdef boundary_threshold(self, value: float) -> NoneCalibrated 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
@propertydef enable_document_decision_split(self) -> bool
@enable_document_decision_split.setterdef enable_document_decision_split(self, value: bool) -> NoneWhen 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
@propertydef include_page_confidences(self) -> bool
@include_page_confidences.setterdef include_page_confidences(self, value: bool) -> NoneDiagnostic 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
@propertydef render_dpi(self) -> int
@render_dpi.setterdef render_dpi(self, value: int) -> NoneDPI used to render each page for the image tower. Default 200.
Type: int
Default: 200
stream_candidate_labels
@propertydef stream_candidate_labels(self) -> str
@stream_candidate_labels.setterdef stream_candidate_labels(self, value: str) -> NoneJSON 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