A grounding guardrail checks material claims against the evidence available to your internal AI application. For a policy assistant, check whether each claim is supported by an authorized, current passage. If the passage is missing or the applicable versions conflict, withhold that claim and give the employee a route to the document owner. Choose these actions before setting a score threshold.
Measure retrieval, claim support, and completeness
Keep the question, expected applicable document version, retrieved passages, generated answer and displayed citations for each synthetic test. Check whether retrieval included the evidence required to answer. Then check whether each material claim follows from its cited text and whether the answer omits a required condition. Amazon Bedrock distinguishes retrieve-only metrics such as context coverage from generation metrics such as faithfulness and citation precision. Microsoft Foundry also measures groundedness and response completeness separately. Amazon Bedrock RAG evaluation metrics and Microsoft Foundry RAG evaluators
Apply document permissions and effective dates before evaluating the answer. A model can faithfully quote a superseded document, and a checker can pass the quotation against that text. Verify that the citation opens the correct source version and that the passage supports the attached assertion. For a claim with multiple conditions, check each condition. An answer can cite the correct spending threshold and still omit a second approval that applies to cross-border purchases.
Set actions with a policy example
Suppose a hypothetical procurement assistant retrieves a current policy that requires approval for purchases over $5,000 and a superseded version that used $8,000. Both use the same document title. The employee asks whether a $6,000 purchase needs approval.
| Evidence and output | Application action | Component to inspect |
|---|---|---|
| Current policy supports the approval requirement and the answer cites it | Return the answer with the current passage | Citation rendering and document access |
| Only the superseded policy is retrieved | Abstain and direct the employee to procurement | Index freshness and effective-date filter |
| Current policy is retrieved but the answer says approval is optional | Withhold the answer | Claim verification and generation |
| Both versions are retrieved and precedence is unresolved | Ask for clarification or escalate | Document ownership and version metadata |
Add cases where nearby text contains a different currency, approval depends on a business unit, or the controlling exception sits in a different paragraph. Include legitimate paraphrases in the accepted set. A test set with only blatant fabrications can hide a detector that passes unsupported conditions or blocks reasonable restatements. Track unsupported answers released and supported answers withheld at each threshold. Keep counts by case type so a large set of straightforward questions cannot conceal a regression on exceptions.
Choose where to enforce the check
Start with offline evaluation and human review of disputed labels. Before turning on a runtime block, check the effect of the guardrail's own latency and failures. For high-impact claims, buffer the answer until the check finishes. Releasing partial text before verification can expose the exact sentence the final check would withhold. For a lower-risk read-only assistant, you may choose to show only directly verified excerpts when verification is unavailable. Make the application state clear to the reader and account for added escalation work.
A judge that receives retrieved passages also becomes part of the data path. Give it only authorized evidence, review its processing terms, and test with synthetic data before any sensitive deployment. If the judge's result is missing, record that as an unavailable check rather than a passing verdict. Keep representative test cases with the retriever, document set and evaluator versions so you can rerun them when any of those change.
Implement claim grounding in the retrieval and application layer where you have the source versions and citations. Review Alectura's gateway guardrails for the separate controls that inspect inference traffic, and use the RAG document access guide to check authorization before retrieval.
Source documents (2)
Trace a request through Alectura.
Bring a sample prompt and a customer policy. See what reaches the model and which decisions appear in the request record.
