Skip to content

Record the ragas metrics deprecation and why it is not a rename - #196

Merged
adamjohnwright merged 1 commit into
mainfrom
docs/evaluator-ragas-followup
Sep 9, 2026
Merged

adamjohnwright merged 1 commit into
mainfrom
docs/evaluator-ragas-followup

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Every ./bin/evaluate run warns:

Importing Faithfulness from ragas.metrics is deprecated and will be removed in v1.0. Please use ragas.metrics.collections instead.

Reading that as an import change is wrong, and I checked rather than assuming:

  • two of the four are renamed — ResponseRelevancy → AnswerRelevancy, LLMContextRecall → ContextRecall
  • the new classes take the judge as a constructor argument, not through evaluate():
TypeError: Faithfulness.__init__() missing 1 required positional argument: 'llm'

So it is a rework of how metrics are built, and it may move the scores — which for a measurement tool is the part needing care, not the import.

Recorded rather than done, because it is a small project and not a rename. Noted also that the cheapest moment to change scoring is before anyone is comparing against the numbers, which is now.

Every evaluator run warns that ragas.metrics is deprecated in favour of
ragas.metrics.collections. Reading that as an import change is wrong:
two of the four are renamed, and the new classes take the judge as a
constructor argument rather than through evaluate(), so a straight swap
raises TypeError. Moving is a rework that may also move the scores.

Written down because the warning invites a rename that does not work,
and because the cheapest moment to change scoring is before anyone is
comparing against the numbers -- which is now.
@adamjohnwright
adamjohnwright merged commit 4452bd0 into main Sep 9, 2026
10 checks passed
@adamjohnwright
adamjohnwright deleted the docs/evaluator-ragas-followup branch September 9, 2026 19:38
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.

1 participant