AlignScore fact-checking in NeMo Guardrails

AlignScore fact-checking in NeMo Guardrails checks whether a RAG answer is supported by retrieved evidence, and running the server in your own infrastructure keeps that check under your control.

On this page

When AlignScore fact-checking belongs in a RAG answer check

AlignScore fact-checking in NeMo Guardrails checks whether a generated answer is factually consistent with the passages the retriever returned. Choose it when a RAG assistant must not state claims its retrieved sources do not support, and when you want that judgment made by a dedicated scoring model you host, instead of asking the application LLM to grade its own answer. The check belongs after generation. Retrieval rails act first, validating, filtering and masking chunks before they enter the prompt, so the fact check compares the answer against the evidence that survived those filters. In a NeMo Guardrails configuration, it runs as an output rail, so a failing score can block or replace the answer before the user sees it.

The AlignScore server runs in your infrastructure, alongside the guardrails server that NeMo Guardrails can run as a container with an HTTP API. That placement is the main reason many teams choose a self-hosted check: the retrieved passages, the generated answer and the scores can stay inside your network instead of going to a third-party moderation service. Reviewers will ask where each component runs, so document the AlignScore server as its own service with its own hosting, patching, logging and access controls. Confirm with the AlignScore project and the NeMo Guardrails documentation which model variants exist, their memory and accelerator needs, and which NeMo Guardrails releases they are tested with.

Before you commit, run a representative set of answers through the rail, including answers you know are supported and answers that contain unsupported claims. Record the scores, the latency and the blocking outcomes on the hardware you plan to use. Ask the AlignScore project for benchmark data in your language and domain, and treat any published figures as starting points to verify. If your assistant rarely answers from documents, or your sources are short and unstructured, expect the check to need tuning, and plan time for reviewing false blocks with the people who own the content.

Base versus large AlignScore models and how to choose

This table compares the base and large AlignScore options on hardware, relative latency and accuracy, plus the server and configuration choices that apply to both. Use it to shortlist a model, then measure each option on your own answers, because exact latency and accuracy figures depend on your hardware, chunk sizes and labeled data.

Decision factorBase modelLarge model
Hardware needsSmaller memory footprint, so a modest accelerator or CPU may be workable. Confirm against the model documentation and a test run.Larger memory footprint, so plan for dedicated accelerator capacity. Confirm the requirement at your expected concurrency.
Expected latencyExpected to be the faster of the two per check. Measure p95 latency on your own retrieved chunks and answers.Expected to be slower per check on the same hardware. Measure on identical inputs before comparing.
Accuracy trade-offMay miss subtle unsupported claims more often. Confirm the miss rate on a labeled sample of your answers.Generally expected to score better on consistency tasks. Confirm the gain on the same labeled sample.
Best fitHigh-volume assistants with a tight latency budget and a tolerance for some missed unsupported claims.High-stakes answers where a missed hallucination costs more than the added latency and hardware.
Server deployment choiceContainer image from your registry or a self-managed Python service. Both need the same model files and a Python version in the 3.11 to 3.13 range.Same two options. Choose the container path for repeatable rollouts and the Python service where your team needs direct control of the runtime.
Configuration selectionSet the fact-checking check and model location in config.yml. Confirm the exact keys for your NeMo Guardrails release, currently 0.25.0.Same config.yml file with the larger model reference. Confirm the key names in the release notes before any upgrade.
Selection testRun the base model on a labeled set of RAG answers and record latency and missed unsupported claims.Run the large model on the same set under the same hardware and concurrency, then compare both results before choosing.

How a RAG answer moves through retrieval and the AlignScore check

The flow starts with the user question, which reaches the retrieval rail that filters the chunks before they enter the prompt. The application LLM drafts an answer from those chunks, and the output rail sends the draft and the relevant chunks to the AlignScore server inside the client's network. The output rail then allows or blocks the response, so check the trust boundary and confirm that no evidence leaves the environment.

Retrieval, answer generation and AlignScore scoring inside the client network.

Why teams run the AlignScore server inside their own network

Running the AlignScore server inside your network keeps the two kinds of data it handles under your own controls: the generated answer and the retrieved evidence chunks that the answer is scored against. In a RAG pipeline, every scoring request carries both, and the evidence often contains customer records, contracts or internal policy text. When the server runs in your cloud account or data center, those payloads move only over network paths you define, and retention and access for them follow your existing data handling rules. The main reason to self-host is that sensitive evidence never has to leave your boundary to be checked. Confirm this with your data protection and legal teams before you rely on it, because it also depends on how the NeMo Guardrails container and its logs are configured.

Hosting the server also gives your team control over which scoring model and server build are in use and when they change. A factual consistency score can shift when the underlying model changes, so the team should pin versions, rerun its own evaluation set before each upgrade, and keep the previous image available for rollback. The NeMo Guardrails library is licensed under Apache 2.0 and can be run as a server in a container, so the release and its Python requirements can be fixed in your build pipeline. For example, NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, so your base image must match one of those. Check the NeMo Guardrails documentation for the requirements of the release you pin.

A self-hosted scorer can be reviewed by your security and compliance teams like any other internal service. They will want to see the container image and its provenance, how the endpoint is authenticated and which services can reach it, and what the service writes to its logs, including whether request and evidence text is recorded. Settle these three areas (logging, access and network paths) before go-live, and document the answers. Hosting cost is also yours to estimate: it is driven by the compute and memory your chosen model needs, storage, and the people who patch, monitor and upgrade the service. Ask your platform team to price it against your own infrastructure and to name who is on call for it.

How AlignScore compares with self-check on latency, hosting and accuracy

AlignScore and self-check both ask whether an answer is supported by retrieved evidence, but they get there in different ways. The differences show up in response time, what you have to run, how much the check can be trusted, and what it costs over time. Each card below is a question to answer with your own data before you commit to one approach.

Latency per answer

Self-check fact-checking makes an extra call to the application LLM for every answer it checks, so its delay grows with model speed and prompt length. AlignScore uses a dedicated scoring model that compares the answer with the evidence in one pass, which often makes it faster, but the gap depends on your hardware and chunk sizes. Measure both checks on a sample of real questions, at your expected concurrency, and record the 95th percentile, not only the average.

Hosting and operations

Self-check reuses the LLM you already run, so there is no new service to deploy. AlignScore needs a separate AlignScore server that your team must install, monitor, patch and place inside the same network boundary as the application. Ask who will own that service, how it is restarted after failures, and whether it can run in an air-gapped environment if your deployment requires it.

Accuracy depends on evidence

Neither check is reliable if the retrieved chunks are incomplete, stale or irrelevant, because a correct answer can be marked unsupported and a wrong one can be marked supported. The score threshold also changes outcomes: a high threshold blocks more good answers, and a low one lets weak answers through. Build a labeled set of answers that are supported and unsupported by your own documents, then test each threshold against it before enabling blocking.

Recurring cost comparison

Self-check spends application LLM tokens on every checked answer, so cost rises with traffic and with the length of retrieved evidence. AlignScore moves that work onto GPU or CPU capacity you provision, which is a fixed infrastructure cost plus the staff time to run it. Ask your team to model both monthly bills at projected query volume, and include the cost of re-validating accuracy after model or document changes.

Choosing for your workload

Pick self-check when traffic is low, the answer model is strong, and you want fewer moving parts. Pick AlignScore when query volume is high, latency budgets are tight, and your team can operate an extra service. Whichever you choose, keep the other check available for a sample of traffic so you can compare outcomes before switching. Document the decision and the threshold for your auditors.

Setting up the AlignScore server and wiring it into your rails

This sequence takes a team from a confirmed NeMo Guardrails and Python version to a running AlignScore server that the rails call on retrieved evidence, verified with known supported and unsupported answers before any user traffic reaches it.

  1. Confirm the NeMo Guardrails and Python versions

    The platform engineer records the NeMo Guardrails release the team will pin, which is 0.25.0 as of the researched release data, and confirms the runtime uses Python 3.11, 3.12 or 3.13. Check the release notes and README for the version you plan to pin, since the library deprecates the LLMRails class in favor of Guardrails in 0.25.0 and removal is planned no earlier than 0.27.0. Done means a written version matrix exists and a clean virtual environment reports a supported Python version.

  2. Install the library in an isolated environment

    The engineer installs the pinned nemoguardrails package from PyPI into a dedicated virtual environment or container image, not a shared application environment. Record the exact resolved versions of the library and its dependencies so the configuration can be reproduced during an audit or upgrade. Done means importing the package and running the version command returns the pinned release without dependency conflicts.

  3. Deploy the AlignScore server in your environment

    The platform team deploys the AlignScore server inside the cloud account, data center or air-gapped network that holds your documents, so retrieved chunks and generated answers never leave your boundary. Confirm with the AlignScore project which model files are required, which checkpoint size fits your latency and hardware budget, how the model files are obtained and licensed, and what server configuration and port the service expects. Done means the server answers a local health request and loads its model without errors.

  4. Point config.yml at the AlignScore endpoint

    The engineer adds the fact-checking rail and the AlignScore endpoint settings to config.yml in the guardrails configuration folder, using the key names documented for the release in use, and keeps the endpoint address in an environment variable or secret store rather than in the file. Store the configuration in version control so every change to thresholds or endpoints is reviewed. Done means the guardrails server or Python API loads the configuration without validation errors.

  5. Pass the relevant chunks to the rail

    The application developer ensures the retrieval step returns the chunks that actually support the answer, and passes them into the rails context on each request under the variable name the fact-checking rail reads. The rail compares the generated answer against that evidence, so an empty or unrelated chunk list produces misleading scores. Log the chunk identifiers with each request. Done means a test request shows the expected chunks in the rail input trace.

  6. Test with known supported answers

    The QA lead prepares a small set of questions whose answers are fully stated in the supplied chunks, runs them through the pipeline, and records the AlignScore result and whether the answer was passed through. Use wording variants so the check is not only testing exact matches. Done means every supported case passes the rail, and any unexpected block is traced to chunk content, threshold or prompt before continuing.

  7. Test with known unsupported answers

    Using the same chunks, the QA lead writes answers that add an unsupported figure, a wrong date or a claim absent from the evidence, then confirms the rail flags or blocks them according to the configured action. Include a few answers that are correct but paraphrased to measure false positives. Done means the results are saved as a dated test record that can be rerun after any change to the model, server, thresholds or NeMo Guardrails version.

Where the AlignScore server can run: connected, container or air-gapped

When the cluster or virtual machines can reach the package indexes, model hosts and container registries your team has approved, the work is mostly standard platform engineering. NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, so pin one of those versions in the image or virtual environment. Confirm with the AlignScore model source exactly which files the server downloads and whether that download is permitted from your egress path.

  • Egress allowlist: Limit outbound access to the specific model and package hosts you approved, and record them in the change request.
  • Python runtime: Build on Python 3.11, 3.12 or 3.13, and keep the interpreter version in the deployment manifest.
  • Model download timing: Decide whether the model is fetched at first start or baked into the image, since the choice changes your update and audit trail.
  • Secrets handling: Keep registry and model hub tokens in your secrets store and out of configuration files in source control.
  • Network policy: Restrict which pods or services can call the fact-checking endpoint, since only the application needs access to it.

Check the egress rules, pinned versions and exact download sources with your platform team before the first deployment, and repeat those checks at every upgrade.

Security and operational risks of a self-hosted fact-check server

A self-hosted AlignScore server adds a model endpoint, a set of dependencies and a request-path dependency to your guardrails stack. Each card below is a control the team should design before the build starts, not after the first audit question.

Restrict who can call the scoring endpoint

Only the NeMo Guardrails service should be able to reach the AlignScore server. Place it on an internal network segment, restrict it with network policy or service identity, and require authentication on every request. Test the restriction from a host outside the guardrails service, because a fact-check endpoint that any internal client can call can also be used to probe your evidence and answers. Confirm how your deployment authenticates the caller before go-live.

Limit what the scoring logs keep

AlignScore receives the retrieved evidence and the generated answer, and both can contain customer or employee data. Decide which fields the server and the guardrails service log, such as scores, timestamps and request identifiers, and which fields they omit. Set a retention period for logs that does contain content, and document who can read them. Ask your security team to review a sample log line before production traffic reaches the rail.

Pin and verify model files

The AlignScore checkpoint you load is a binary artifact, and a silent change to it changes every factual consistency score your assistant produces. Pin the exact model file and version in your configuration, store a checksum, and verify it at deployment. Record which checkpoint produced each score so that a later investigation can reproduce it. Keep a copy in your own artifact store so the deployment does not depend on an external download at startup.

Patch the server and its dependencies

The fact-check server brings its own Python runtime, inference libraries and container base image, and each needs a patch owner and a cadence. Scan the image and dependency set on a schedule, rebuild when a fix ships, and retest scores after any change to the model runtime. Treat a patch to the inference stack as a change that can move scores, not only as a security update. Confirm the supported Python versions for your NeMo Guardrails release before you pin them.

Plan capacity for the request path

The fact-check rail sits in the answer path, so a slow or unavailable scoring server delays or blocks every RAG answer that depends on it. Size the server for peak concurrent requests, define a timeout, and decide the fallback when the call fails: block the answer, return it with a warning, or skip the check. Each choice is a product decision that should be signed off by the business owner. Measure latency under load before you set the timeout.

Confirm the hosting path for the NeMo stack

NVIDIA sunset the NeMo microservices in October 2026 and directed existing users to contact their account team, so any container or service you plan to run alongside the rails needs a confirmed supported path. Confirm with NVIDIA which artifacts remain available and how they are maintained before the build starts. Keep the library version and the server image under your control, and record the decision in your architecture file.

Sunset notice

Questions buyers ask before running AlignScore fact-checking

How much effort does an AlignScore setup take, and what drives it?

The effort depends on how many moving parts you run yourself: the NeMo Guardrails configuration, the AlignScore server, the hardware it runs on, and the evaluation work that proves the threshold suits your documents. The NeMo Guardrails library itself requires Python 3.11, 3.12 or 3.13 (per the library's README and PyPI metadata, read November 2026), and it can run as a Python API or as a guardrails server with an HTTP API. Your effort rises with the number of retrieval sources, the diversity of document types, the number of environments (development, staging, production, air-gapped), and the depth of logging and review your compliance team expects. Ask any partner for a written breakdown of these components so you can compare the work against your own estimate.

Can an internal team set up AlignScore without outside help?

Yes, if your team already runs Python services, containers and GPU or CPU workloads, and has someone who can own evaluation of factual consistency results. The work involves standing up the AlignScore server, wiring it into NeMo Guardrails as a fact-checking step, configuring the retrieval chunks passed to the check, and testing the output against known good and bad answers from your own corpus. Teams without experience in RAG evaluation or model hosting usually find the evaluation and threshold tuning harder than the installation. An outside partner can take over any part of this under a written scope, while your team keeps the knowledge needed to operate it afterward.

What does the work need from our side?

The work needs four things from your side: compute, network approvals, evaluation data and a named owner. Compute means GPU or CPU capacity sized for the AlignScore model you choose, which you should confirm against the model documentation before purchasing hardware. Network approvals cover where the server runs, which services can call it, and whether any outbound connection is permitted, which matters for air-gapped networks. Evaluation data means a set of representative questions, retrieved chunks and answers with labels for whether each answer is supported. A named owner is a person who decides the threshold, reviews blocked answers and signs off on changes. Without these four inputs, the engagement cannot be scoped or delivered reliably.

How long does AlignScore fact-checking take to set up?

Duration depends on scope and environment, and no fixed figure applies across organizations. A single development environment with one document source and a clear evaluation set takes far less time than a production rollout that involves security review, change control, air-gapped deployment and integration with several RAG pipelines. The main schedule drivers are how quickly you can provision hardware, how long network and security approvals take, how much labeled evaluation data exists, and how many stakeholders must sign off on the threshold. Ask for a timeline in the written scope that lists these dependencies as milestones, and confirm each one with your own infrastructure and approval teams.

What recurs after AlignScore goes live?

After go-live, recurring work covers keeping the model and libraries current, monitoring the check's behavior, and reviewing the threshold as your content changes. NVIDIA publishes new NeMo Guardrails releases, with 0.25.0 released on 19 November 2026 and 0.24.1 released on 16 September 2026 (per PyPI and the NeMo Guardrails releases page, read November 2026), so you should plan upgrade testing on a regular cycle. Monitoring should track blocked answers, false positives reported by users and latency. Threshold reviews are needed when new document types, languages or domains enter the knowledge base. Ask any partner whether these activities are included in support, which can be delivered as a retainer, and how upgrades are tested before they reach production.

How do we request a quote for AlignScore fact-checking?

Request a quote from a written scope, because a price cannot be set accurately without one. DeployOpen does not publish a price list, and most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Your request should list the RAG pipelines in scope, the document sources and their formats, the target environments (cloud, data center or air-gapped), the hardware you already own or plan to buy, the evaluation data you can provide, the named owner on your side, and any compliance evidence your reviewers require. Ask the provider to state what is one-time, what recurs and which assumptions would change the figure.

Does AlignScore fit our compliance review, and what evidence will we have?

AlignScore fits into a compliance review as one control in a larger grounding and logging design, but it does not make an assistant compliant on its own. Reviewers usually ask where the check runs, what data leaves your network, how decisions are logged, who approves threshold changes and how the check is tested before release. Self-hosting the AlignScore server keeps evaluation traffic inside infrastructure you control, which is often the first question security teams raise. Confirm with your compliance team which frameworks apply and which evidence they need. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit reports or certifications.

Limits to confirm in your environment before you commit

AlignScore fact-checking depends on model versions, hardware, document types, thresholds and the NeMo Guardrails release you run. Each of the cards below is a point to settle in writing with your own environment, not a result you can assume from the library.

AlignScore model versions and licenses

Confirm which AlignScore checkpoint you plan to serve, base or large, and the license terms that come with it before you copy weights into your environment. Ask whether your legal team accepts those terms for internal production use, and record the exact checkpoint name so the evaluation later tests the same model you deploy.

Hardware for each model

Measure the memory and accelerator needs of each AlignScore size on your own nodes, since the hardware drives where the server can run. Ask whether a CPU-only path is acceptable for your request volume, and confirm that the GPU class and driver stack in your data center match what the serving setup expects.

Document types and languages

Test the check on the document types your assistant actually retrieves, such as policy PDFs, tables, scanned text or contracts. Confirm how the model handles languages other than English, because a score that looks sound on clean English prose may not hold on your corpus.

Threshold and evaluation method

Set the score threshold from a labeled sample of your own answers rather than a default, and decide who signs off on that sample. Document how you measured false blocks and missed hallucinations, and keep the test set so you can repeat the measurement after a model or threshold change.

NeMo Guardrails version and deprecations

Pin the NeMo Guardrails release you test against and read its migration notes before you write integration code. The 0.25.0 release deprecates the LLMRails class in favor of Guardrails, and removal is planned no earlier than 0.27.0, so code that calls LLMRails needs a migration plan.

Guardrails releases

Hosting path after the sunset

If you planned to run guardrails through the NeMo Guardrails microservice, confirm its status first. NVIDIA has sunset the NeMo microservices and says the container is no longer supported, so ask your NVIDIA account team what replaces it for your deployment and whether the library-based or server-based path meets your support needs.

NGC guardrails container

How DeployOpen scopes and delivers AlignScore fact-checking

DeployOpen approaches AlignScore fact-checking as a written, fixed-scope engagement inside infrastructure you control. We agree the RAG pipeline, the grounding check, its placement among the rails and the evidence your team needs before any build starts. Ongoing support is available as a retainer.

How we scope

  • We map which RAG answers need a grounding check and which can skip it.
  • We agree the AlignScore model size, hosting location and GPU or CPU resources in writing.
  • We confirm the NeMo Guardrails release, Python version and Colang version your team will run.

How we build

  • We deploy the AlignScore server on your infrastructure and connect it to the guardrails configuration.
  • We wire the check to retrieved chunks and set the threshold against your own test answers.
  • We test latency on representative load and record results against the self-check baseline.

How we hand over

  • You receive configuration files, deployment manifests and a runbook for the AlignScore server.
  • Your team receives documented threshold decisions and a list of known failure cases.
  • We walk your engineers through monitoring, restarts and how to re-run the evaluation set.

How we support

  • Ongoing support covers NeMo Guardrails upgrades and changes to the AlignScore server, available as a retainer.
  • We retest the grounding check when the RAG pipeline, retriever or application model changes.
  • Continuous testing of the fact-checking rail can be added to a retainer on request.

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.