Skip to main content

Interface: CorpusChunk

Defined in: packages/agentos/src/orchestration/pipeline/query/types.ts:1229

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/orchestration/pipeline/query/types.ts:1234

The text content of the chunk.


embedding?​

optional embedding: number[]

Defined in: packages/agentos/src/orchestration/pipeline/query/types.ts:1246

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


heading​

heading: string

Defined in: packages/agentos/src/orchestration/pipeline/query/types.ts:1237

Section heading or title the chunk belongs to.


id​

id: string

Defined in: packages/agentos/src/orchestration/pipeline/query/types.ts:1231

Unique identifier for the chunk.


sourcePath​

sourcePath: string

Defined in: packages/agentos/src/orchestration/pipeline/query/types.ts:1240

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