text stringlengths 0 59.1k |
|---|
``` |
### Inline Datasets |
Datasets can also be defined inline within experiment files: |
```typescript |
const inlineDataset = { |
items: [ |
{ input: "Hello", expected: "Hi there" }, |
{ input: "Goodbye", expected: "See you later" }, |
{ input: "How are you?", expected: "I'm doing well, thanks!" }, |
], |
}; |
``` |
## CLI Commands |
### Push Dataset to VoltOps |
Upload a local dataset file to VoltOps: |
```bash |
voltagent eval dataset push --name math-problems |
``` |
**Options:** |
| Flag | Description | Default | |
| --------------- | ----------------------- | --------------------------------- | |
| `--name <name>` | Dataset name (required) | - | |
| `--file <path>` | Path to JSON file | `.voltagent/datasets/<name>.json` | |
**Environment Variables:** |
- `VOLTAGENT_DATASET_NAME` - Default dataset name |
- `VOLTAGENT_API_URL` - VoltOps API endpoint |
- `VOLTAGENT_PUBLIC_KEY` - Authentication key |
- `VOLTAGENT_SECRET_KEY` - Authentication secret |
**Example:** |
```bash |
# Push custom file path |
voltagent eval dataset push --name production-qa --file ./data/qa-pairs.json |
# Use environment variable for name |
export VOLTAGENT_DATASET_NAME=production-qa |
voltagent eval dataset push |
``` |
### Pull Dataset from VoltOps |
Download a dataset version from VoltOps: |
```bash |
voltagent eval dataset pull --name math-problems |
``` |
**Options:** |
| Flag | Description | Default | |
| ----------------- | --------------------------- | --------------------------------- | |
| `--name <name>` | Dataset name | Interactive prompt | |
| `--id <id>` | Dataset ID (overrides name) | - | |
| `--version <id>` | Version ID | Latest version | |
| `--output <path>` | Output file path | `.voltagent/datasets/<name>.json` | |
| `--overwrite` | Replace existing file | false | |
| `--page-size <n>` | Items per API request | 200 | |
**Interactive Mode:** |
When no dataset is specified, the CLI presents an interactive menu: |
```bash |
voltagent eval dataset pull |
? Select a dataset to pull |
❯ customer-support (5 versions) |
math-problems (3 versions) |
product-catalog (1 version) |
? Select a version to pull for customer-support |
❯ v3 • 150 items — Production dataset |
v2 • 100 items |
v1 • 50 items — Initial version |
``` |
**File Conflict Resolution:** |
When the target file exists: |
```bash |
? Local file already exists. Choose how to proceed: |
❯ Overwrite existing file |
Save as new file (math-problems-remote.json) |
Cancel |
``` |
## VoltOps Console |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.