Skip to content

Context Precision ExampleΒ #1036

@MatthewSH

Description

@MatthewSH

[x] I checked the documentation and related resources and couldn't find an answer to my question.

Your Question
I was reviewing the context precision example on the website and noticed that answer is being provided as an input even though it's not being used actively as far as we can tell in the context precision metric. We even see a couple spots where the answer key is being overwritten with the ground_truth key.

My question is, for the examples are they supposed to be minimal and required arguments or just a data dump of everything that can be provided?

I know that using answer is going to be deprecated soon and according to https://github.com/explodinggradients/ragas/blob/main/src/ragas/metrics/_context_precision.py#L117 it will fall back, I was just curious if it having both on the example is intended or not.

EDIT: Also if the answer version is being deprecated soon, is the plan to switch all references from answer to ground_truth?

Metadata

Metadata

Assignees

No one assigned

    Labels

    answeredπŸ€– The question has been answered. Will be closed automatically if no new commentsquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions