Skip to main content

Interface: SemanticChunk

Defined in: packages/agentos/src/cognition/rag/chunking/SemanticChunker.ts:56

A semantically coherent text chunk produced by the chunker.

Interface​

SemanticChunk

Properties​

boundaryType​

boundaryType: BoundaryType

Defined in: packages/agentos/src/cognition/rag/chunking/SemanticChunker.ts:66

Type of boundary that determined this chunk's split.


endOffset​

endOffset: number

Defined in: packages/agentos/src/cognition/rag/chunking/SemanticChunker.ts:64

Character offset in the original text where this chunk ends.


index​

index: number

Defined in: packages/agentos/src/cognition/rag/chunking/SemanticChunker.ts:60

0-based sequence index within the chunked document.


metadata?​

optional metadata: Record<string, unknown>

Defined in: packages/agentos/src/cognition/rag/chunking/SemanticChunker.ts:68

Pass-through metadata from the caller.


startOffset​

startOffset: number

Defined in: packages/agentos/src/cognition/rag/chunking/SemanticChunker.ts:62

Character offset in the original text where this chunk begins.


text​

text: string

Defined in: packages/agentos/src/cognition/rag/chunking/SemanticChunker.ts:58

The chunk text content (may include overlap prefix).