In this tutorial, we will walk through each of the chunking strategies supported by DocParse and provide examples of how to use them.Documentation Index
Fetch the complete documentation index at: https://docs.aryn.ai/llms.txt
Use this file to discover all available pages before exploring further.
Context-Rich
The context-rich chunking strategy combines adjacent elements with one another and adds the last seen section header or title to each outputted chunk. For example, let’s take the fifth page of the following document:
Section Header “Position-wise Feed-Forward Networks” to be in the same chunk as the Formula (2) “FFN(x)=…”. Calling DocParse with the following chunking options will group the two chunks together:
Section Header and the Formula are all chunked together into one element:
Maximize Within Limit
Themaximize_within_limit strategy is meant to be used when you want to merge several consecutive elements together into a large chunk. Take the following example:

