Skip to main content
The Configuration object controls how Chunkr processes your documents. It includes settings for OCR, segmentation, chunking, and post-processing.

Configuration Fields

OcrStrategy
required
Controls the Optical Character Recognition (OCR) strategy.
SegmentationStrategy
required
Controls the segmentation strategy.
ChunkProcessing
required
Controls the chunking and post-processing of each chunk.
SegmentProcessing
required
Controls the post-processing of each segment type. See Segment Processing for detailed configuration options.
boolean
default:true
required
Whether to use high-resolution images for cropping and post-processing. (Latency penalty: ~7 seconds per page)
ErrorHandlingStrategy
required
Controls how errors are handled during processing.
LlmProcessing
required
Controls the LLM used for the task.
integer
The number of seconds until the task is deleted. Expired tasks cannot be updated, polled, or accessed via web interface.
string
The presigned URL of the input file.

Deprecated Fields

integer
deprecated
DEPRECATED: Use chunk_processing.target_length instead.
object
deprecated
DEPRECATED: The extracted JSON schema from the document.
Model
deprecated
DEPRECATED: Model selection.