Skip to content
WinnowTry the classifier

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

A recorded experiment770 messages
227
LLM calls 70.5% fewer

Overall accuracy83.4% / 90% target

Fewer calls, but this configuration missed our accuracy target. Inspect the mistakes before using it.

Read the experiment

BANKING77 · Qwen2.5 7B · Apple M4 Max
Recorded results. Switching views runs no model.

Your categories and examples Your model and fallback Decisions you can inspect

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.

  1. 01

    Define what matters

    Start with your labels and examples. A small encoder turns meaning into vectors; Winnow compares them with your categories.

  2. 02

    Keep the clear matches

    Accept a category only when its score and lead over the next candidate meet your tested thresholds.

  3. 03

    Pass uncertainty onward

    Send ambiguous inputs to your LLM or a person. Your application stays in charge of the action that follows.

Run 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?”
  1. 01

    Local classification

    verify source of funds

    26.8 ms recorded
  2. 02

    Model call skipped

    The local result was accepted.

    0 model tokens used
  3. 03

    Matches the labelled answer

    Expected: verify source of funds

    One example, not an accuracy estimate.
Inspect this receipt

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 methodology

Fits 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.

Terminalsh
npm install https://www.memcat.ai/downloads/winnow-sdk-0.5.0-vision.2.tgz
classify.jsjavascript
import { createClassifierFromIndex } from "@winnow/sdk/classifier";
import { index, encoder } from "./your-evaluated-policy.js";

const classifier = createClassifierFromIndex({
  index, encoder,
  limits: { maxCalls: 1000, maxConcurrent: 1, timeoutMs: 5000 },
});

export async function classify(text) {
  const result = await classifier.classify(text);

  if (result.status === "classified") {
    return { category: result.category, source: "local" };
  }

  // Your application chooses the fallback.
  return { category: null, source: result.status, reason: result.reason };
}

Integration pattern. Supply your own evaluated index and matching encoder. See the quickstart for a runnable example.

A few good questions

Start with your next
classification decision

Try Winnow in your browser