Skip to main content

Crate microresolve

Crate microresolve 

Source
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§

pub use oplog::Op;
pub use oplog::OPLOG_MAX;
pub use types::*;

Modules§

import
Spec import — OpenAPI and Postman collection parsing + intent generation.
oplog
Delta-sync op log.
types
Public types for MicroResolve.

Structs§

IntentMatch
A single intent in a resolve result.
MicroResolve
Multi-namespace decision engine.
NamespaceHandle
Lightweight handle for operating on a single namespace within a MicroResolve instance.
ResolveResult
Full output of NamespaceHandle::resolve.
ResolveTrace
Diagnostic trace returned alongside a ResolveResult by NamespaceHandle::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).