JT / SAGE IDEAS Work with me

Glossary · Safety

Toxicity scoring

Automatically rating output for hostility, slurs, or other harmful content.

Toxicity scoring rates a piece of text for how hostile or harmful it is: slurs, threats, harassment, or abuse. The score is usually a number from 0 to 1, and you set a threshold above which the text gets blocked or flagged. The hard part is context. The same words can be an attack in one message and a quote or a reclaimed term in another.

Why it matters

A model that helps a user write a cruel message, or a support bot that snaps back at an angry customer, is a headline waiting to happen. Toxic output erodes trust instantly and can carry real legal and brand cost. It also runs the other way. A scorer that is too aggressive will censor a doctor discussing symptoms or a user quoting the abuse they received. You want to catch real harm without punishing people for talking about hard things.

How it works

A separate classifier reads the text and returns a toxicity probability, often broken into categories like insult, threat, and sexual content. Common tools are Google's Perspective API and the moderation endpoints shipped by model providers. You pick a threshold from your own labeled examples, then measure it like any classifier: track false positives (safe text flagged) and false negatives (toxic text missed) on a held-out set. Run it on both user input and model output, because a clean prompt can still trigger an ugly reply.

Receipts · the newsletter

Receipts: AI engineering, with the evidence attached.

One real finding with its proof, one runnable lab, and one thing I would do differently. Weekly, Tuesday morning, a five-minute read.

required

Free. One email a week. Confirm first, unsubscribe in one click. How it works

Not ready to talk yet?

Get the AI release-readiness checklist

Eighteen checks to pass before an LLM feature meets a customer. The checklist is free and open: no email wall. Leave one email and I also send the sample evaluation report that goes with it. One email is all I ask for.

required

Inside the checklist: 18 checks, 5 groups

  • Ground truthwithout this, every other check is opinion3 checks
  • Measurement"it seems better" is not a metric4 checks
  • Safety batterythe failure modes that end up in screenshots5 checks
  • The gatea red eval that blocks nothing is decoration3 checks
  • Blast-radius controlautonomy is earned with evidence, never assumed3 checks

Have a system that needs to work?

Tell me the problem. I will tell you honestly whether I am the right engineer for it.

Book a 15-minute call Run a free audit Not sure what you need? Answer 3 questions