Skip to main content

Interface: CorpusChunk

Defined in: packages/agentos/src/query-router/types.ts:785

A chunk of corpus content with optional pre-computed embedding. Used during corpus ingestion into the vector store.

Properties

content

content: string

Defined in: packages/agentos/src/query-router/types.ts:790

The text content of the chunk.


embedding?

optional embedding: number[]

Defined in: packages/agentos/src/query-router/types.ts:802

Pre-computed embedding vector. When present, the ingestion pipeline can skip embedding generation for this chunk.


heading

heading: string

Defined in: packages/agentos/src/query-router/types.ts:793

Section heading or title the chunk belongs to.


id

id: string

Defined in: packages/agentos/src/query-router/types.ts:787

Unique identifier for the chunk.


sourcePath

sourcePath: string

Defined in: packages/agentos/src/query-router/types.ts:796

File path or document source path this chunk was extracted from.