Skip to content

Type Alias: DiscoverySemantics

@kortexya/reasoninglayer


@kortexya/reasoninglayer / DiscoverySemantics

DiscoverySemantics = { kind: "schema_presence"; } | { kind: "scaled"; maxAttributes?: number | null; schemes: Record<string, ScaleScheme>; } | { alpha?: number; kind: "native_predicates"; predicates: NativePredicate[]; version?: number; }

Defined in: src/types/analysis.ts:59

How term records become formal-context attributes.

  • schema_presence — whether a record contains a named feature; values are not interpreted.
  • scaled — native conceptual scaling of the named features’ values; every other feature keeps its presence attribute. schemes maps a feature name (as written in the knowledge base: the SDK sends these keys unchanged) to its scale, 1 to 64 features. maxAttributes caps all attributes; presence attributes are always kept and a hit cap reports interpretation.truncated.
  • native_predicates — store-aware typed native patterns at a declared alpha-cut. The engine requires termIds (at most 2000) with it.