Add evals for most AI workflows
Description
Create an evaluation framework to measure output quality and consistency across our AI-powered workflows.
Background
We currently have integration tests for functional correctness, but lack evaluations (evals) that measure the quality of AI outputs. As we iterate on prompts, switch models, or add providers, we need a systematic way to detect regressions and compare performance.
Workflows to evaluate
| Workflow |
Output to evaluate |
summarization |
Title, description, and tag relevance/accuracy |
moderation |
Sexual/violence score precision vs ground truth |
chapters |
Chapter boundary accuracy and title quality |
burned-in-captions |
Caption rendering correctness |
translate-captions |
Translation accuracy and fluency |
translate-audio |
TBD |
Acceptance Criteria
Suggested Approach
- Start with
summarization and moderation as pilot workflows
- Use a small curated dataset (~3-10 examples per workflow)
- Define simple metrics first (exact match, factuality, threshold accuracy)
- Expand to LLM-as-judge for subjective quality
Related
- Existing integration tests:
tests/integration/
- Function implementations:
src/functions/
Add evals for most AI workflows
Description
Create an evaluation framework to measure output quality and consistency across our AI-powered workflows.
Background
We currently have integration tests for functional correctness, but lack evaluations (evals) that measure the quality of AI outputs. As we iterate on prompts, switch models, or add providers, we need a systematic way to detect regressions and compare performance.
Workflows to evaluate
summarizationmoderationchaptersburned-in-captionstranslate-captionstranslate-audioAcceptance Criteria
Suggested Approach
summarizationandmoderationas pilot workflowsRelated
tests/integration/src/functions/