text stringlengths 0 59.1k |
|---|
}); |
``` |
**Runtime Behavior:** |
1. Loads and validates experiment module |
2. Resolves dataset (override or defined) |
3. Creates VoltOps run (unless dry-run) |
4. Processes items with concurrency limit |
5. Applies scorers and aggregates results |
6. Streams progress to stdout |
7. Reports final summary and pass/fail |
**Output Format:** |
``` |
Running experiment: my-test |
Dataset: test-data (100 items) |
Concurrency: 4 |
Progress: [=====> ] 50/100 (50%) |
Item 42 β (score: 0.95) |
Item 43 β (score: 0.45) |
Summary: |
- Success: 95/100 (95%) |
- Mean Score: 0.92 |
- Pass Criteria: β PASSED |
VoltOps Run: https://console.voltagent.dev/evals/runs/run_abc123 |
``` |
**Examples:** |
```bash |
# Basic run |
npm run volt eval run -- --experiment ./experiments/qa-test.ts |
# Override dataset |
npm run volt eval run -- \ |
--experiment ./experiments/qa-test.ts \ |
--dataset production-qa-v2 |
# High concurrency |
npm run volt eval run -- \ |
--experiment ./experiments/batch-test.ts \ |
--concurrency 20 |
# Local testing |
npm run volt eval run -- \ |
--experiment ./experiments/dev-test.ts \ |
--dry-run |
# CI/CD usage |
npm run volt eval run -- \ |
--experiment ./experiments/regression.ts \ |
--tag github-actions \ |
--experiment-name "PR #123 Regression" |
# Full options |
npm run volt eval run -- \ |
--experiment ./src/experiments/comprehensive.ts \ |
--dataset large-dataset \ |
--experiment-name "Nightly Regression" \ |
--tag scheduled \ |
--concurrency 10 |
``` |
**Error Handling:** |
- Missing experiment file β Error with path |
- Invalid experiment format β Shows validation errors |
- Dataset not found β Lists available datasets |
- VoltOps connection failed β Falls back to local mode (with warning) |
- Scorer errors β Logged but doesn't stop run |
- Ctrl+C β Graceful shutdown with partial results |
**Exit Codes:** |
| Code | Description | |
| ---- | ------------------------------- | |
| 0 | Success - all pass criteria met | |
| 1 | Failure - pass criteria not met | |
| 2 | Error - execution error | |
| 130 | Interrupted - user cancelled | |
## Global Options |
All commands support these global options: |
| Option | Description | |
| ------------ | ------------------------ | |
| `--help` | Show help for command | |
| `--version` | Show CLI version | |
| `--verbose` | Enable debug logging | |
| `--quiet` | Suppress progress output | |
| `--no-color` | Disable colored output | |
## Configuration |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.