Spaces:
Sleeping
Sleeping
File size: 989 Bytes
33340fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | # Monitoring: `EvaluationSuite`
**Code**: `adsp/monitoring/evaluation.py`
## Purpose
`EvaluationSuite` runs a list of checks against persona responses (rule-based, unit tests, or “LLM-as-judge” functions).
## Responsibilities
- Execute a configured set of `checks` on a response string
- Aggregate results into a dict keyed by check name
## Public API
### `run(response: str) -> dict`
**Input**
- `response`: model output text
**Output**
- `dict` mapping `check.__name__` → `check(response)` result
## Data model
- `checks: Iterable` of callables
## Key dependencies / technologies
- Python `dataclasses`
- Callable checks (can be pure Python, LLM calls, etc.)
## Recommended checks for this project
Aligned to `docs/md/design.md` requirements:
- Non-hallucination / “no evidence” fallback behavior
- Persona voice consistency (style_profile adherence)
- Citation/traceability presence (when using RAG)
- Toxicity/safety constraints
- Latency/token budget checks
|