Expand description
§MicroResolve
Sub-millisecond intent resolution. No embeddings, no GPU, no retraining.
Scoring layers (morphology graph + scoring index) are in src/scoring.rs.
§Quick Start
use microresolve::{MicroResolve, MicroResolveConfig};
let engine = MicroResolve::new(MicroResolveConfig::default()).unwrap();
let ns = engine.namespace("orders");
ns.add_intent("cancel_order", &["cancel my order", "stop my order"][..]).unwrap();
ns.add_intent("track_order", &["where is my package", "track my order"][..]).unwrap();
let result = ns.resolve("I want to cancel");
assert_eq!(result.intents[0].id, "cancel_order");Re-exports§
Modules§
- import
- Spec import — OpenAPI and Postman collection parsing + intent generation.
- oplog
- Delta-sync op log.
- types
- Public types for MicroResolve.
Structs§
- Intent
Match - A single intent in a resolve result.
- Micro
Resolve - Multi-namespace decision engine.
- Namespace
Handle - Lightweight handle for operating on a single namespace within a
MicroResolveinstance. - Resolve
Result - Full output of
NamespaceHandle::resolve. - Resolve
Trace - Diagnostic trace returned alongside a
ResolveResultbyNamespaceHandle::resolve_with_trace.
Enums§
- Band
- Score band for a single intent match.
- Disposition
- Overall classification outcome.
Constants§
- DEFAULT_
GAP - Default multi-intent gap multiplier.
- DEFAULT_
THRESHOLD - Default routing threshold (cascade fallback).