Skip to content

Why faithfullness is NaN most of the times even when context and answer both makes sense.Β #580

@repl-mira-agarwal

Description

@repl-mira-agarwal

I am using Bedrock for my RAG and faithfullness is NaN most of the times even when context and answer both makes sense. The same problem is also there for the amnesty dataset shared in ragas docs.

Ragas version: 0.1.0

Code to Reproduce
from datasets import load_dataset
from ragas import evaluate

amnesty_qa = load_dataset("explodinggradients/amnesty_qa", "english_v2")
result = evaluate(amnesty_qa["eval"],metrics=[context_precision, faithfulness, answer_relevancy])
result.to_pandas()

Error trace
image

I see similar issue in my own dataset as well, but it's not clear why failthfulness is NaN. Could you please give some clarity what is the issue here.

Metadata

Metadata

Assignees

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