Why false positives in NeMo Guardrails need their own measurement
A guardrailed assistant that refuses legitimate requests is a product failure, and most teams cannot say how often it happens. Over-blocking is measured only when someone measures it. In NeMo Guardrails, every rail can refuse a request on its own: input rails screen the user message, dialog rails steer multi-turn flows, retrieval rails filter RAG chunks, execution rails check custom actions and tools, and output rails review the model's reply. A rail tuned to catch jailbreaks, off-topic requests or unsafe content will also catch some ordinary questions that look similar on the surface, such as a security engineer asking about phishing or a clinician asking about dosages. Each rail has its own threshold or prompt, so the refusal rate is the combined effect of several decisions that were made separately.
The library's own evaluation tooling answers a different question. Policy-based evaluation and the public per-rail benchmarks show how a configuration behaves on datasets chosen by NVIDIA or by the test author, and they do not show how it behaves on the questions your users actually ask. Public results cannot be transferred to your application, and no published false positive rate applies to your assistant, your language mix or your model. A benign set built from your own anonymized traffic, labeled as acceptable and run through each rail separately, is the only way to get a rate you can defend. Confirm which NeMo Guardrails version and Python environment you will test against before you start: the current release is 0.25.0, which requires Python 3.11, 3.12 or 3.13, and results measured on one version should be repeated after an upgrade.
How a benign request passes through the rails
A legitimate user message enters the guardrails server through the input rails, then moves to dialog rails and, where configured, retrieval and execution rails before the application model answers. The response then passes the output rails, which can refuse or modify it. Every refusal point is a place where a false positive can be recorded, so each decision and the rail name that made it should be logged for later analysis. Check that a benign message sent through the full path reaches the model and returns an answer.
Benign message path through NeMo Guardrails, with refusal points and logging marked.
Which measurement method fits each rail
This table compares each NeMo Guardrails rail by what a benign request looks like, how a refusal shows up in logs, which knob usually changes it, and what to check first. Use it to pick the test set and log fields for each rail before measuring. Confirm the exact rail names, config keys and log fields against the release notes for the version you run, since behavior can change between releases.
| Rail | Benign request looks like | Refusal shows in logs as | Usual knob and first check |
|---|---|---|---|
| Self-check input moderation | A normal question that mentions a sensitive word in passing, such as a security team asking about phishing awareness | An input rail stop event with the self-check prompt result recorded before the main model call | Prompt wording first, then the model used for the check. Confirm the self-check prompt and its output parsing in the release notes |
| Self-check output moderation | A correct answer that quotes a sensitive term from the user's own question | An output rail block where the bot response is replaced by a fallback message | Output prompt and fallback text. Check whether the rail sees the full response or a streamed chunk |
| Topic safety | A legitimate in-scope question phrased in an unusual way, or a follow-up that depends on earlier turns | A topic classification that routes to an off-topic or refusal flow | Topic labels and the model or NemoGuard TopicControl setup. Check the label list against your real product scope |
| Content safety | Clinical, legal or financial wording that looks harmful out of context but is routine for your users | A content safety label on input or output with the category recorded | Category thresholds or action per category. Confirm which categories the model reports in your version |
| Jailbreak and injection detection | Benign text that resembles an instruction, such as a pasted email, code snippet or a request to ignore a formatting rule | A jailbreak or injection detection stop, often on retrieved or user-pasted content | Heuristic patterns, classifier settings and the action taken. Confirm which checks run on which input source |
| Fact-checking | A correct answer phrased with information absent from the retrieved sources, such as a general definition | A fact-check failure with the supporting passage and score recorded | Grounding prompt, the checking model and the source set. Check whether general knowledge is allowed in your configuration |
| Hallucination detection | A paraphrased answer that is accurate but uses different wording from the source | A hallucination flag on the response, sometimes with a warning rather than a block | Detection model and the action on flag. Confirm whether the rail blocks or only annotates in your version |
| Retrieval rails | A relevant document chunk with boilerplate, tables or legal disclaimers that the rail scans | A chunk removed or flagged before it reaches the model, with the chunk ID logged | Chunking and the check applied to each chunk. Confirm whether removed chunks reduce answer quality for your queries |
| Execution rails | A valid tool call with unusual but permitted arguments, such as a long date range or a large limit | A tool call rejected before execution, with the action name and arguments in the log | Action validation logic and allowed argument ranges. Compare rejected calls against real permitted use cases |
How to measure false positives per rail with a benign traffic set
This sequence turns vague worries about over-blocking into per-rail refusal counts for each category of legitimate request, so product owners can see which rail blocks what and whether a change made things better or worse. It produces a reviewed benign set, a labeled baseline and a repeatable comparison report.
Collect representative legitimate requests
Gather benign requests from your product's real usage logs, support tickets, sales demos and subject-matter interviews, so the set reflects what users actually ask. Add deliberate edge cases: security questions, medical and financial terms, long multi-turn conversations, and non-English input. Record the source of each request and its category, such as onboarding, account help, or clinical terminology. The step is done when every category your product serves has requests and each edge case listed above has its own tagged group.
Get product owner review of the set
Have a product owner check that every request is something the assistant is meant to answer, and remove anything out of scope or sensitive enough that it should not be stored in a test file. Confirm that privacy handling for logged requests meets your data policy before the set is shared with engineers. The output is a signed-off version of the benign set with a change log showing what was added or removed and who approved it.
Agree expected outcomes for each request
Label each request with the outcome it should produce: answered normally, answered with a documented caveat, or redirected by a dialog flow. Two reviewers label independently, then reconcile disagreements in a short review so the labels reflect a shared decision rather than one person's judgment. Record the reason for any label that departs from a plain answer. The step closes when every request has an agreed label and the disagreement count and resolutions are recorded.
Run the set with all rails enabled
Pass the labeled set through the full configuration with every input, dialog, retrieval, execution and output rail active, using the Python API or the guardrails server. Capture the response, the rail that refused, and the refusal message for each request. Store the run output with the configuration version and the NeMo Guardrails version so it can be traced later. The step is complete when each request has a recorded result or a clean pass.
Run each rail in isolation
Repeat the run with one rail enabled at a time, keeping the rest of the configuration unchanged, so each refusal can be attributed to a single rail. Where two rails both refuse a request in the full run, the isolated runs show whether either one would block it alone. Note any rail that depends on another, such as a rail that only fires after an earlier check, because isolation can change its behavior. The output is a per-rail refusal table for the whole set.
Compute refusal counts per rail and category
Count refusals for each rail, then cross-tabulate by request category and edge-case group so you can see whether a rail blocks one population more than others. Compare the refusal rate of each category against the expected labels to list false positives, meaning legitimate requests refused by a rail. Review the largest clusters manually to confirm the refusal reason, since a keyword match and a model judgment can produce the same count. The step ends with a report listing each false positive by rail, category and request identifier.
Confirm repeatability on a pinned version
Pin the NeMo Guardrails version, its Python dependencies and the model endpoints in your environment, then rerun the full set twice and compare results. If counts differ between identical runs, find the source before trusting the numbers, which may be a non-deterministic model judgment or an unpinned dependency. Record the pinned versions alongside the report. The check passes when repeated runs on the pinned stack produce the same refusal results, or the variation is documented and explained.
Compare results to the baseline before changes
Save the current results as the baseline before any threshold, prompt or flow change, and compare every later run against it. A change is accepted only when it reduces false positives in the categories it targets without raising refusals elsewhere or weakening the blocked-request tests your team maintains. Share the comparison with product owners as the trade-off record. The step is done when the baseline is versioned and each proposed change has a before and after comparison attached.
How to tune thresholds and prompts without hiding false positives
Tune one thing at a time. Change a single prompt, model or rail setting per iteration, then rerun the benign traffic set and the attack or policy set together. A change is accepted only when the report shows both the over-blocking count for legitimate requests and the protection results for the attack set. If you report only one side, a looser rail will look like a success and a stricter rail will look like a safe default, and product owners will not see the trade-off they are approving. Keep a short log for each run that names the setting changed, the benign refusals before and after, and the attack categories that moved.
Loosening one rail often moves risk somewhere else. A relaxed self-check input prompt can let a request through that a dialog rail or output rail was never designed to catch, so protection can drop in a category you did not touch. Colang flow edits and library upgrades can shift refusal behavior too, because intent matching and flow ordering change which path a message takes. Confirm the behavior of your Colang version and the release notes for each NeMo Guardrails upgrade before you trust a benign set result from an earlier build. The nemoguardrails eval and unit testing topics in this group cover the protection side of these checks in detail.
Pin the tuned configuration in version control. Store the config.yml, Colang files, custom actions and prompt overrides together, record the exact nemoguardrails version in your dependency lock, and tag the commit that passed both sets. Without this, a later prompt edit or package update can silently undo a threshold change, and nobody will know which settings produced the reported false positive rate. Ask your engineering team to show that CI fails when either the benign refusal count or the protection results move beyond the thresholds your product owners agreed to.
Trade-offs to report to product owners
Every threshold change moves cost somewhere else: fewer harmful answers usually means more refused legitimate requests, more model calls and more support tickets. The report should put each trade-off next to the evidence from your benign traffic set and name who accepts the residual risk before any rail goes live.
Blocking borderline requests versus allowing risky ones
Each threshold setting trades false positives against missed harmful inputs. The report should show, for each rail, how many benign borderline prompts were refused at the current setting and how many risky prompts from your attack set got through at that same setting. Present both numbers on one table so the product owner sees the exchange, not a single score. Security and the product owner should sign off on the chosen operating point together, with the test set version recorded.
NeMo Guardrails docsUser experience of a refusal
A refusal that ends the conversation costs more trust than a refusal that offers a next step. For each rail, the report should include sample transcripts of benign requests that were blocked, rated by someone who was not involved in tuning. Ask the product owner to confirm the wording of the refusal message and whether a user can rephrase. Record the refusal rate per flow so changes to the message can be compared with changes to the rail.
Safe redirect versus hard refusal
A safe redirect steers the conversation to an approved topic instead of stopping it, which often needs dialog flows and extra handling. The report should state which blocked categories use a redirect and which use a hard stop, with the reason for each. Product and compliance owners should approve the list together, because a redirect that answers part of a risky request can itself be a failure. Retest benign prompts after any change to redirect logic.
Latency and extra model calls
A stricter rail often adds a classifier or self-check call to every request, which adds latency and cost even when nothing is blocked. The report should measure end-to-end response time with and without each rail on the benign set, along with the number of model calls per request. Engineering and the service owner should agree on the latency budget and the acceptable call count before a stricter setting ships. Confirm the figures on your own hardware and model endpoints.
Support load from wrongly refused users
Wrongly refused users generate tickets, escalations and workarounds, and those costs fall on support teams that never saw the tuning work. The report should map each false positive category to the likely user complaint and estimate ticket volume from a pilot, not from assumptions. Support leads should sign off on the escalation path and on whether they can view blocked-request logs. Ask the operations team which log fields they need and how long they must be kept.
Coverage gaps and final threshold ownership
A benign set built in one language or domain says little about how rails behave elsewhere, so the report should list every language, domain and user group the set does not cover. The final threshold should have a named owner, usually the product owner, who accepts the residual false positive rate for uncovered areas in writing. Revisit that sign-off after each NeMo Guardrails upgrade or prompt change, because the set and the thresholds can drift apart.
Where to run the measurement in each environment
During development, the fastest loop is to load the configuration directly in Python and send the benign traffic set through it in a script or notebook. The configuration is a folder containing a config.yml file, optional Python actions and Colang files. Colang 1.0 is the default, and Colang 2.0 is also supported, so the measurement script should record which version the configuration uses. Each refusal can be traced back to the rail that produced it, which makes this environment the best place to tune prompts and thresholds before moving on.
- Pin the Python version: NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, so run the script in a virtual environment built on one of those versions.
- Load the same folder: point the script at the configuration folder that will ship, not a copy with edits.
- Log the refusing rail: write the rail name, the input, and the response for every blocked benign message to a file so each false positive can be sorted by rail.
- Record the library version: store the exact package version with each run so results can be compared after upgrades.
- Keep the model fixed: use the same underlying model settings across runs, or the refusal rate will reflect model changes instead of rail changes.
Confirm that the development model and the production model behave similarly enough for the numbers to carry over.
In continuous integration, run the guardrails server as an HTTP service and send the benign traffic set through a test client on every change to the configuration. NeMo Guardrails can load configurations from a folder and expose an HTTP API, and a Dockerfile is provided to build a server image. Building the image from the same commit as the configuration makes the CI run a faithful test of what will be deployed, and it catches differences between the Python process and the server.
- Build from the Dockerfile: build the server image in the pipeline so the image contains the exact configuration folder and library version under test.
- Start the service in the job: run the container, wait for it to respond, then send the benign set through the HTTP API.
- Fail on a threshold: compare the refusal count for each rail with a baseline and fail the job when a rail exceeds the agreed limit.
- Capture the refusing rail in logs: collect the server logs as a job artifact and join each refused request to its rail.
- Keep the benign set versioned: store the traffic set in the same repository so changes to it are reviewed like code.
Check that the CI environment uses the same model endpoints and safety model settings as the server deployed in production.
A staging inference gateway sits in front of model endpoints and applies the same guardrail configuration to live traffic patterns. NVIDIA's NeMo Helix documentation describes NeMo Guardrails as an inference gateway middleware plugin that applies guardrail configurations to model endpoints. This is the closest match to a production path, but it adds routing, authentication and endpoint behavior that the other two environments skip. Confirm the exact behavior of the gateway in the NeMo Helix guardrail documentation for your deployment before relying on its logs.
- Confirm the integration model: verify how the gateway loads the configuration, whether it runs the same rails as the server, and which version it uses.
- Route the benign set through the gateway: send the traffic set through the same route, credentials and endpoint names used by applications.
- Check refusal visibility: confirm which logs show the refusing rail and whether the gateway reports the rail name or only a generic block.
- Match production controls: use the same authentication, model endpoints, safety model deployment and timeouts as production.
- Compare with the other environments: reconcile staging results with CI results and explain any differences before signing off on a rate.
Ask the gateway vendor or your platform team to confirm that staging matches production, since the gateway documentation is the source for this behavior.
Handling the benign set and refusal logs safely
A benign traffic set is only safe to build once every example has been reviewed, because real product traffic often contains personal data, credentials, customer records and confidential business content. Treat the set as a sensitive dataset from the start. Keep only the messages you need to measure over-blocking, remove fields that do not affect the test (account identifiers, order numbers, contact details, session tokens), and redact or replace the rest with placeholders before anyone outside the review group sees it. Record in the set's documentation which source each example came from, who approved it and the date of review, so a later reader can tell what was removed and why.
The refusal logs need the same discipline, and they are often less controlled than the set itself. When a rail blocks a message, the log entry may hold the full user input, the model output that triggered the rail and the names of the rail and flow that fired. Restrict read access to the engineers and reviewers who tune thresholds, keep the logs out of general observability dashboards unless content capture is deliberately limited, and set a retention period for both the benign set and the refusal logs. Confirm the retention period, the lawful basis for processing and any cross-border transfer rules with your privacy and security owners before the first capture. Keep the benign set separate from any dataset used to train or fine-tune a model, and check whether your data processing terms permit reuse of the set for evaluation.
Ask your privacy and security owners to confirm which data rules apply to your organization, your jurisdictions and your customer contracts before you collect any traffic. Those owners should sign off on the minimization steps, the access list, the retention schedule and the deletion process. Document each decision in the same place as the evaluation results so that product owners, auditors and the teams that inherit the configuration can see how the false positive measurements were produced and what data they depended on.
Limits to confirm before you trust the numbers
A false-positive rate is only as trustworthy as the traffic, labels, versions and logs behind it. The cards below cover the checks to run in your own environment before any refusal rate goes to a product owner, because each one can shift the result without the number looking wrong.
Benign set matches production
Check whether the benign set reflects the languages, spelling habits, file types and task mix your users actually send, not only the clean prompts a developer wrote during testing. Compare the set against a sample of recent production traffic that has been reviewed for harm, and note which intents are missing. A set that lacks domain jargon or short follow-up messages will understate over-blocking in exactly the places users complain about most.
Labels agreed by product experts
Ask who decided that each benign example is legitimate. Labels set by security staff alone may treat a refusal as correct when a product owner would call it a failed answer. Have people who know the product's allowed topics review a disputed sample, record their agreement level, and keep the guidelines they used so the labels can be repeated after a prompt or threshold change.
Pinned library and model versions
Record the NeMo Guardrails version, the Python version, every safety or classifier model version, and the prompt files in use for each measurement. A refusal rate taken on one library release can move after an upgrade or a model swap, so an unpinned run cannot be compared with the next one. Confirm the NeMo Guardrails release notes for any change to a rail before you compare runs across versions.
- Current release
- 0.25.0
Judge measured against people
If an LLM judge or a classifier labels refusals or benign traffic, measure that judge too. Score a small hand-labeled set with the same method and check how often the judge disagrees with reviewers, and in which categories. A judge that is lenient on borderline refusals will hide the false positives you are trying to find, so treat its agreement with people as a result in its own right.
Logs name the refusing rail
Confirm that every blocked request is logged with the rail that refused it, the matched rule or model output, and the configuration version. Without that field, a refusal from a topic rail, a self-check prompt or a content safety model looks the same in the report, and tuning one threshold may not change the rail that causes most refusals. Check this in a staging run before relying on any per-rail figure.
Sample size fits the decision
Match the number of benign and adversarial examples to the decision being made. A release gate, a threshold change for one rail and a quarterly trend review each need different sample sizes, and small categories can swing widely between runs. Agree the minimum count per intent or language with the product owner before collection starts, and say in the report which categories are too thin to act on.
What teams ask before measuring NeMo Guardrails false positives
How much effort does measuring NeMo Guardrails false positives take?
The effort depends mainly on how many rails are enabled, how many languages and conversation types the assistant serves, and how much reviewer time is available to label results. Each enabled rail (input, dialog, retrieval, execution or output) can refuse legitimate traffic in its own way, so each needs its own measurement. A single rail on one language with a short, well-labeled benign set is a small job. Several rails across multiple languages and multi-turn conversations multiply the traffic to build, the refusals to review and the thresholds to tune. Ask any provider to break the quote into building the benign set, running the measurements, reviewing flagged results, tuning and reporting, so you can see which items grow with your scope. No effort figure is given here because none has been researched for this work.
How long does a false-positive measurement project take?
The timeline is set by how quickly representative traffic can be collected and labeled, how many tuning cycles are needed, and how long product owners take to decide on trade-offs. Collecting a benign set from logs or from a staged pilot often takes longer than running the checks themselves. Each tuning change to a threshold or prompt requires a rerun and another review, so the number of planned cycles matters. Confirm with any provider the duration of each phase, the number of tuning rounds included in the fixed scope, and the dependencies on your team, since fixed-scope engagements agree deliverables and timelines in writing before work starts.
What does the work need from our team?
Measurement needs four inputs from your side. The first is product owner time to define which refusals are acceptable and which count as over-blocking. The second is representative benign traffic, meaning real or realistic requests that your users send, with sensitive data removed under your own policy. The third is a test environment where the guardrails configuration runs the same way it will in production, including the same models and rails. The fourth is access to logs that show what was blocked and why. Without the last two, teams usually end up measuring a configuration that differs from the one users will see, which weakens the results.
Can our internal team measure false positives on its own?
An internal team can do this alone if it has engineers who can run the NeMo Guardrails configuration in a test environment, write scripts that send benign traffic and record each rail's decision, and read the Colang and config files well enough to trace a refusal to a specific rail. It also needs someone who can judge whether a refusal was legitimate, usually a product owner with domain knowledge. Teams new to the library often underestimate the tuning step, where a change to one rail shifts results for others. Confirm internally whether these skills are present and how many people can give review time, then decide whether a partner should cover the gaps.
What does a quote for this work depend on?
A quote follows from the written scope. DeployOpen does not publish a price list, so the quote depends on the rails in scope, the languages and conversation types covered, the size and quality of the benign traffic set you can provide, the number of tuning cycles, how the results are reported to product owners, and whether the environment is self-hosted in your own infrastructure. Ask for each deliverable and its acceptance criteria to be listed separately, and ask what you must supply and by when. Ongoing re-measurement after model or prompt changes is usually a separate item, and it can be offered as a retainer.
Does the NeMo Guardrails license or microservice status change the cost?
The NeMo Guardrails library is licensed under Apache 2.0, so the library itself carries no license fee, and measuring false positives in a self-hosted setup uses that library. NVIDIA has retired the NeMo Guardrails microservice: its NGC container page says NeMo microservices has been sunset as of October 1, 2026, with no new releases and no support for the artifact. If your current design depends on that microservice, the measurement plan must target the version you will actually run, and the migration work may add to scope. Confirm with NVIDIA what support, if any, applies to your deployment and whether your setup uses the library or the retired service before requesting a quote.
How DeployOpen scopes and delivers false positive measurement
DeployOpen scopes false positive measurement for NeMo Guardrails as a written, fixed-scope piece of work that starts from your assistant's real use cases. We build the benign traffic set, run each rail against it, tune the configuration and hand over the evidence product owners need to decide the trade-off.
How we scope
- Agree in writing which assistants, user journeys and rails are in the false positive measurement scope
- Define the benign traffic sources, labeling rules and who signs off on what counts as legitimate
- Set the refusal metrics per rail and the decision owners who will accept or reject threshold changes
- Confirm the NeMo Guardrails version, Colang generation and model endpoints to be tested
How we build
- Assemble a benign traffic set from production-like logs, approved samples and edge cases your team supplies
- Run each input, dialog, retrieval, execution and output rail against the set and record every refusal
- Review blocked benign requests in groups to separate rail logic faults from prompt and threshold issues
- Tune thresholds and prompts, then rerun the full set so each change is measured against the same baseline
How we hand over
- Deliver a written report with refusal rates per rail, the blocked examples behind them and the trade-offs chosen
- Provide the benign traffic set, scripts and configuration versions so your team can repeat the measurement
- Document how to add false positive checks to unit tests and release gates in your own pipeline
- Walk product owners and security leads through the trade-off so the accepted risk is recorded and owned
How we support
- Retest the configuration after NeMo Guardrails upgrades, prompt edits or model changes
- Extend the benign traffic set as new user journeys and product features appear
- Continue measurement under an ongoing retainer, which is available alongside fixed-scope engagements
- Ask any provider for the scope, deliverables and retest terms in writing before work begins

