Skip to content
reaatechREAATECH

reaatech/confidence-router

0Last commit: Jun 5, 2026GitHub →

These packages give you a decision engine that turns classifier confidence scores into one of three actions: route to a handler, ask the user for clarification, or fall back to a default. You'd adopt them to handle ambiguous or low-confidence predictions in a conversational or routing system without hard-coding every edge case. The most distinctive thing is the threshold-based triage model—you set two confidence boundaries and the engine automatically decides whether to proceed, ask, or bail, with pluggable classifiers (keyword, embedding, LLM) that chain in priority order.

Packages

5 packages

@reaatech/confidence-router

v0.1.1
A threshold-based decision engine that takes a classification result with confidence scores and returns a `RoutingDecision` indicating whether to **route** (high confidence), **clarify** (ambiguous), or **fallback** (low confidence).
status
published
published
2 days ago

@reaatech/confidence-router-classifiers

v0.1.1
A pluggable classifier system for confidence-router, providing keyword matching, embedding similarity, and LLM-based classification as classes conforming to the `Classifier` interface, with a `ClassifierRegistry` for named registration and automatic fallback chains.
status
published
published
2 days ago

@reaatech/confidence-router-core

v0.1.1
Core type definitions, error classes, configuration utilities, and the `DecisionEngine` for the confidence-router ecosystem. Exports TypeScript types (`Prediction`, `RoutingDecision`, `RouterConfig`, `Classifier` interface), a `RouterError` class with enumerated error types, a `DecisionEngine` class that evaluates confidence scores against route/clarify/fallback thresholds, and configuration helpers (`DEFAULT_CONFIG`, `validateConfig`, `mergeConfig`). Zero runtime dependencies.
status
published
published
2 days ago

@reaatech/confidence-router-evaluation

v0.1.1
A grid search optimizer that tunes `routeThreshold` and `fallbackThreshold` on any `RouterInterface` object to maximize F1 score against a labeled dataset, returning `OptimizedThresholds` with the best thresholds and full `EvaluationMetrics`.
status
published
published
2 days ago

@reaatech/confidence-router-languages

v0.1.1
Provides locale-aware clarification prompt generation for confidence-router, exposing `LanguageManager` and `PromptGenerator` classes that handle 47 built-in languages with RTL support, list separators, and conjunctions, falling back to English for unknown codes.
status
published
published
2 days ago

Comments

Sign in with GitHub to comment and vote.

Loading comments…