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
| Layer | Cost | Catches |
|---|---|---|
| 1. Deterministic and symbolic checks | Instant, no tokens | Broken JSON types, missing citations, SHACL violations, invented predicates, forbidden writes, policy wording. |
| 2. Calibrated rubric judges | Low-cost model calls | Faithfulness, relevance and context precision, audited against expert labels to counter judge bias. |
| 3. Workflow trace checks | Trace telemetry | Whether 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:
- Hallucination traps: questions about facts absent from the sources, to confirm clean refusal.
- Prompt injection, direct or hidden in documents, trying to override rules, leak context or trigger writes.
- Wrong premises: false numbers or outdated terms that tempt the model to agree.
- 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.