Skip to main content
This example mirrors the safety-and-blocking style policy from geval init: hard BLOCK rules when model or retrieval quality crosses a line.

Signals

Your pipeline should emit metrics such as:
  • hallucination_rate (on component: generator)
  • context_relevance (on component: retrieval)

Policy idea

  • Priority 1 — If hallucination rate exceeds a ceiling → BLOCK with a clear reason.
  • Priority 2 — If retrieval relevance falls below a floor → BLOCK.

Contract

List the policy file(s) in contract.yaml:

Run

Next

Policy rules · geval init