Start with two questions: what supports the answer, and what authorizes the action? Keeping separate records for each makes the design easier to evaluate.
AWS describes RAG as searching data for relevant information and using it to improve generated responses. LangChain describes workflows with predetermined paths and agents that choose their processes dynamically. These are descriptions of information access and control flow; neither description alone establishes that a business decision is correct. AWS Knowledge Bases · LangChain workflows and agents.
Can a valid policy answer contain an unchecked claim?
Yes: a result can be valid within the policy variables while another sentence remains outside the check. This is an evaluation boundary to document, not a reason to abandon policy validation.
AWS’s Automated Reasoning documentation explicitly limits a VALID result to the parts of the input captured through policy variables. It also distinguishes checking a response from enforcing an application decision: the service operates in detect mode and returns findings for the application to handle. Its formal policy check does not by itself decide what the user will receive.
Extend our fictional expense example: the receipt is 120 units and the verified cap is 100. The answer says, “You can receive 100 units, and the money will arrive tomorrow.” If the policy represents the cap but no processing-time rule, a successful cap check cannot establish the second claim. Review timing against its own authoritative evidence; hold or remove it if unresolved. No AWS request or payment was executed for this example.
| Review boundary | Evidence needed | What it cannot establish alone |
|---|---|---|
| Retrieved policy | Correct version, applicable passage and access context | That every generated claim follows from it |
| Claim support | Each claim matched to the retrieved evidence | That the evidence is current or the right authority |
| Formal policy check | Captured variables, rules, finding and translation coverage | Truth of sentences outside those variables |
| Application handling | The actual served response and declared exception path | That an intended payment completed |
| Destination outcome | Request-linked receipt and resulting state | Correctness of every sentence in the answer |
The distinction follows the documented Ragas faithfulness boundary: claims are checked against retrieved context. AWS policy validation instead checks represented content against formal rules. These are useful, different tests; neither turns an unrelated claim into a verified fact.
What should you test before serving the answer?
Include a response with a covered claim and an uncovered claim, not just a plainly incorrect cap. Also test the application’s handling of an unresolved finding and input outside the documented format. AWS warns that encoded or obfuscated content may leave the whole submission unevaluated, even its surrounding plaintext. Do not silently count an unevaluated response as a pass.
Use the five-case coverage worksheet. It supplies expected review decisions and empty observation fields. Record the exact response submitted for checking and the response actually served; a rewrite requires its own review. Report claim support, policy-check coverage and action completion separately using the measurement guide.
What is the practical difference?
For this comparison, deterministic execution means applying specified logic so the same accepted inputs and relevant context produce the same specified result. This is our working definition; name the boundary and conditions whenever using it.
The table is our evaluation framework, based on the retrieval and workflow distinctions above. Its checks are recommendations, not measured product results.
| Question | Retrieval-augmented generation | Deterministic execution |
|---|---|---|
| What does this layer do? | Retrieves information for a generated answer. | Applies specified logic to accepted inputs and state. |
| What should a reviewer inspect? | Retrieved passages, source versions and claim support. | Accepted inputs, rule version, decisions and action arguments. |
| What needs a separate check? | Whether the sources are authoritative and the answer fits the request. | Whether the inputs and rules are correct and the destination action succeeded. |
| What should a test expose? | Missing evidence, irrelevant passages or unsupported claims. | Changed decisions under fixed conditions, incorrect rules or unresolved actions. |
What should a retrieval handoff record contain?
Retain the source version, retrieved passage, permission context and the accepted value used by the next step. This is our proposed evidence record, not a guarantee supplied by retrieval itself.
AWS now distinguishes managed and customer-managed Knowledge Bases. Its documentation says document-level permission filtering is available for managed connectors except Web Crawler, and describes retrieval and agentic traces through its observability integration. These are documented capability boundaries: inspect the actual connector and configuration before treating a search result as permission-filtered. AWS documentation, checked October 28.
Worked expense handoff: keep the 100-unit policy cap and its effective date together. If a later run retrieves a different version or cannot access the passage, mark the accepted input unresolved and test the declared review path. Retaining only the generated answer makes it harder to distinguish a retrieval change from an execution-rule change. LangChain’s distinction between predetermined workflows and dynamic agents does not remove that need. Workflow definitions.
For a proposed permission test, use one allowed document and one document the test identity must not receive. Record the actual retrieved IDs and passages in both cases; do not mark the test passed merely because the final answer omits the restricted text. This procedure has not been executed here.
Does a fixed RAG pipeline guarantee the same answer?
LangChain’s prompt-chaining example passes work through successive model calls in a predefined workflow. Our inference is straightforward: knowing the sequence of calls does not establish that each call returns the same result on a fresh run. Test the generated output separately from the sequence. Workflow definitions and prompt chaining.
For an actual reproducibility claim, record the retrieved passages as well as the query. Our companion guide explains deterministic versus probabilistic AI and the conditions to hold fixed.
What would this look like in an expense workflow?
Hypothetical design, not a product test: an employee submits a receipt for 120 units. The applicable approved policy reimburses eligible expenses up to 100 units. Under those invented conditions, the expected amount is 100.
- Retrieve the applicable policy. Retain its identifier, effective date and relevant passage. If the applicable version is missing, request clarification.
- Propose and check the inputs. Extract the amount and category from the receipt, then establish that they match the record and satisfy the eligibility rule. Route an ambiguous category for authorized review.
- Execute the approved rule. For this example, the rule is the smaller of the eligible amount and the cap. Retain the accepted values and rule version alongside the result.
- Confirm the action. If the workflow submits a reimbursement, retain the destination response and resulting status. Keep a submission with unknown status unresolved.
RAG addresses the policy-information step. Explicit rules address the calculation and permitted transitions. Our design recommendation is to require evidence at their handoff: the generated statement that an expense is eligible should not, by itself, authorize payment.
The prevention guide expands this sequence into evidence checks, human review and action confirmation.
What does a faithfulness score actually establish?
Ragas defines faithfulness as the fraction of response claims supported by retrieved context. The denominator is the response’s claims, not the retrieved documents or completed business tasks. Ragas metric definition.
That definition leaves a separate question: was the context the right authority? In a hypothetical test, an answer could accurately repeat a superseded expense cap. It would agree with that document while failing the requirement to apply the current policy. This example follows from the metric’s reference boundary; it is not a measured failure of Ragas or a named RAG product.
Use the citation-verification guide for source identity and claim support, and the measurement guide for denominators and unresolved evidence.
What should an acceptance test report?
We recommend three separate results:
- Evidence and answers: applicable-source retrieval, supported/contradicted/unresolved claims, and abstentions, with explicit denominators.
- Execution: repeated fresh-run decisions under declared fixed conditions, plus correctness against approved reference cases.
- Actions and exceptions: confirmed, failed and unresolved outcomes; records showing when the process paused and who authorized its resolution.
Include missing policies, conflicting versions and ambiguous inputs alongside ordinary cases. Describe which layer each failure belongs to so the next change addresses the observed problem.
For a broader assurance claim, start with what “hallucination-free” should cover. This comparison supplies a review structure; the cited documentation is not an independent benchmark of a combined system.
What should you preserve at the retrieval-to-rule handoff?
For the hypothetical 120-unit receipt and 100-unit cap above, preserve a reviewable chain: the original receipt, the applicable policy passage and version, the accepted amount and eligibility decision, the rule version, the proposed payment arguments and the destination result. This is our proposed evidence record; no payment or model was tested here.
| Controlled example | Expected handling | Evidence to retain |
|---|---|---|
| Current policy and clearly eligible receipt | Calculate 100 under the stated rule | Receipt, policy version, accepted values and calculation |
| Retrieved policy is superseded | Hold until the applicable version is established | Both versions and the unresolved applicability question |
| Receipt category is ambiguous | Request authorized clarification | Original input, uncertainty and recorded resolution |
| Submission receives no acknowledgement | Keep the outcome unresolved pending destination reconciliation | Exact request, all attempts and authoritative destination state |
Keep a failed source check separate from a negative finding: being unable to open the policy does not prove that the policy contains no exception. Likewise, an unknown payment status does not prove that nothing happened. Use the Checklist worksheet chooser to find the matching boundary, approval and retry procedures. Preserve expected and observed outcomes separately.
Frequently asked questions
Does adding RAG make a workflow deterministic?
Retrieval supplies context for generation. To assess determinism, separately specify which outputs must repeat and which inputs, source versions and execution conditions stay fixed. A predefined sequence alone does not establish repeated model outputs.
Is a faithful answer necessarily correct?
Ragas faithfulness checks support in retrieved context. That measure alone does not establish whether the context is authoritative, current or applicable to the request.
Can RAG and deterministic execution work together?
Yes. A proposed design retrieves evidence, checks candidate inputs, applies approved rules and records the action outcome. Missing evidence or an unresolved interpretation should follow an explicit clarification or human-review path.
What should happen if the retrieved policy cannot be verified?
Keep applicability unresolved and use the declared clarification or human-review path. In our proposed design, an inaccessible source is not evidence that a policy exception is absent.
Can a successful policy check leave another claim unverified?
Yes. AWS documents that VALID covers only content represented through policy variables. Identify uncovered claims and verify them separately; application handling and action completion also need their own evidence.
The source record
Read the original evidence and the scope of our review.
- Retrieve data and generate AI responses with Amazon Bedrock Knowledge BasesAmazon Web Services · Not stated · Accessed 2026-11-12Substantive primary documentation reread with fetch_page November 12, 2026. Described capability/scope, not an independently executed vendor or model test.
- Workflows and agentsLangChain · Not stated · Accessed 2026-11-12Substantive primary documentation reread with fetch_page November 12, 2026. Described capability/scope, not an independently executed vendor or model test.
- FaithfulnessRagas · Not stated · Accessed 2026-11-12Substantive primary documentation reread with fetch_page November 12, 2026. Described capability/scope, not an independently executed vendor or model test.
- What are Automated Reasoning checks in Amazon Bedrock Guardrails?Amazon Web Services · Not stated · Accessed 2026-11-12Substantive indexed extract read with read_page, then full documentation with fetch_page. Coverage, translation and detect-mode limits verified in text; no service evaluation run.