Skip to main content

ChunkingLimits

@retinue/monorepo


@retinue/monorepo / backend/src / ChunkingLimits

Type Alias: ChunkingLimits

ChunkingLimits = object

Defined in: backend/src/knowledge/chunking.ts:27

Properties​

maxTokens​

readonly maxTokens: number

Defined in: backend/src/knowledge/chunking.ts:36

Hard ceiling. A single block larger than this is split; nothing else is.

Separate from the target because a block is indivisible in the good case, so "aim for 400" and "never exceed 800" are different statements and collapsing them would either split freely or overflow freely.


overlapBlocks​

readonly overlapBlocks: number

Defined in: backend/src/knowledge/chunking.ts:38

Blocks repeated at the start of the next chunk, so a thought spanning a boundary is retrievable.


targetTokens​

readonly targetTokens: number

Defined in: backend/src/knowledge/chunking.ts:29

Target size in tokens. Chunks land near this, never far above it.