Skip to content

Issue with faithfulness #411

@Robs1999

Description

@Robs1999

I am occasionally encountering an error when evaluating with faithfulness. The error is at line 178, when computing the faithful statements:

176                 output = output if isinstance(output, list) else []
177                 faithful_statements = sum(

--> 178 verdict_score_map.get(dict.get("verdict", "").lower(), np.nan)
179 for dict in output
180 )

AttributeError: 'int' object has no attribute 'lower'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions