Skip to main content

Interface: RetrievedChunk

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

A single chunk of content retrieved during the retrieval phase.

Properties​

content​

content: string

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

The text content of the chunk.


heading​

heading: string

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

Section heading or title the chunk belongs to, if available.


id​

id: string

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

Unique identifier for the chunk (typically from the vector store).


matchType​

matchType: "vector" | "graph" | "research"

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

Which retrieval method produced this chunk.

  • 'vector' — Dense vector similarity search
  • 'graph' — Knowledge graph traversal (GraphRAG)
  • 'research' — Iterative deep research synthesis

relevanceScore​

relevanceScore: number

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

Relevance score (0 to 1) indicating how well this chunk matches the query. Higher is better.


sourcePath​

sourcePath: string

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

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