Interface: ParseOptions
Controls how the server extracts and chunks text from uploaded documents. Every field is optional; omitted fields use the server defaults.Properties
- ocr_mode:
Optional[str]-"auto_ocr"or"full_ocr";"full_ocr"forces OCR on every page, which is what scanned documents with no text layer need - use_high_resolution:
Optional[bool]- slower, higher fidelity extraction; useful for dense tables - segmentation_method:
Optional[str]-"smart_layout_detection"or"page_by_page" - merge_tables:
Optional[bool]- merge a table split across a page break into a single segment - chunk_size:
Optional[int]- maximum chunk length in characters, 200-2000; default1200. Chunks end at.,!or?before a capital letter; a longer sentence is cut at spaces, or mid-word if it has none. The title prefix is not counted. (moss 1.17.0+) - chunk_overlap:
Optional[int]- characters repeated from the end of one chunk at the start of the next, 0 to half ofchunk_size; default200, or half ofchunk_sizewhen smaller. The overlap moves forward to a sentence start when one falls inside it, and is absent around long sentences. (moss 1.17.0+)