Skip to content

Calibrate RAG eval gate and router lifecycle (Batch 73) - #78

Merged
MHHamdan merged 1 commit into
mainfrom
feat/rag-calibration-lifecycle
Jun 1, 2026
Merged

MHHamdan merged 1 commit into
mainfrom
feat/rag-calibration-lifecycle

Conversation

@MHHamdan

@MHHamdan MHHamdan commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Batch 73 adds the operational layer for the adaptive RAG router: judge calibration, baseline-derived thresholds, nightly faithfulness monitoring, and router training-data lifecycle.

Files added:

  • labs/38-calibrating-the-eval-gate/README.md
  • labs/38-calibrating-the-eval-gate/judge_validation.jsonl
  • labs/38-calibrating-the-eval-gate/gate_thresholds.json
  • labs/38-calibrating-the-eval-gate/derive_thresholds.py
  • labs/38-calibrating-the-eval-gate/nightly_faithfulness.py
  • labs/38-calibrating-the-eval-gate/lab.ipynb
  • labs/38-calibrating-the-eval-gate/solution/README.md
  • labs/38-calibrating-the-eval-gate/solution/lab.ipynb
  • labs/39-router-data-lifecycle/README.md
  • labs/39-router-data-lifecycle/captured_queries.jsonl
  • labs/39-router-data-lifecycle/lab.ipynb
  • labs/39-router-data-lifecycle/solution/README.md
  • labs/39-router-data-lifecycle/solution/lab.ipynb
  • .github/workflows/rag-faithfulness-nightly.yml

Files updated:

  • labs/37-rag-eval-gates/eval_gate.py
  • learning-paths/02-agentic-rag/README.md
  • labs/README.md
  • CHANGELOG.md

Pre-flight:

  • ruff clean
  • notebook JSON valid
  • notebook outputs clean
  • eval_gate.py --self-test passes
  • derive_thresholds.py --self-test passes
  • nightly_faithfulness.py --self-test passes
  • no new broken links introduced

Batch 73.

Batch 73 adds the operational layer for the adaptive RAG router: judge
calibration, baseline-derived thresholds, nightly faithfulness monitoring, and
a router data lifecycle for capture, deduplication, triage, retraining, and
measurement.

New labs:
- labs/38-calibrating-the-eval-gate
- labs/39-router-data-lifecycle

Updated gate:
- labs/37-rag-eval-gates/eval_gate.py now supports --thresholds

New workflow:
- .github/workflows/rag-faithfulness-nightly.yml

Lab 38 covers judge-vs-human agreement, Cohen's kappa, threshold derivation,
gate_thresholds.json, and a scheduled non-blocking faithfulness monitor.

Lab 39 covers captured query handling, deduplication, confidence triage,
second-round training data, and measuring whether retraining improves router
behavior on messy queries.

Updated indexes:
- learning-paths/02-agentic-rag/README.md
- labs/README.md
- CHANGELOG.md

Pre-flight all green: ruff clean, notebook JSON valid, notebook outputs clean,
eval gate self-test passes, threshold derivation self-test passes, nightly
monitor self-test passes, and no new broken links introduced.

Batch 73.
Comment thread .github/workflows/rag-faithfulness-nightly.yml Dismissed
@MHHamdan
MHHamdan merged commit e8fc3c5 into main Jun 1, 2026
10 checks passed
@MHHamdan
MHHamdan deleted the feat/rag-calibration-lifecycle branch June 1, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants