Spaces:
Sleeping
Sleeping
Download src/domain/model/evaluation_models.py from Loren/rag-backend-api: direct link, hf CLI and curl.
- Browser
- Download file 220 Bytes
-
https://huggingface.co/spaces/Loren/rag-backend-api/resolve/main/src/domain/model/evaluation_models.py
- Command line
-
hf download hf://spaces/Loren/rag-backend-api/src/domain/model/evaluation_models.py
-
curl -L -o evaluation_models.py https://huggingface.co/spaces/Loren/rag-backend-api/resolve/main/src/domain/model/evaluation_models.py
220 Bytes
| from dataclasses import dataclass | |
| class AnswerEvaluation: | |
| question: str | |
| answer: str | |
| contexts: list[str] | |
| class EvaluationResult: | |
| scores: dict[str, float] |