Case study · personal project
RAG Sentinel
LLM evaluation framework: a validated LLM judge, prompt A/B tests, and a hallucination-risk classifier with drift monitoring
- Cohen's kappa vs. humans
- 0.82
- human-annotated responses
- 1,000
- relative faithfulness drop (multi-part)
- 12%
- ROC-AUC, hallucination risk
- 0.89
The problem
RAG systems are often judged by another LLM that nobody has checked against humans, and quality can quietly slip when prompts, embeddings, or traffic change.
The approach
An evaluation framework that first validates the LLM judge against human labels, then uses it to A/B test prompt and embedding setups, and adds an XGBoost hallucination-risk classifier with SHAP explanations plus a drift monitor.
Architecture
Select a component, or play the flow.
Step 1 of 5
RAG responses
Answers from a RAG system are the unit being evaluated.
Engineering decisions
Validate the judge first
An LLM judge is only useful if it agrees with people, so agreement was measured with kappa before any comparisons.
Report weak spots, not one average
Breaking results down by question type surfaced the multi-hop and multi-part weaknesses.
Make risk explainable
SHAP turns the classifier from a score into reasons someone can act on.
Watch for drift
PSI and KS checks catch when yesterday's evaluation stops describing today's traffic.
Limitations, stated plainly
- No public repository yet, so these numbers can't be independently checked from this site.
More case studies
PipelineMedic AI
Pipeline repair agent: deterministic detectors find the failure, an LLM proposes the fix, a human approves the risky ones
AWS Streaming Data Platform
Kafka to S3/Iceberg lakehouse with layered zones, Glue PySpark jobs, and a Kimball model in Athena and dbt
RetailBench Data Platform
PySpark on EMR over 100+ GB of TPC-H data into a dimensional Redshift warehouse, tuned 44% faster