Introduction
LLMs can drift, hallucinate, make mistakes or be manipulated, and the list goes on. Once one is in your AI service, you need control mechanisms that prevent these scenarios or limit their damage.
That's what guardrails are: control mechanisms that catch these scenarios, then block or mitigate them.
For instance, consider two messages that a parcel delivery assistant could receive:
The first is what the assistant is for, and it should answer. The second tries to talk the assistant out of its rules to get someone's personal data, and it should never get an answer.
You will likely spell this behaviour out in your instructions too (e.g., the system prompt), but that provides no strict guarantee. In fact, several things can even weaken it:
- long conversations, where the model's behaviour can drift over many turns;
- user pressure, as users insist, role-play or rephrase until the model gives in;
- growing instructions, where more rules compete and some get dropped;
- ...
A guardrail is a targeted control system: a separate check with one task, run on every message going into your LLM or coming out of it. It returns a decision your code acts on: answer, refuse, escalate or log.
In Orbitals, each orbital is one such guardrail, with a model trained for its task.
All orbitalsEvery orbital and what it decides.