Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 05 · AI · The loop and its harness · about 20 min to read

Play it as a journeyTutor comes with a plan

Red-Teaming (breaking your own model before a customer does)

Guardrails Cost and Latency
Guardrails Cost and Latency · Open board

Building with LLMs. The board draws three rings of checks around the returns desk. This lesson is about the people and programs paid to push on those rings before a stranger does.

Before you start. The returns desk is this run’s support assistant: a language model that looks up orders with lookup_order and opens returns with start_return. A guardrail is a check in ordinary code around the model. The one that matters most is a fixed series of checks every tool call must pass before it runs, each check called a rung, from Guardrails, Cost and Latency (the three budgets the harness enforces). An eval set is the desk’s own list of questions with a checkable right answer beside each, run on every change, from Evals for Apps (the test suite for a program that is a string). Safety training is the late round of training where people rank replies and the model learns to prefer the ones they picked, including polite refusals, from Fine-tuning & Alignment. Prompt injection is an instruction hidden inside text the model was only meant to read, covered from the security side in LLM & Agent Security.

Lesson 57 of 83 in AI

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 2 April 2024: 256 fake conversations, and a model that forgot its training
  • The red team: a mystery shopper paid to break the desk
  • A jailbreak: talking the model out of its own training
  • Four ways in: role-play, many-shot jailbreaking, obfuscation, injection
  • The regression case: a finding that can never quietly come back
  • Order 4417, one attack at a time
  • Six clean attacks, and what they prove
  • All of it in code

Terms it explains: red team, red-teaming, jailbreak, many-shot jailbreaking, obfuscation, regression case.

Related papers

Review AI