Skip to content

Interface: FuzzyUnifyRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FuzzyUnifyRequest

Defined in: src/types/fuzzy.ts:87

Request to fuzzy unify two terms.

Fuzzy unification computes a similarity degree between two terms and produces a unified term if the degree exceeds the threshold.

optional failOnUnknown?: boolean

Defined in: src/types/fuzzy.ts:105

Whether to fail when encountering unknown (Uninstantiated) values instead of residuating. false = enable residuation (default).


optional similarityMode?: string

Defined in: src/types/fuzzy.ts:100

String similarity strategy:

  • "fast": Exact -> Normalized -> Jaccard only (NO embeddings)
  • "hybrid": Exact -> Normalized -> Jaccard -> Embeddings (default)
  • "semantic": Exact -> Normalized -> Embeddings (skip Jaccard)

term1Id: string

Defined in: src/types/fuzzy.ts:89

First term ID to unify (UUID).


term2Id: string

Defined in: src/types/fuzzy.ts:91

Second term ID to unify (UUID).


optional theory?: FuzzyQueryTheory

Defined in: src/types/fuzzy.ts:107

The theory this query declares beside the tenant hierarchy.


optional threshold?: number

Defined in: src/types/fuzzy.ts:93

Minimum similarity threshold (0.0 to 1.0).