LlmPropositionReviser

constructor(llmOptions: <Error class: unknown class>, ai: <Error class: unknown class>, topK: Int = 5, similarityThreshold: Double = 0.5, minSimilarityForReinforce: Double = 0.7, decayK: Double = 2.0, autoMergeThreshold: Double = 0.95, classifyBatchSize: Int = 15, entityOverlapFilter: Boolean = true, classifyLlmOptions: <Error class: unknown class>? = null, trustScorer: TrustScorer? = null, authorityResolver: AuthorityResolver? = null, conflictDetector: ConflictDetector? = null)

Parameters

llmOptions

LLM configuration

ai

AI service for LLM calls

topK

Number of similar propositions to retrieve for classification

similarityThreshold

Minimum similarity threshold - skip LLM if no candidates above this

minSimilarityForReinforce

Minimum LLM-reported similarity to accept SIMILAR classification (default 0.7)

decayK

Decay constant for time-based confidence reduction

autoMergeThreshold

Embedding similarity at or above which propositions are auto-merged without LLM. Set to 1.1 to disable.

classifyBatchSize

Maximum number of propositions to classify in a single LLM call

entityOverlapFilter

When true, candidates that share no entity mentions with the new proposition are filtered out before LLM classification. This eliminates UNRELATED candidates cheaply via set intersection instead of an LLM call. Propositions with no entity mentions bypass this filter.

classifyLlmOptions

Optional separate LLM configuration for classification calls. When null (default), uses the main llmOptions. Classification is a structured categorization task that can often use a smaller/cheaper model than extraction without loss of quality.

trustScorer

optional policy that computes and caches an advisory trust score on retained propositions; when null, no score is computed and behaviour is identical to a reviser without trust scoring

authorityResolver

optional policy that resolves a proposition's source-authority tier before scoring; only consulted when trustScorer is set

conflictDetector

optional policy that classifies the nature of a contradiction; when set, the RevisionResult.Contradicted carries the detector's classification instead of the conservative default