Repository navigation
feat(eval): add Ragas-style context precision and recall metrics - #341
Merged
Kaap10 merged 1 commit intoOct 13, 2026
Merged
Conversation
Kaap10
approved these changes
Oct 13, 2026
Kaap10
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. The context precision and recall metrics adhere to standard Ragas formulations, integrate cleanly with ChatModelJudge, and maintain backwards compatibility for existing batch evaluation workflows. Verified locally with all tests and linters passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Ragas-style context precision and context recall metrics to the RAG evaluation framework, with model-layer judge support and batch evaluation for labeled examples.
Related issue
Fixes #303
Changes
ChatModelJudgeto support evaluation through Dynavec's existingChatModelabstraction.evaluate_rag()andEvalRunnerto support all four RAG evaluation metrics and batch evaluation with optional reference answers, with fake-judge test coverage.Testing
Validation:
36 passedintests/test_eval.py; fullmake run-cipassed; mypy passed on81 source files;1 snapshot passed;git diff --checkpassed.Checklist