YanAn Red Shield
YanAn Red Shield checks an answer as the model writes it. Cleared text reaches the user, while segments that reach the risk threshold stay on the server. Teams can review what triggered a block, adjust its threshold or restore a previous safeguard version.

A policy question can pass through request screening, knowledge retrieval and answer generation. The available interface determines where Red Shield can check it. Access to model signals enables scoring and interception during generation. A text-only API supports checks on input and output text.
From request to final answer
For a policy inquiry, a reviewer can trace the original question, the policy version cited and the text the user received. The checkpoints depend on which interfaces the service exposes.
User request
Apply the service’s rules to decide whether a request proceeds to retrieval or answer generation.
Retrieved context
The knowledge base filters records by role. Link the authorized passages, their sources and their versions to the request.
Pending output
When model signals are available, Red Shield scores each segment and holds back text that crosses the configured threshold.
Audit record
A case ID connects the entry decision, retrieved evidence and final answer. The business application checks permissions and approvals for tool actions.
The check keeps pace with generation, and stops mid-sentence
YanAn produces a risk judgment at every step of generation. When the score crosses the line you set, output stops immediately, the remainder stays on the server, and the user gets a clear message. Every step carries a chance to check, and content reaches the screen only after it passes.
After a cutoff, the trigger, the score at that moment and the associated cues are written to the record together, so the safety team can review what happened. Alerting, pausing and handoff to a person are configured to your requirements.
Risk scores and word-level cues
A generator and a text reviewer built on related models can miss the same risk. Red Shield also reads internal model signals. Its scores guide release decisions, and the associated cues give reviewers evidence to examine.
Cognitive Sense · risk scoring
The scoring engine reads signals the model has already computed for the current segment and assesses the risk of releasing it.
At the configured threshold, Red Shield stops further output and records the score and active safeguard configuration.
Risk Probe · cue detection
In a government service exchange, internal signals can contain privacy-related cues before personal information appears in a reply.
When the cues reach the configured threshold, Red Shield pauses release. A reviewer reads the question, context and pending text to determine whether the answer breaches policy.
Performance on seven public benchmarks
Red Shield averaged 87.3 across seven content safety benchmarks in the lab’s internal evaluation. Qwen3Guard 4B averaged 83.4 across the same benchmarks in the published results, a difference of 3.9 points.
Each step adds one check of fixed cost
Have a second model re-read the whole prefix after every token and the duplicated work piles up as the answer grows. YanAn reuses the signals the main model has already computed and performs one incremental check per step — so as the answer gets longer, the added cost of each check stays constant.
Adaptation training costs roughly two orders of magnitude less, so when an industry's requirements change, rules and configuration are updated as needed rather than rebuilt. Acceptance rests on three numbers: added cost per thousand requests, added waiting time on the answer, and the request volume your existing resources can carry.
Four places where YanAn is worth evaluating
Organizations running their own LLM
Every outward-facing answer carries service availability and brand exposure, so a dependable check belongs in front of release.
AI service desks that touch personal data
Handling a case means handling personal records; privacy boundaries and public-opinion exposure have to be settled before content reaches the screen.
High-volume consumer applications
Many topics, many rules, a very large number of checks — the cost of a single check sets the long-run cost of running the service.
Agents that take real actions
They send messages, place orders and modify data, so a mistake becomes a real action. Alongside the cutoff, a permission check belongs in front of execution.
Hosted API and on-premises deployment
The safeguard attaches to the existing service. Teams can pilot it through the hosted API or deploy it in their own data center to keep both data and logs on the internal network.
Hosted · API
Call the YanAn service directly, billed by usage. Suited to a POC and to starting at low traffic, confirming the result on your own live questions first.
On-premises · appliance
The whole system runs inside your environment, data stays on the internal network, and adaptation and operations handover are included. One-time delivery plus annual service.
Four steps to production, any of them abortable
Start on a narrow slice, then open up. Every step has a defined acceptance artifact, every step can be stopped, and every step is judged on the same three numbers: how much risk was missed, how many ordinary questions were intercepted, and how much extra time and resource it cost.
01 · Shadow run
Monitor only, intercept nothing, and see which answers would raise an alert. Acceptance artifact: a missed-risk and false-interception comparison report.
02 · Tune to your policy
Adjust rules and thresholds to your requirements to bring down both missed risks and false interceptions. Acceptance artifact: a build tuned to your policy.
03 · Turn on live interception
Enable the cutoff at low traffic first and test speed, the user-facing message and handoff to a person. Acceptance artifact: production thresholds and a contingency plan.
04 · Full traffic, ongoing
Once it holds, widen to full traffic and keep the business rules current. Acceptance artifact: full-traffic operation plus annual service.
Updating and rolling back safeguards
The safeguard module and its thresholds are managed independently of the main model. Once the service owner approves a policy change, the technical team can update, test and release the safeguard.
Adjust the threshold
When the policy stays the same, tune the threshold to tighten or relax blocking. Use the same business cases to compare missed risks and false blocks.
Update the safeguard
When the policy changes, retrain the lightweight safeguard on the revised criteria. Test it on new and existing cases before replacing the active version.
Roll back and review
Keep the module and its threshold together so both can be restored. Reviewers can trace a past block to the configuration that was active at the time.
Nine things your technical team should confirm before deployment
They fall on three lines: integration, running cost, and how well the checking works; the implementation itself is packaged inside the product. The acceptance principle is one comparison — run the same batch of live questions through your current approach and through YanAn, confirm the checking result first, then compare speed, resource use and cost.
Integration conditions
Confirm whether the existing service can integrate, and pick the integration form.
Running cost
Compare the added cost and resource use per thousand requests.
Waiting time
Check whether the added wait on an answer meets the business requirement.
Checking result
Read missed risks and false interceptions separately, never as a single score.
Real-time cutoff
Confirm that unreleased content actually stops once the score crosses the line.
Policy updates
After a policy update, verify that ordinary questions are unaffected.
Handling policy
Settle how alerts, pauses and handoff to a person are handled.
Review records
Agree what is recorded, how long it is kept, and who can read it.
Delivery form
Hosted API or on-premises deployment, chosen against your data and compliance conditions.
Red Team’s questions become Red Shield’s checklist
Red Team records each problematic answer and why it broke the rules. Once Red Shield is connected, ask those questions again: unsafe answers should be stopped and normal requests should still get through. The same record helps you check the next model or policy change.
Explore YanAn Red Team →YanAn Red Shield is now open for trials
Enterprise and government teams: contact us for a demonstration, a shadow run on your own traffic, and a delivery plan. Hosted API and on-premises appliance are both available.
Contact the business team →