SHEN YIFull-Stack & AI

Paris • Singapore • Shanghai

RAG Formation · Reference

Failure isolation and graceful degradation

A standalone cheat sheet for learning and testing RAG quality on this site.

$ reference --status
▸ course RAG Formation
▸ mode standalone reference
▸ status Complete
● learn → test → verify

Reference sheet

Failure isolation and graceful degradation

The guided RAG Formation course content is complete; this reference is available for self-directed practice.

One-line rule

If required evidence is gone, returning a normal-looking answer is an unsafe fallback.

Core terms

TermMeaning
Failure isolationKeeping one dependency’s failure from breaking the whole request or hiding what went wrong.
Graceful degradationReturning a clearly limited result when it is safe—for example, vector-only search without pretending it has hybrid coverage.
Fail closedRefusing to answer when a missing dependency means the evidence or authorization cannot be trusted.

Evidence card

NeedRecordDon't claim
BaselineCommand, configuration, observed resultThe baseline is a target.
ChangeOne hypothesis or decisionYou can tell what caused the result when several things changed.
MetricFor each dependency, record the symptom, safe fallback, blocked behavior, user message, and metric.One metric tells you everything about quality.
SafetyA failure and a regression caseA fluent answer proves the system is reliable.

Local command

cd demo
python3 setup_demo.py status

Artifact: A dependency failure matrix that separates safe partial service from fail-closed behavior.

Continue learning: Open the matching standalone lesson · Course roadmap