Resources / Evaluation and red-teaming

Layered LLM Evaluation and Red-Team Suites

Ten friendly prompts are not an evaluation. Production AI needs cheap deterministic gates, bias-aware rubric scoring, and an adversarial suite that reruns on every prompt or model change.

Three layers

LayerCostCatches
1. Deterministic and symbolic checksInstant, no tokensBroken JSON types, missing citations, SHACL violations, invented predicates, forbidden writes, policy wording.
2. Calibrated rubric judgesLow-cost model callsFaithfulness, relevance and context precision, audited against expert labels to counter judge bias.
3. Workflow trace checksTrace telemetryWhether an agent used the authorized tool, stayed within retry caps and asked a person before writes.

Four red-team categories

Turn unknown failures into reproducible regression cases, kept in a version-controlled YAML suite that fails CI on regressions:

  1. Hallucination traps: questions about facts absent from the sources, to confirm clean refusal.
  2. Prompt injection, direct or hidden in documents, trying to override rules, leak context or trigger writes.
  3. Wrong premises: false numbers or outdated terms that tempt the model to agree.
  4. Boundary violations: requests across access tiers or for advice the system shouldn’t give.

Don’t optimize one number

A single score hides severe edge cases. Report retrieval, faithfulness, refusal and security separately, and keep a held-out set nobody tunes against. For runnable verdicts, see the RAG citation checks or the AI risk worksheet.

Whether you need a release package for leadership or a regression harness before switching models, I build evaluation suites tied to explicit approval conditions.

Start with a non-sensitive description; protected exchange is used for confidential records.