Skip to main content
>_ supraj.dev
TOPIC AI
Alignment ensuring helpful, honest, and harmless outputs
IN 10 SECONDS

The engineering discipline of configuring models so that their generations match human values, avoiding toxicity, bias, and generation of dangerous instructions.

GOTCHA Over-aligned models can become unhelpful, repeatedly apologizing and refusing to answer safe queries.
HOW ALIGNMENT RUNS
01 Define principles establish rules: do not help write malware, do not insult users.
02 Supervised tune train model on safe, aligned database response templates.
03 Filter check runs red-teaming checks to verify the model rejects harmful prompts.
POKE IT YOURSELF
promptfoo redteam — run security checks against local endpoints