mirror of
https://github.com/langgenius/dify.git
synced 2026-03-10 19:01:54 -04:00
20 lines
361 B
Python
20 lines
361 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
|