preview for inspecting configurations and eval for running evaluations.
Installation
Global Usage
Commands
preview
Inspect and validate rubric configurations or dataset files.Usage
Options
Examples
Preview a rubric configuration:Output
The command will:- Validate the file structure
- Display parsed contents in a readable format
- Show count summary (number of rubrics or records)
- Report any validation errors
eval
Evaluate a dataset against a rubric configuration.Usage
Required Options
Optional Parameters
Examples
Basic evaluation:Configuration Files
Rubric Configuration (YAML)
The rubric configuration file defines evaluation criteria and model settings.Structure
Required Fields
version: Configuration schema version (currently1)rubrics: List of rubric definitions
Rubric Definition Fields
Model Info Fields
Auto-Discovery
If you don’t specify--config, the CLI searches for rubric_configs.yaml in:
- Same directory as the data file
- Current working directory
./examples/subdirectory
Dataset Format (JSONL)
Each line in the JSONL file represents one evaluation record.Minimal Example
Complete Example
Field Reference
Output Format
Console Output
During evaluation, you’ll see:JSON Output File
The output JSON file contains detailed results:Supported Providers
Provider Configuration Example
Advanced Usage
Baseline Comparison
Compare new evaluations against a baseline to detect regressions:Variance Analysis
Run multiple evaluations per record to measure score consistency:- Understanding rubric stability
- Detecting ambiguous criteria
- A/B testing different prompts
Batch Processing
Process multiple datasets:Custom Cache Location
Override the default cache directory:Error Handling
Common Errors
API Key Not Found
Rubric Not Found
rubric_configs.yaml and ensure the rubric ID matches exactly.
Invalid JSONL Format
Model Not Found
Timeout Error
Best Practices
Writing Effective Rubrics:- Be specific and measurable
- Include clear criteria and examples
- Test with sample data before large-scale evaluation
- Include diverse examples with relevant metadata
- Validate JSONL syntax before evaluation
- Keep solution_str concise but complete
- Process datasets in batches for cost efficiency
- Start with small samples to test rubrics
- Monitor API usage through provider dashboards
Troubleshooting
Debug Mode:Next Steps
Quick Start
New to the CLI? Start with the quick start guide
Decorators & API
Learn about programmatic usage with Python decorators