mirror of
https://github.com/langgenius/dify.git
synced 2026-05-08 20:08:36 +08:00
Co-authored-by: jyong <718720800@qq.com> Co-authored-by: Yansong Zhang <916125788@qq.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: hj24 <mambahj24@gmail.com> Co-authored-by: hj24 <huangjian@dify.ai> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Co-authored-by: CodingOnStar <hanxujiang@dify.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
28 lines
462 B
Python
28 lines
462 B
Python
from enum import StrEnum
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class EvaluationFrameworkEnum(StrEnum):
|
|
RAGAS = "ragas"
|
|
DEEPEVAL = "deepeval"
|
|
NONE = "none"
|
|
|
|
|
|
class BaseEvaluationConfig(BaseModel):
|
|
"""Base configuration for evaluation frameworks."""
|
|
|
|
pass
|
|
|
|
|
|
class RagasConfig(BaseEvaluationConfig):
|
|
"""RAGAS-specific configuration."""
|
|
|
|
pass
|
|
|
|
|
|
class DeepEvalConfig(BaseEvaluationConfig):
|
|
"""DeepEval-specific configuration."""
|
|
|
|
pass
|