Skip to content
Lohith KovuriResume

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

From the resume. There's no public repository yet.
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.

Stack

PythonXGBoostSHAPLLM APIsA/B testing

Evidence

Limitations, stated plainly

  • No public repository yet, so these numbers can't be independently checked from this site.

More case studies