Skip to content

Interface: NextQuestion

@kortexya/reasoninglayer


@kortexya/reasoninglayer / NextQuestion

Defined in: src/types/inference.ts:1187

A question the engine proposes next, ranked by what its answer is worth to the current differential.

informationGain: number

Defined in: src/types/inference.ts:1194

Expected information gain in nats: the expected drop in the entropy of the candidate posterior, averaged over yes and no.


overCandidates: number

Defined in: src/types/inference.ts:1198

How many leading candidates the gain was computed over.


pYes: number

Defined in: src/types/inference.ts:1196

The engine’s expectation that the answer is yes, mixed over the candidates it weighed.


sort: string

Defined in: src/types/inference.ts:1189

The finding to ask about (a sort name in the rule base).