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::Resolver;

let mut resolver = Resolver::new();
resolver.add_intent("cancel_order", &["cancel my order", "stop my order"]);
resolver.add_intent("track_order",  &["where is my package", "track my order"]);

let matches = resolver.resolve("I want to cancel");
assert_eq!(matches[0].id, "cancel_order");

For tunable threshold/gap, use resolve_with(query, &ResolveOptions { ... }).

Re-exports§

pub use types::*;

Modules§

import
Spec import — OpenAPI and Postman collection parsing + intent generation.
types
Public types for MicroResolve.

Structs§

Engine
Multi-namespace decision engine.
NamespaceHandle
Lightweight handle for operating on a single namespace within an Engine.