Documentation

Concepts

The RAIL Score API is built around four core primitives. Understanding these makes the rest of the SDK and API reference much easier to navigate.

How They Fit Together

These four concepts form a layered system — each one builds on the previous:

1
Evaluation is the foundation. It answers: “How responsible is this content?” across 8 dimensions.
2
Safe Regeneration uses evaluation in a loop. It answers: “How do I automatically fix content that fails?”
3
Middleware makes evaluation invisible. It answers: “How do I score every response without writing eval calls everywhere?”
4
Policy Engine enforces rules on evaluation results. It answers: “What should my application do when scores fall below acceptable levels?”