Skip to main content
moss / ParseOptions

Interface: ParseOptions

Controls how the server extracts 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