Skip to content
Lamina PDF
Unreleased

These docs describe changes that aren’t released yet. For the newest release, see the released docs.

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.