Expand description
Node.js bindings for Tiny Dancer neural routing via NAPI-RS
High-performance Rust neural routing with zero-copy buffer sharing, async/await support, and complete TypeScript type definitions.
Structs§
- Candidate
- Candidate for routing
- Draco
RowJs - One DRACO training row: a query embedding and the quality each model achieved
on it (model id → quality, 0..1). Matches
@metaharness/router’s row shape. - Router
- Tiny Dancer neural router
- Router
Config - Router configuration
- Routing
Decision - Routing decision
- Routing
Request - Routing request
- Routing
Response - Routing response
- Train
Router Options - Options for
trainRouter. - Train
Router Result - Result of
trainRouter.
Functions§
- hello
- Hello function for testing bindings
- score
- Score a query embedding with a trained FastGRNN model (raw forward pass).
- train_
router - Train a FastGRNN router from a DRACO dataset and write it to a
.safetensorsfile consumable bynew Router({ modelPath }). - version
- Get the version of the Tiny Dancer library