Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Redundancy in schema #8

Description

@borgr

Why do we have evaluation method twice in evalTypes? https://github.com/evaleval/evalHub/blob/main/schema/eval_types.py
One of them should be deleted (which?)

class EvaluationMethod(BaseModel):
method_name: str = Field(
...,
description='Name of the evaluation method. Can be a predefined method or a user-defined method.',
)
description: str = Field(
...,
description='Detailed explanation of how the evaluation method works. For user-defined methods, this is required.',
)
parameters: Optional[Dict[str, Any]] = Field(
None,
description='Optional parameters used by the evaluation method. Allows custom configuration.',
)

class Evaluation(BaseModel):
evaluation_method: EvaluationMethod = Field(
...,
description='Method used to evaluate the answer, including predefined methods and user-defined methods.',
)
ground_truth: str = Field(..., description='The correct answer for evaluation')
score: confloat(ge=0.0, le=1.0) = Field(
...,
description="Binary score indicating whether the model's answer was correct (1.0) or incorrect (0.0)",
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions