What problem does it solve?
Provides a complete reference and operational playbook for running reliable MLflow GenAI evaluations, building eval datasets from traces, aligning LLM judges with domain experts, and enabling production monitoring so teams can measure and improve agent quality without guesswork.
Core Features & Use Cases
- End-to-end evaluation workflows: Step-by-step patterns for initial setup, running evaluations, comparing runs, and detecting regressions.
- Scorers & judges: Guidance on built-in scorers (Guidelines, Correctness, Safety, RetrievalGroundedness), custom scorer patterns, and make_judge + judge alignment with MemAlign.
- Trace-to-dataset and UC ingestion: Instructions for converting production traces into evaluation datasets, linking Unity Catalog schemas, and configuring production monitoring.
- Prompt optimization: Patterns for building optimization datasets (inputs + expectations) and running optimize_prompts() with GEPA driven by aligned judges.
- Critical gotchas & APIs: CRITICAL-interfaces and GOTCHAS guidance to avoid common failures (data schema, predict_fn signature, trace setup, label schema naming).
Quick Start
Run an evaluation with mlflow.genai.evaluate() using a nested eval dataset, a predict function that accepts unpacked kwargs, and the desired scorers to generate traces and metrics.