Classify locally.
Call your LLM less
Give routine requests a faster path. Winnow classifies inputs against your categories, so your model can focus on the work that needs it.
1.8 ms median local classification
Warm banking benchmark on M4 Max. Setup excluded. See conditions
Fewer calls, but this configuration missed our accuracy target. Inspect the mistakes before using it.
Read the experimentBANKING77 · Qwen2.5 7B · Apple M4 Max
Recorded results. Switching views runs no model.
A small decision
before the big model
A support request needs a queue. A document needs a category. A request needs the right workflow. Make that bounded decision first.
- 01
Define what matters
Start with your labels and examples. A small encoder turns meaning into vectors; Winnow compares them with your categories.
- 02
Keep the clear matches
Accept a category only when its score and lead over the next candidate meet your tested thresholds.
- 03
Pass uncertainty onward
Send ambiguous inputs to your LLM or a person. Your application stays in charge of the action that follows.
Try the meaning-based classifier with a real, local model.
Open the semantic labRun a real batch
Six literal, case-sensitive rules. Real execution in your browser. No model calls.
1,000 synthetic messages sampled from 40 authored templates. Not a semantic accuracy test.
Your results will appear here
Results animate slowly for inspection. Timing covers rule checks and local callbacks only. Review is a local flag; nothing is sent onward.
Show the work.
Including the mistakes
We sent the same 770 banking messages through two routes: Qwen on every message, and local classification with Qwen for the rest.
- LLM calls
770227- 543 calls avoided in this run
- Overall accuracy
69.5%83.4%- Below the preset 90% target
- Reported model tokens
2.10m0.62m- Token usage, not measured dollar savings
“How can I lookup where funds came from?”
- 01
Local classification
verify source of funds
26.8 ms recorded - 02
Model call skipped
The local result was accepted.
0 model tokens used - 03
Matches the labelled answer
Expected: verify source of funds
One example, not an accuracy estimate.
Local Qwen2.5 7B on M4 Max. Reused English BANKING77 test messages, fixed run order and prompt caching. The routes had different example budgets. This is one configuration, not a universal savings claim.
Read the full methodologyFits the workflow
you already have
Use Winnow in TypeScript or JavaScript. Bring an encoder and an evaluated category index. Receive a category, a review decision, or an explicit failure.
- Zero SDK runtime dependencies. Encoder runtime is separate.
- Evaluation and shadow comparison before changing live routing.
- Optional image classification in the experimental preview.
Private preview · 0.5.0-vision.2 · UNLICENSED
Install from the archive. Not published on npm.
Integration pattern. Supply your own evaluated index and matching encoder. See the quickstart for a runnable example.