WebAI Studio
Back to Demos

Moderation Cascade

Embeddings

The production pattern for cheap moderation: embeddings clear the obvious 90% in microseconds, the LLM judges only the borderline.

Why On-Device?

Cascades are how real systems afford moderation — and on-device they cost literally nothing. Watch the counters: most comments never touch the language model.

Interactive Demo

Semantic Embedder: Loading...
Prompt API (judge): Loading...
Resolved by Embeddings
0 (0%)
Escalated to LLM
0
Avg Stage-1 Time
N/A
Avg LLM Judge Time
N/A
Escalation margin0.05
Higher margin → more comments escalate to the judge.
Comment Queue — 13
@maya_dev

This tutorial saved my weekend, thank you!

@watch4less

BUY CHEAP WATCHES >>> best-deals-watch dot com

@grumpy_gus

You're an idiot and everyone here knows it.

@sam_r

Great write-up, bookmarked for later reference.

@crypto_carl

Make $5000/week from home, DM me now!!!

@jjones

Could you do a follow-up on WebGPU support?

@anon4432

Only a complete moron would ship this garbage.

@lena_k

The dark mode on this site is gorgeous.

@insta_boost

🔥🔥 FREE followers at insta-boost dot net 🔥🔥

@dr_stats

I disagree with the benchmark methodology, but the data itself is useful.

@sarcasmo

Wow, genius idea. Really groundbreaking stuff. Slow clap.

@self_promo_sue

I wrote a longer rebuttal on my blog if anyone is interested.

@quiet_quinn

First time commenting — this community seems really helpful.

Implementation Code

demo.js