Source code for llmp.types

from enum import Enum
from typing import Tuple


GenOutput = Tuple[dict, dict]


[docs]class VerificationType(Enum): """Validation rank for ExampleRecords SINGLE_VOTE: Example output is created by a single generation execution. MAJORITY_VOTE: Example output is created by a majority vote of generation executions. MAJORITY_GRADE: Example output is created by a majority grade of generation executions. USAGE_VERIFIED: Example output is used/generated multiple times without claims. HUMAN_VERIFIED: Example output is verified by human interaction. """ SINGLE_VOTE = 1 MAJORITY_VOTE = 2 MAJORITY_GRADE = 3 USAGE_VERIFIED = 4 HUMAN_VERIFIED = 5
[docs]class EventType(str, Enum): GENERATION: str = "generation" SAMPLE_EVAL: str = "sample_evaluation" EVAL_RUN: str = "evaluation_run" ADD_EXAMPLES: str = "example_add" REMOVE_EXAMPLES: str = "example_remove" UPDATE_EXAMPLES: str = "example_update" UPDATE_JOB: str = "job_update" JOB_CREATION: str = "job_creation"
[docs]class MajorVoteType(str, Enum): CONSENSUS = "consensus" GRADE = "grade"
[docs]class TestSetMode(str, Enum): RANDOM: str = "random" ACCURACY: str = "accuracy"