Skip to content

Interface: FuzzyUnifyRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Fuzzy / FuzzyUnifyRequest

Interface: FuzzyUnifyRequest

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

Request to fuzzy unify two terms.

Remarks

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

Properties

failOnUnknown?

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).


similarityMode?

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

term1Id: string

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

First term ID to unify (UUID).


term2Id

term2Id: string

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

Second term ID to unify (UUID).


threshold?

optional threshold: number

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

Minimum similarity threshold (0.0 to 1.0).