Skip to content

Type Alias: EvidenceSourceDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RAG / EvidenceSourceDto

Type Alias: EvidenceSourceDto

EvidenceSourceDto = { relationTermId?: string | null; type: "Explicit"; } | { type: "Emergent"; unifiedDegree: number; } | { relationTermId?: string | null; type: "Both"; unifiedDegree: number; }

Defined in: src/types/rag.ts:12

Evidence source for a concept relationship.

Type Declaration

{ relationTermId?: string | null; type: "Explicit"; }

relationTermId?

optional relationTermId: string | null

Optional relation term ID.

type

type: "Explicit"

Discriminator: explicit evidence.

{ type: "Emergent"; unifiedDegree: number; }

type

type: "Emergent"

Discriminator: emergent evidence.

unifiedDegree

unifiedDegree: number

Unification degree (0.0-1.0).

{ relationTermId?: string | null; type: "Both"; unifiedDegree: number; }

relationTermId?

optional relationTermId: string | null

Optional relation term ID.

type

type: "Both"

Discriminator: both explicit and emergent evidence.

unifiedDegree

unifiedDegree: number

Unification degree (0.0-1.0).

Remarks

Discriminated union by type field:

  • "Explicit" — found via explicit feature relations.
  • "Emergent" — discovered via fuzzy feature unification.
  • "Both" — found via both explicit and emergent evidence.