Skip to content

answer_correctness giving inconsistent resultΒ #1049

@chboudry

Description

@chboudry

Describe the bug
The answer correctness does not seems consistent.

Code to Reproduce
question = ["1","2","3","4","5"]
answers = ["yes", "no", "no", "yes", "no"]
contexts = [["1","2","3","4"],["1","2","3","4"],["1","2","3","4"],["1","2","3","4"],["1","2","3","4"]]
ground_truth = ["yes", "no","yes","no", "no"]

ds = Dataset.from_dict({
"question" : question,
"answer" : answers,
"contexts" : contexts,
"ground_truth" : ground_truth
})

result_ragas = evaluate(ds,metrics=metrics,raise_exceptions=False)
result_ragas

results = result_ragas.to_pandas()
results.head()

result
image

How come row 1 and row 4 does not share the same answer correctness ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    answeredπŸ€– The question has been answered. Will be closed automatically if no new commentsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions