Skip to main content

Chunk

@forge/monorepo


@forge/monorepo / backend/src / Chunk

Type Alias: Chunk

Chunk = object

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

A token estimate — one definition, in core/tokens.ts.

Shared with the context assembler on purpose: a chunk sized against one estimate and budgeted against a different one is a chunk that does not fit the budget it was measured for.

Properties

content

readonly content: string

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


index

readonly index: number

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


locator?

readonly optional locator?: string

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

The heading path this chunk sits under, for a citation that resolves.


tokenCount

readonly tokenCount: number

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