Skip to main content

Interface: IKbDocument

Defined in: internal/md-chunker/types.ts:90

Input document for chunking. Produced by the KB editor.

Properties​

bookId​

bookId: string

Defined in: internal/md-chunker/types.ts:96

The book the document belongs to; every chunk carries it.


id​

id: string

Defined in: internal/md-chunker/types.ts:92

The document's id; the chunk ids are id#order, so re-ingesting replaces the old chunks.


language​

language: string

Defined in: internal/md-chunker/types.ts:104

BCP-47.


libraryId​

libraryId: string

Defined in: internal/md-chunker/types.ts:94

The library of the book, e.g. the tenant's "Tax library". Every chunk of the document carries it.


markdown​

markdown: string

Defined in: internal/md-chunker/types.ts:100

The content, as the KB editor saved it; split at its ATX headings.


tags​

tags: string[]

Defined in: internal/md-chunker/types.ts:102

Free tags, copied to every chunk; a search filter.


title​

title: string

Defined in: internal/md-chunker/types.ts:98

The document's title; the first element of every chunk's headingPath.