Skip to main content

Interface: DocumentChunk

Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:707

A single chunk produced by splitting a document. Used internally and returned in LoadedDocument.chunks.

Properties​

content​

content: string

Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:711

Text content of this chunk after extraction and cleaning.


heading?​

optional heading: string

Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:726

Heading or section title that precedes this chunk, if detected.


index​

index: number

Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:716

Zero-based chunk index within the parent document.


metadata?​

optional metadata: Record<string, unknown>

Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:731

Chunk-level metadata (e.g. bounding box, column number for layout mode).


pageNumber?​

optional pageNumber: number

Defined in: packages/agentos/src/cognition/memory/io/facade/types.ts:721

Page number this chunk originates from (1-based, PDF/DOCX).