Choosing a fact-checking method in NeMo Guardrails

How to pick a fact-checking or hallucination check for a RAG assistant in NeMo Guardrails, weighing latency, hosting, accuracy and cost.

On this page

Choosing a fact-checking method in NeMo Guardrails for a RAG assistant

The right grounding check depends on where your RAG assistant's answers have to be verified, how fast each answer must come back, and what each check costs per request. NeMo Guardrails offers several ways to test an answer against retrieved evidence, including self-check fact-checking with the application LLM, AlignScore, Patronus Lynx, Cleanlab trustworthiness scores and hallucination detection. Each one trades latency, hosting, accuracy on your own documents and cost differently, so the decision should start from those four criteria rather than from the feature list. A check that is accurate on public benchmarks can still miss errors in your policy manuals, product specifications or claims files, so plan a labeled sample from your own corpus before you commit.

Hosting is the criterion that changed most recently. The current NeMo Guardrails release is 0.25.0, licensed under Apache 2.0, and the library can be run in your own environment at no license charge. The NeMo Guardrails microservice, however, has been sunset as of October 1, 2026, so a team that planned to host checks through that container needs a different deployment target. Confirm with NVIDIA which platform now carries the relevant support and whether your chosen check models can run on infrastructure you control, including any air-gapped network you need. Ask each candidate check for its model sizes, accelerator requirements and the data, if any, it sends outside your environment.

Before you choose, run each candidate against a fixed set of answers that you have already judged as supported or unsupported by the retrieved chunks, and record latency at the concurrency you expect in production. Compare false negatives, where a hallucinated answer passes, separately from false positives, where a correct answer is blocked, because the business cost of each differs. Write down the per-request cost for each option, including the extra LLM calls a self-check adds and the GPU capacity a self-hosted model needs. The result should be one primary check for your assistant and a fallback for the cases it cannot judge.

What each grounding check does and where it runs

Each grounding check answers a slightly different question about a RAG answer, and each needs different inputs and infrastructure. Compare them on what they require before you enable any of them, because the requirements drive hosting, latency and cost more than the check's name does.

Self-check facts

Self-check fact-checking asks the application's own LLM whether an answer is supported by the retrieved chunks passed to it. It needs the relevant chunks in the request and one extra LLM call per check, so it runs wherever your generation model runs. Confirm which model NeMo Guardrails uses for the check, and whether a reasoning model's token budget can cause answers to be blocked when the check runs on a large answer.

NeMo Guardrails docs

AlignScore

AlignScore scores factual consistency between a claim and its evidence using a dedicated model rather than the application LLM. It needs the AlignScore server running on infrastructure you operate, so it adds a separate model service to deploy, patch and monitor. Test the base and large model variants on your own answers and chunks to see how the score behaves before you set a threshold.

Patronus Lynx

Patronus Lynx is an open hallucination detection model that judges whether an answer is faithful to the provided context. Self-hosting it means serving the model on vLLM with GPU capacity sized for the chosen 8B or 70B variant, so hardware is the main cost driver. Confirm GPU needs and the serving path with your platform team before comparing its output quality with the other checks.

Cleanlab trustworthiness score

Cleanlab's trustworthiness score is an output rail that rates how much confidence to place in a response, and it is generally called through an external API. That means your answer text and context leave your environment unless you have reviewed Cleanlab's data handling terms and contracted for them. Ask the vendor which fields are sent, how long they are retained, and whether a self-hosted option exists for your data classification.

Self-check hallucination detection

Self-check hallucination detection works without source documents. It samples several alternative generations for the same question and checks whether they agree, so it multiplies LLM calls per answer and is useful when no retrieved evidence exists. Use it as a complement to grounding checks, and measure the added latency and call volume on your own traffic before enabling it on every request.

Comparing the options on latency, hosting, accuracy and cost

This table compares self-check facts, AlignScore, Patronus Lynx, Cleanlab and self-check hallucination detection across latency, hosting, data exposure, accuracy evidence, cost and best fit. Read each row as a question to answer for your own RAG assistant, not as a ranking. The main takeaway is that the cheapest-looking option often carries the highest recurring cost once extra model calls or GPU capacity are counted.

FactorSelf-check factsAlignScorePatronus LynxCleanlabSelf-check hallucination detection
Latency driversExtra call to the application LLM for each checked answer, so response time grows with model speed and answer lengthDedicated scoring server call, usually faster than an LLM judge, but depends on the base or large model chosenLarge judge model inference, so latency depends on the 8B or 70B size and GPU capacityRound trip to Cleanlab's API for each answer, plus network distance and the vendor's service response timeSeveral sampled generations plus comparison, which multiplies LLM calls and adds the most delay
Hosting modelRuns on the same LLM endpoint the application already usesSelf-hosted scoring server in your infrastructureSelf-hosted open model, typically served on vLLM with GPU capacityVendor-hosted APIRuns on the application LLM endpoint
Data leaving the environmentAnswer and retrieved chunks go to the LLM provider you already useStays inside your environment when self-hostedStays inside your environment when self-hostedAnswer and context are sent to Cleanlab's API, so confirm the data terms before enablingPrompts and sampled answers go to the LLM endpoint in use
Accuracy evidence to collectPrecision and recall on labeled answers from your own corpus, with the threshold you chose recordedConsistency scores compared with human labels on your documents, base versus large modelHallucination labels on your RAG pairs, checked against your own human reviewScore behavior on your domain, and how the threshold separates good from bad answersAgreement with human review on questions where no source exists, across the sampling settings you use
Cost componentsPaid per check to the LLM provider, recurring with every answerCompute for the scoring server, recurring as traffic growsGPU capacity to run the judge model, recurring, plus engineering to operate vLLMVendor API fees, recurring per check, so confirm the rate and volume tier in writingLLM provider fees for every sampled generation, recurring and often the largest share
Who is paidYour application LLM providerYour infrastructure team for hosting; no per-call vendor fee for the open serverYour GPU provider or data center, plus operations staffCleanlab, under its API termsYour application LLM provider
Best fitSmaller assistants with modest answer volume and an LLM endpoint you already trustFast, self-hosted factual consistency checks where a dedicated scorer is acceptableRegulated environments that need a dedicated open judge model under their own controlTeams that accept an external API and want a trustworthiness score as an output railQuestions without retrieved evidence, where a warning or block is acceptable and added cost is accepted
NoteBenchmark every option on your own evidence set of questions, chunks and expected answers before choosing. Public figures and vendor claims do not transfer to your documents, traffic or hardware.Not applicableNot applicableNot applicableNot applicable

When a RAG assistant needs a grounding check at all

A grounding check is worth its latency when a wrong answer carries real consequences. Regulated answers, policy questions and anything a customer could act on deserve a fact-checking output rail, because a fluent answer that contradicts the source document is hard for users to spot. Examples include eligibility rules, fee schedules, clinical guidance or internal controls. For low-stakes answers, such as navigation help or a general product overview, a check adds an extra model call to every response with little added protection. Before you commit, list the question types your assistant answers and sort them by the harm a wrong answer would cause. That list, not the technology, should decide which rails run on which routes.

Every fact-checking rail depends on the retrieval step. Retrieval rails filter and validate chunks before they enter the prompt, but an output rail can only judge an answer against the evidence it is given. Confirm that your application passes the relevant chunks to the rail on each request, and test a few questions whose answers you know are missing from the index. If the rail receives an empty or irrelevant context, it cannot tell whether the answer is supported. The same test shows whether your retriever returns the right passages in the first place, which is often the larger source of error.

The second decision is the response mode. In blocking mode, an answer that fails the check is replaced, so users never see unsupported content but may get refusals on correct answers when the check is strict or the evidence is thin. In warning mode, the answer is delivered with a flag that your application can log or display, which suits pilots and tuning periods but leaves unsupported text reachable. Many teams start in warning mode, review the flagged traffic with domain experts, and then move high-stakes routes to blocking. Record which mode each route uses, because auditors and your own reviewers will ask.

How to choose a grounding check step by step

The decision starts with whether the assistant answers from retrieved documents. If it does not, the no-source hallucination rail is the only option in this set. If it does, the path checks data residency and external API limits first, then GPU availability, latency budget and whether a reasoning model already sits in the answer path. Each hand-off narrows the choice, so check the constraints in that order before comparing accuracy or cost.

Decision path from retrieved-document use to the grounding check that fits the constraints.

Running a bake-off on your own RAG evidence

This sequence tests each candidate grounding check against the same questions and evidence from your own assistant, so you compare methods on your data rather than on published benchmarks. It produces a side-by-side record of latency, verdicts and reviewer judgments that supports the final choice.

  1. Assemble a labeled question and evidence set

    Collect a set of questions your assistant actually receives, along with the chunks your retriever returns for each one and a reviewer label for whether the correct answer is supported by those chunks. Include answers that are grounded, answers that are partly unsupported and answers the evidence cannot settle. Your team owns this set, and a domain reviewer should sign off on the labels. The step is done when every question has its chunks and a label recorded in a file that every candidate run will read.

  2. Install nemoguardrails on a supported Python version

    A platform or security engineer installs the nemoguardrails package from PyPI into a clean virtual environment using Python 3.11, 3.12 or 3.13, which are the versions the current 0.25.0 release requires. Pin the version so every candidate runs on the same library build. The step is done when the import succeeds and the guardrails CLI or Python API loads an empty test configuration without errors.

  3. Configure one fact-checking rail per candidate

    Create one configuration folder per candidate method, each with a config.yml that enables a single grounding rail, plus any Colang files and actions that candidate needs. Keep the application LLM, prompts and retrieval settings identical across folders so that only the checking method changes. Confirm that the retrieval path passes the chunks from your labeled set into the rail: log the rail inputs for a few questions and check that the evidence text arrives where the rail expects it. Do not start the comparison until that check passes.

  4. Run every candidate against the same set

    Run the full question set through each configuration in turn, using the same chunks and the same generated answers where your setup allows it, so differences come from the checking method rather than from generation variance. Capture the answer, the rail verdict, any score returned and the reason for a block or warning. The step is done when every candidate has a verdict for every question and no run silently skipped a row because of an error.

  5. Record latency and verdicts per candidate

    Measure the time each check adds to a response, separately from generation time, and store it alongside the verdict and the threshold used. Repeat measurements on the same hardware so the numbers are comparable. Build a table with one row per question and one column per candidate. The step is done when the table shows verdicts, latency and thresholds for all candidates, and when you have confirmed the hardware and model settings used for each latency figure.

  6. Compare blocked answers with reviewer labels

    Score each candidate against your reviewer labels, counting answers it blocked or flagged that the reviewers judged grounded, and answers it passed that reviewers judged unsupported. These two error types carry different costs for a RAG assistant, so report them separately. Keep the threshold fixed across questions when you compare. The step is done when each candidate has a count of both error types and a short note on the pattern behind the errors.

  7. Review disagreements manually

    Pull every question where candidates disagree or where a candidate disagrees with the reviewers, and have a domain reviewer read the answer, the chunks and the verdict together. Record whether the fault lies in the check, the threshold, the chunking or the label. Feed threshold or chunking fixes back into the configuration and rerun only the affected rows. The step is done when each disagreement has a recorded cause and the team agrees on which method, threshold and hosting model fit the assistant's risk and budget.

Questions buyers ask before choosing a grounding check

How much effort does a grounding check bake-off take?

A bake-off takes longer than most teams expect, because most of the work is building an evaluation set, not running the checkers. Effort depends on how many candidates you compare (self-check, AlignScore, Patronus Lynx, Cleanlab and hallucination detection), how many RAG answers and retrieved chunks you label, and how many hosting options you test. Each candidate needs its own deployment, a latency measurement at your expected traffic, and a review of misses and false alarms. Answers that depend on long or multi-document evidence need more test cases. Before you accept a timeline in a quote, ask for the evaluation set size, the metrics used and the hardware the tests ran on.

Can our own team run the bake-off without outside help?

Yes, if your engineers can deploy NeMo Guardrails, run models on infrastructure you control, and label evaluation data against a written rubric. Most gaps are in evaluation design rather than tooling. Teams often lack a neutral labeled set, an agreed definition of an unsupported claim, and time to rerun tests after each configuration or retriever change. Plan for at least one reviewer who did not tune the thresholds, so the results can be defended to risk and compliance teams. An outside partner can take over the test harness and the written findings, while your staff keep the domain judgment on what counts as a grounded answer.

What costs come with a fact-checking method, and which ones recur?

Costs fall into four groups. Engineering time for the bake-off and the final configuration is mostly one-time. Hardware for self-hosted checks, such as AlignScore or Patronus Lynx, is a recurring cost in the cloud accounts or data centers where it runs. Model inference on each answer recurs with traffic, and self-check adds extra calls to your application LLM. Hosted scoring, such as Cleanlab's API, bills per use and sends data outside your environment, so it recurs as well. Ask each quote to separate one-time work from monthly run costs, state the usage assumptions, and confirm current license and service terms with each vendor.

How long does choosing a grounding check take?

It depends on scope and the evidence set. The timeline grows with the number of candidate checks, the size and quality of your labeled answers, the hosting approvals you need, and whether a self-hosted model needs GPU capacity provisioned first. A narrow comparison on one document collection with existing labels moves faster than one that spans several knowledge sources and needs new labeling. No duration is stated here. Ask for milestones, a list of dependencies and a list of what you must supply and by when, all written into the agreed scope before work starts.

What does the bake-off need from our organization?

Three inputs matter most. First, labeled evidence: sample questions, the chunks your retriever returns, the generated answers, and a judgment on whether each claim is supported by those chunks. Second, GPU or CPU access for any self-hosted check, in a cluster or data center you control. Third, model approval: sign-off to use each open model, its license terms and where it will run, through your security or model risk process. You will also need a non-production environment that matches your retriever and LLM endpoint. Ask the partner or your own team to list each input, its owner and the date it is needed.

Can DeployOpen run the fact-checking bake-off for us?

Yes. DeployOpen plans, implements, customizes, integrates, hardens, documents and supports self-hosted open-source platforms in infrastructure you control, which includes NeMo Guardrails deployments. A fact-checking comparison would be scoped in writing before work starts, with the candidate checks, evaluation set, hosting model and deliverables agreed up front. DeployOpen does not publish a price list, so a quote follows from that written scope. Retesting after model or retriever changes can be handled under a retainer. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications.

Is NeMo Guardrails free to use for fact-checking?

The NeMo Guardrails library is licensed under Apache 2.0, so the library itself carries no license fee for use. Confirm terms for every component you add. Self-check uses your own LLM, self-hosted models carry their own licenses, and hosted APIs bill separately. NVIDIA has also retired the NeMo Guardrails microservice: its NGC catalog notice says NeMo microservices was sunset as of October 1, 2026, with no new releases or support. Plan around the Python library or a server image you build and run yourself, and confirm the current license text in the NeMo Guardrails repository before you commit.

Security and operational considerations for each check

Each fact-checking method sends different text to different places, runs under different access controls, and produces verdicts that someone must log and review. The cards below cover the checks that apply whichever method you choose, and the platform questions to settle before you commit to one.

Data leaving your environment

Hosted checks send retrieved evidence and answers outside your network. Cleanlab's trustworthiness score is called through its API, so the question and answer text leave your environment. Self-check and self-hosted models send the same text to whichever LLM endpoint the configuration names. Before you enable any check, map which fields go to which endpoint, whether they include personal data or regulated records, and what the provider's retention terms say. Confirm these with the vendor in writing.

Model and server access control

Each check adds a model or service that must be reachable, authenticated and scoped. A self-hosted AlignScore or Lynx server, or a vLLM endpoint behind it, should accept calls only from the guardrails server and never from end-user networks. Keep endpoint credentials in your secrets store, not in config.yml, and restrict who can change the rail configuration, since a changed threshold silently changes what users see.

Logging verdicts for audit

A fact-check verdict is evidence that a control operated, so record it. For each blocked or flagged answer, keep the question, the retrieved chunk identifiers, the check name, its score and the threshold in force at that time. Decide how long these records are kept and who can read them, because the logs may contain the same sensitive text the check examined. Confirm with your compliance team which of these fields they need before you design the log schema.

Confirming the NeMo microservice successor path

NVIDIA has sunset the NeMo Guardrails microservice, so any deployment that depended on its container needs a new plan. NVIDIA's archived documentation points existing users to their account team and to NeMo Platform. The NeMo Helix repository runs NeMo Guardrails as an inference gateway plugin, which may suit some teams. Confirm with NVIDIA which path applies to your license and support status before you choose a check that depends on a hosted service.

Microservice sunset
October 1, 2026
Sunset notice

Monitoring false blocks

Every threshold trades missed hallucinations against answers wrongly blocked. Track the rate at which each check blocks answers, sample blocked answers for human review, and compare the results against a labeled set of grounded and ungrounded answers from your own corpus. Review the rate after each change to the model, the retriever or the threshold, because a check that blocks too many answers will push users toward unchecked tools.

Turning the comparison into a written decision

A shortlist only becomes a decision when the team records what it tested, under which conditions, and what it chose to accept. Start by assembling one evidence set for the RAG assistant: the exact config.yml used for each candidate, the knowledge base or retriever output used in tests, the labeled question and answer pairs, and the threshold values in force. Each candidate check, whether self-check fact-checking, AlignScore, Patronus Lynx, Cleanlab or hallucination detection, should be measured against the same set so that latency, hosting footprint and miss rate can be compared directly. Record the measured results beside the hosting constraints that apply to your environment, such as whether a check may call an external API, which GPUs are available, and whether the check must run in an air-gapped network. Confirm the Python version and deployment target against the NeMo Guardrails README before treating any candidate as feasible in your stack.

The decision then goes to the security and compliance owners, who should sign off on a named residual risk rather than an abstract statement that the assistant is grounded. Write down which hallucinations the chosen check is expected to miss, which answers it will block or flag, and who reviews those outcomes and how often. The owners should also confirm where evidence and data flow, since a hosted scoring service and a self-hosted model create different records for auditors. Keep the decision record under version control next to the configuration, and set a trigger for review, such as a NeMo Guardrails upgrade, a change to the knowledge base, or a new model behind the assistant. Ask the team responsible for each check to confirm its current release status before sign-off.

How DeployOpen scopes and delivers grounding checks

DeployOpen plans and builds the grounding layer for a RAG assistant inside your own infrastructure, using the NeMo Guardrails configuration you choose after comparing the fact-checking options. The work is agreed in writing before it starts, so the check method, its hosting and its evidence are settled before any build begins.

How we scope

  • Engagements are fixed-scope, with the fact-checking method, hosting location and latency budget agreed in writing before work starts.
  • The written scope names which answers and retrieved chunks each grounding check will see, and which data leaves your network.
  • Scope also records the threshold decisions, fallback behavior when a check fails, and the models and GPUs you already operate.

How we build

  • We configure the chosen checks in NeMo Guardrails, enabling each one only on the answer paths where grounding matters.
  • We wire retrieved chunks into retrieval rails and output rails so the check runs against the evidence the assistant actually used.
  • We test each method against a representative set of questions and answers from your documents before any check is switched on for users.

How we hand over

  • You receive the NeMo Guardrails configuration files, the check settings and documentation explaining why each method was chosen.
  • Handover includes the test results comparing latency, blocked answers and false positives for the methods that were evaluated.
  • We document the operating runbook, including how to adjust thresholds and what to review when grounding checks block an answer.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so checks keep pace with NeMo Guardrails releases.
  • Retesting covers model changes, new document sources and NeMo Guardrails version upgrades before they reach users.
  • Support scope, response expectations and review cadence are confirmed in the retainer agreement before it begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.