Skip to content
Lamina PDF

ChunkOptions

How the Markdown is cut into chunks.

readonly optional maxTokens?: number

A chunk’s budget in approximate tokens (characters / 4); 512 by default. Blocks are never cut.


readonly optional overlap?: number

Approximate tokens of whole blocks a chunk repeats from the one before it; 0 by default.


readonly optional splitOn?: any

Where chunks may start.