docs(release-notes): add guardrail eval results section

This commit is contained in:
Ishaan Jaffer 2026-02-21 15:08:06 -08:00
parent 226fc6485b
commit 99168fa736

View file

@ -59,6 +59,17 @@ Three new built-in guardrails ship alongside the Garden: a competitor name block
Guardrail tracing is also included: every request that triggers a guardrail now logs the policy name, detection method, and exact match in the logs view. When a policy fires too often in production, you can see exactly which rule triggered and on what input.
### Eval results
We benchmark every built-in guardrail against labeled datasets before shipping. Results for the two policies most relevant to topic and keyword blocking (207 investment-question cases, 299 insult cases):
| Guardrail | Precision | Recall | F1 | Latency p50 | Cost/req |
|-----------|-----------|--------|----|-------------|----------|
| Block investment questions | 100% | 100% | 100% | <0.1ms | $0 |
| Block insults / keywords | 100% | 100% | 100% | <0.1ms | $0 |
For reference, ONNX embedding approaches on the same eval set hit 9598% precision at 220ms latency and require additional dependencies. The built-in content filter uses no ML model — just structured YAML rules with layered matching — so there's nothing to download, no API key needed, and latency is effectively zero.
---
---