Skip to main content
Learn about the available chunking strategies.
NodeDescription
Chunk by CharacterCombines elements within hard and soft character limits, without using section or page boundaries.
Chunk by TitlePreserves section boundaries by starting a new chunk at each Title element.
Chunk by PagePreserves page boundaries, ensuring no chunk spans more than one page.
Chunk by SimilarityGroups topically similar consecutive elements into chunks using an embedding model.
Contextual chunkingEnrichment node placed after a chunker. Uses an LLM to prepend a short context summary to each chunk, preserving chunk count and IDs.
Chunk by Table MergingUses an LLM to detect and merge tables that span adjacent pages into a single coherent table element.

Workflow placement

  • Always place Chunker nodes after a Partitioner node.
  • Chunker nodes are usually placed after any Enrichment nodes present in the workflow. An exception is the Named Entity Recognition (NER) enrichment node, which should be placed after any Chunker nodes.
  • The chunk_by_table_merging node is often paired with a table2html enrichment earlier in the workflow.
  • As the chunk_by_contextual node enriches existing chunks, it should be placed after one of the text chunkers (such as chunk_by_character, chunk_by_page, chunk_by_similarity, or chunk_by_title) in the workflow.