Class ParseConfig


  • public final class ParseConfig
    extends java.lang.Object
    • Method Detail

      • getTarget

        public java.util.Optional<ParseConfigTarget> getTarget()
        Returns:
        The target format for the parsed content.

        Supported values:

        • markdown: True markdown with logical reading order (headings, lists, tables, checkboxes). Best default for LLMs/RAG and enables section-based chunking.
        • spatial: Layout/position-preserving text that uses markdown elements for block types but is not strictly markdown due to whitespace/tabs used to maintain placement. Only page-based chunking is supported.

        Guidance:

        • Prefer markdown for most documents, multi-column reading order, and retrieval use cases
        • Prefer spatial for messy/scanned/handwritten or skewed documents, when you need near 1:1 layout fidelity, or for BOL-like logistics docs

        See “Markdown vs Spatial” in the Parse guide for details: /2025-04-21/developers/guides/parse#markdown-vs-spatial

      • getChunkingStrategy

        public java.util.Optional<ParseConfigChunkingStrategy> getChunkingStrategy()
        Returns:
        Strategy for dividing the document into chunks.
      • getBlockOptions

        public java.util.Optional<ParseConfigBlockOptions> getBlockOptions()
        Returns:
        Options for controlling how different block types are processed.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object