Check safety and factual support separately
Distinguish a permitted response from one supported by current evidence.
Check safety and factual support separately
Work through the decision
A service returns a polite answer with a citation. The cited warranty excludes the repair the answer promises. A content filter allowed the response. Which check is missing?
Check your reasoning
Check the factual claim against the retrieved clause. Content screening addresses prohibited categories; contextual grounding tests whether the evidence supports this answer. If evidence is insufficient, abstain or ask for clarification. Treat retrieved material as untrusted data and enforce permissions outside the model.
Compare the choices
- Screen incoming content
- Evaluate requests against policy before expensive inference and route blocked or uncertain cases to the configured handling path.
- Screen outgoing content
- Check generated responses before delivery and define a safe fallback when output violates policy.
- Verify contextual grounding
- Compare answer claims with authorized reference passages and check relevance to the question; abstain when support is missing.
- Isolate untrusted context and restrict tools
- Mark external content as data, enforce independent tool permissions and validate actions at the service. Layer these controls with screening.
Distinguish a citation from support
A retrieved clause says that standard repairs are covered for one year. A draft says accidental damage is covered for two years and cites that clause. Verify scope and duration separately. Show the qualified statement, request another source or abstain when the evidence is silent.
Apply it on AWS
Amazon Bedrock Guardrails can apply content filters and contextual grounding checks to appropriate workloads. Combine the guardrail decision with source access checks and independent business validation. If a streamed application requires pre-delivery filtering, buffer the content being checked before showing it.
Practice the guide skills
- Apply input checks before inference. Define how a blocked request is handled and record an appropriate policy event. Watch 3:59:20
- Apply output checks before streaming sensitive content to the client. Provide a clear fallback when the result is blocked. Watch 4:01:20
- Compare material claims against authorized passages and let the application abstain when evidence is insufficient. Watch 4:07:51
- Place identity controls, guardrails, schema validation and human approval at their respective boundaries. Test each independently. Watch 4:03:45
- Flag untrusted retrieved content for screening and limit its influence on tools. Review suspicious events with safe, labeled test fixtures. Watch 4:12:00
Official objectives for this lesson
Related lesson · Find uneven model performance before release
Check safety and factual support separately quiz
Answer 3 questions. Check each answer for an explanation.