Skip to main content

RawExtraction

@retinue/monorepo


@retinue/monorepo / backend/src / RawExtraction

Type Alias: RawExtraction

RawExtraction = object

Defined in: backend/src/knowledge/graph.ts:52

What an extractor returns for one chunk, before validation.

Loose on purpose — it is the output of a language model, and typing it strictly here would only mean casting somewhere less visible. sanitiseExtraction is the boundary where it becomes trustworthy.

Properties​

entities?​

readonly optional entities?: readonly object[]

Defined in: backend/src/knowledge/graph.ts:53


relationships?​

readonly optional relationships?: readonly object[]

Defined in: backend/src/knowledge/graph.ts:58