Closed Mtuthuko closed 1 day ago
@Mtuthuko did you resolve this error? I am also facing the exact problem
hey @Mtuthuko were you able to fix this?
it seems like a small bug in the code
from ragas.metrics import (
answer_relevancy,
faithfulness,
# ContextRelevancy, # old
content_relavancy
)
metrics = [
faithfulness,
answer_relevancy,
context_relevancy
]
this should fix it. let me know if its still an issue
@Sudhakar17 could you share your code snippet and error msg? I'll check it
Closing after 8 days of waiting for the additional info requested.
[ ] I have checked the documentation and related resources and couldn't resolve my bug.
Describe the bug I got this error
TypeError: MetricWithLLM.init() missing 1 required positional argument: 'run_config'
when I was trying to calculate the ragas scoresRagas version: 0.1.9 Python version: 3.11
Code to Reproduce
Error trace
Expected behavior For the code to calculate the ragas scores.