Skip to content

Interface: FuzzyUnifyRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FuzzyUnifyRequest

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

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:31

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


optional similarityMode?: string

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

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:15

First term ID to unify (UUID).


term2Id: string

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

Second term ID to unify (UUID).


optional threshold?: number

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

Minimum similarity threshold (0.0 to 1.0).