Skip to content
Eldan.ai
Glossary

Guardrails

Guardrails are checks placed around a model: input filters, output validators, classifiers for unsafe content and rules that block certain actions.

They reduce risk and catch common failures, but none is perfect against natural language. Treat them as one layer among several, never as the only defence.

Deterministic guardrails, such as schema validation, allowlists and amount limits, are strong because they do not depend on a model’s judgement. Model-based guardrails are probabilistic and need their own evals for false positives and misses.

Common mistake. Buying a classifier and removing human review because the dashboard shows a high catch rate.

In practice. Prefer deterministic checks where a rule can express the requirement, measure model-based guardrails on your own traffic, and keep an approval step for irreversible actions.

  • Prompt injection

    Prompt injection is an attack in which text the model reads, typed by a user or hidden in an email, web page or document, contains instructions that override the developer's intent. Indirect injection arrives through retrieved or tool-supplied content. It cannot be fully filtered out, so defences have to limit what a persuaded model can do.

  • Structured output

    Structured output means getting a model to return data in a fixed shape, usually JSON that matches a schema, instead of free prose. Some providers can constrain generation to a schema. In every case you should still validate the result in code, because a valid shape does not mean correct values.

  • Human in the loop

    Human in the loop means a person reviews or approves the system's action at defined points before it takes effect. It is the main control for risky or irreversible actions. It only works when the review shows exactly what will happen and the person has the time and context to say no.

Cite this page

Eldan Abdrashim. "Guardrails." Eldan.ai, 23 November 2026. https://eldan.ai/glossary/guardrails.

The date you read it is added when you copy.

BibTeX

@online{abdrashim2026guardrails,
  author = {Eldan Abdrashim},
  title = {Guardrails},
  organization = {Eldan.ai},
  date = {2026-11-23},
  year = {2026},
  month = nov,
  url = {https://eldan.ai/glossary/guardrails},
  langid = {english}
}

All terms

Section: Security. Last updated 23 Nov 2026.