feat: add local RAG evaluation harness (RAGAS vs DeepEval) #10
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-ml/editorial-guide-ramalama!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "gtfrans2re/editorial-guide-ramalama:feat/rag-eval-harness"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds a self-contained evaluation harness under
eval/that runs the RAG pipeline over a guideline-grounded eval set and scores the outputs with both RAGAS and DeepEval using a local judge model (no external API). Supports the #154 task of choosing a RAG evaluation tool.What's included
eval_set.json- QA pairs grounded in the Fedora writing guidelinesrun_pipeline.py- runs the RAG pipeline, saves (question, answer, contexts, ground_truth)score_ragas.py/score_deepeval.py- score with each tool via a local judgecompare.py- side-by-side comparisonREADME.md- full setup and reproduction stepsResult (3 samples, Granite judge)
Both tools agree closely. DeepEval ran cleanly on the current stack (Python 3.14); RAGAS needed a separate 3.12 venv, dependency pinning, and a local embeddings model. Full decision writeup in #154.
Notes
.deepeval/cache is gitignored.Assisted-by: Claude Opus 4.8
996c94f08dto07f5414890I would really like to imagine what this would look like if we were able to leverage CI to run some test cases and get checks whenever new changes are merged.
In the meantime, this looks and provides some more base scaffolding for these kinds of harnesses. I know there are some similar PRs opened on
ai-ml/packaging-guide-ramalama, so we should discuss more in-depth there, since this mini-project is going on the backburner for a while.I am curious to know more about the challenges with the setup with the four files too.
Merging! 🌊