Skip to main content

Interface: RetrievedChunk

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

A single chunk of content retrieved during the retrieval phase.

Properties

content

content: string

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

The text content of the chunk.


heading

heading: string

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

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


id

id: string

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

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


matchType

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

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

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/query-router/types.ts:111

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


sourcePath

sourcePath: string

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

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