How does AI guardrails work?
Input guardrails can stop off-topic questions, attempts at prompt injection or personal data before they reach the model. Output guardrails can check that an answer has the right format, contains no banned content and does not leak data. A guardrail can be a simple rule, a classifier or another model.
Guardrails and evals answer different questions. A guardrail acts on one answer in real time and asks whether it may be shown. An eval measures many answers and asks whether the feature is good. A feature can pass every guardrail and still give answers that do not help.
What does AI guardrails mean in Eva?
Eva does not block answers in real time. Your team writes what a good answer is, sets a pass mark for each criterion, and Eva shows which criteria are furthest from theirs.