arize-ax-cli 0.29.0__tar.gz → 0.31.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/PKG-INFO +108 -17
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/README.md +105 -14
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/pyproject.toml +2 -2
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/ai_integrations.py +5 -5
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/annotation_configs.py +187 -178
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/api_keys.py +19 -17
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/evaluators.py +30 -26
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/experiments.py +86 -24
- arize_ax_cli-0.31.1/src/ax/commands/integrations.py +1013 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/profiles.py +6 -2
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/prompts.py +18 -14
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/tasks.py +4 -4
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/config/input_readers.py +14 -2
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/config/schema.py +11 -1
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/version.py +1 -1
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/.gitignore +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/LICENSE +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/__init__.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/__main__.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/ascii_art.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/auth/__init__.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/auth/bearer.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/auth/oauth_client.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/auth/oauth_flow.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/cli.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/__init__.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/annotation_queues.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/auth.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/datasets.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/organizations.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/projects.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/resource_restrictions.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/role_bindings.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/roles.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/skills.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/spaces.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/spans.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/traces.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/upgrade.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/commands/users.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/config/__init__.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/config/manager.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/config/setup.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/core/__init__.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/core/client_factory.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/core/decorators.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/core/error_formatter.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/core/exceptions.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/core/headers.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/core/output.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/core/pydantic.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/__init__.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/annotations.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/console.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/datetime_parse.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/dotenv.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/export.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/file_io.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/http.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/json_source.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/text_source.py +0 -0
- {arize_ax_cli-0.29.0 → arize_ax_cli-0.31.1}/src/ax/utils/upgrade_check.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: arize-ax-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.31.1
|
|
4
4
|
Summary: Official Arize CLI tool for managing datasets, experiments, and more
|
|
5
5
|
Project-URL: Homepage, https://arize.com
|
|
6
6
|
Project-URL: Documentation, https://arize.com/docs/api-clients/cli/
|
|
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
21
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
22
|
Requires-Python: >=3.11
|
|
23
|
-
Requires-Dist: arize==8.
|
|
23
|
+
Requires-Dist: arize==8.48.0
|
|
24
24
|
Requires-Dist: filelock<4,>=3.12.0
|
|
25
25
|
Requires-Dist: packaging>=21.0
|
|
26
26
|
Requires-Dist: pydantic<3,>=2.0.0
|
|
@@ -99,6 +99,8 @@ Description-Content-Type: text/markdown
|
|
|
99
99
|
- [Code evaluators](#code-evaluators)
|
|
100
100
|
- [Experiments](#experiments)
|
|
101
101
|
- [`ax experiments run` — execute a task locally](#ax-experiments-run--execute-a-task-locally)
|
|
102
|
+
- [`ax experiments create` — publish pre-computed runs](#ax-experiments-create--publish-pre-computed-runs)
|
|
103
|
+
- [Integrations](#integrations)
|
|
102
104
|
- [Organizations](#organizations)
|
|
103
105
|
- [Projects](#projects)
|
|
104
106
|
- [Prompts](#prompts)
|
|
@@ -318,9 +320,11 @@ API Key: Insert value
|
|
|
318
320
|
API Key (e.g., ak-123...): [hidden input]
|
|
319
321
|
|
|
320
322
|
Region:
|
|
321
|
-
> (
|
|
322
|
-
US
|
|
323
|
-
|
|
323
|
+
> (default - no region needed for US)
|
|
324
|
+
us-east-1b (US East, alias: US)
|
|
325
|
+
us-central-1a (US Central)
|
|
326
|
+
eu-west-1a (EU West, alias: EU)
|
|
327
|
+
ca-central-1a (Canada, alias: CA)
|
|
324
328
|
Use environment variable
|
|
325
329
|
|
|
326
330
|
Default output format:
|
|
@@ -659,6 +663,10 @@ Available for all commands:
|
|
|
659
663
|
|
|
660
664
|
### AI Integrations
|
|
661
665
|
|
|
666
|
+
> **Note:** `ax ai-integrations` targets the deprecating `/v2/ai-integrations`
|
|
667
|
+
> endpoint. Prefer [`ax integrations`](#integrations), which manages both LLM
|
|
668
|
+
> and agent integrations on the go-forward `/v2/integrations` endpoint.
|
|
669
|
+
|
|
662
670
|
Configure external LLM providers for use within the Arize platform (for evaluations, online evals, and more):
|
|
663
671
|
|
|
664
672
|
```bash
|
|
@@ -713,14 +721,14 @@ ax annotation-configs list [--name <substring>] [--space <space>] [--limit 15] [
|
|
|
713
721
|
ax annotation-configs get <annotation-config>
|
|
714
722
|
|
|
715
723
|
# Create a freeform annotation config (free-text feedback)
|
|
716
|
-
ax annotation-configs create --name "Quality" --space <space>
|
|
724
|
+
ax annotation-configs create freeform --name "Quality" --space <space>
|
|
717
725
|
|
|
718
726
|
# Create a continuous annotation config (numeric score range)
|
|
719
|
-
ax annotation-configs create --name "Score" --space <space>
|
|
727
|
+
ax annotation-configs create continuous --name "Score" --space <space> \
|
|
720
728
|
--min-score 0 --max-score 1 --optimization-direction MAXIMIZE
|
|
721
729
|
|
|
722
730
|
# Create a categorical annotation config (discrete labels)
|
|
723
|
-
ax annotation-configs create --name "Verdict" --space <space>
|
|
731
|
+
ax annotation-configs create categorical --name "Verdict" --space <space> \
|
|
724
732
|
--value good --value neutral --value bad --optimization-direction MAXIMIZE
|
|
725
733
|
|
|
726
734
|
# Update an annotation config (pick the subcommand for its type; only the fields you pass change)
|
|
@@ -734,11 +742,11 @@ ax annotation-configs delete <annotation-config> [--force]
|
|
|
734
742
|
|
|
735
743
|
**Supported annotation config types:**
|
|
736
744
|
|
|
737
|
-
| Type |
|
|
745
|
+
| Type | Create options | Optional options |
|
|
738
746
|
| ------------- | ----------------------------------------------------------------------- | -------------------------- |
|
|
739
|
-
| `
|
|
740
|
-
| `
|
|
741
|
-
| `
|
|
747
|
+
| `freeform` | `--name`, `--space` | — |
|
|
748
|
+
| `continuous` | `--name`, `--space`, `--min-score`, `--max-score` | `--optimization-direction` |
|
|
749
|
+
| `categorical` | `--name`, `--space`, `--value` (repeat, e.g. `--value good --value bad`) | `--optimization-direction` |
|
|
742
750
|
|
|
743
751
|
### Annotation Queues
|
|
744
752
|
|
|
@@ -1097,15 +1105,18 @@ ax evaluators create-code-evaluator-version <evaluator-id> \
|
|
|
1097
1105
|
|
|
1098
1106
|
### Experiments
|
|
1099
1107
|
|
|
1100
|
-
Run and analyze experiments
|
|
1108
|
+
Run and analyze experiments, either against a dataset or standalone:
|
|
1101
1109
|
|
|
1102
1110
|
```bash
|
|
1103
|
-
# List experiments (
|
|
1104
|
-
ax experiments list [--dataset <dataset>] [--limit 15] [--cursor <cursor>]
|
|
1111
|
+
# List experiments (narrowed by dataset, or by space to include standalone ones)
|
|
1112
|
+
ax experiments list [--dataset <dataset>] [--space <space>] [--limit 15] [--cursor <cursor>]
|
|
1105
1113
|
|
|
1106
1114
|
# Get a specific experiment
|
|
1107
1115
|
ax experiments get <experiment>
|
|
1108
1116
|
|
|
1117
|
+
# Get one by name: pass --dataset to scope the name, or --space for a standalone experiment
|
|
1118
|
+
ax experiments get <name> --space <space>
|
|
1119
|
+
|
|
1109
1120
|
# Export all runs from an experiment
|
|
1110
1121
|
ax experiments export <experiment> [--output-dir .] [--stdout]
|
|
1111
1122
|
|
|
@@ -1118,6 +1129,9 @@ ax experiments run --dataset <dataset> --name "My Experiment" --task task.py --d
|
|
|
1118
1129
|
# Create a new experiment from a pre-computed data file
|
|
1119
1130
|
ax experiments create --name "My Experiment" --dataset <dataset> --file runs.csv
|
|
1120
1131
|
|
|
1132
|
+
# Create a standalone experiment — no dataset, so --space says where it lives
|
|
1133
|
+
ax experiments create --name "My Experiment" --space <space> --file runs.csv
|
|
1134
|
+
|
|
1121
1135
|
# Create an experiment from stdin
|
|
1122
1136
|
ax experiments create --name "My Experiment" --dataset <dataset> --file -
|
|
1123
1137
|
|
|
@@ -1160,7 +1174,26 @@ The function runs once per dataset example. Any JSON-serialisable return type is
|
|
|
1160
1174
|
| `--dry-run` | Run locally on the first 10 examples without uploading results |
|
|
1161
1175
|
| `--verbose`, `-v` | Enable verbose logs |
|
|
1162
1176
|
|
|
1163
|
-
|
|
1177
|
+
#### `ax experiments create` — publish pre-computed runs
|
|
1178
|
+
|
|
1179
|
+
Pass either `--dataset` to attach the experiment to a dataset, or `--space` to create a
|
|
1180
|
+
standalone experiment that has none. One of the two is required.
|
|
1181
|
+
|
|
1182
|
+
**`create` options:**
|
|
1183
|
+
|
|
1184
|
+
| Option | Description |
|
|
1185
|
+
| --- | --- |
|
|
1186
|
+
| `--name`, `-n` | Experiment name _(required)_ |
|
|
1187
|
+
| `--file`, `-f` | Data file (CSV, JSON, JSONL, Parquet), or `-` for stdin _(required)_ |
|
|
1188
|
+
| `--dataset` | Dataset name or ID to attach the experiment to; omit for a standalone experiment |
|
|
1189
|
+
| `--space`, `-s` | Space name or ID. Required when `--dataset` is omitted; with `--dataset` it only resolves the dataset by name |
|
|
1190
|
+
| `--output`, `-o` | Output format (table, json, csv, parquet) or file path |
|
|
1191
|
+
| `--verbose`, `-v` | Enable verbose logs |
|
|
1192
|
+
|
|
1193
|
+
> **Note:** The data file must contain an `output` column. It must also contain `example_id`
|
|
1194
|
+
> when using `--dataset`, since each run references the dataset example it ran on — a
|
|
1195
|
+
> standalone experiment has no examples to reference. Extra columns are passed through as
|
|
1196
|
+
> additional fields.
|
|
1164
1197
|
|
|
1165
1198
|
**Export options:**
|
|
1166
1199
|
|
|
@@ -1170,6 +1203,64 @@ The function runs once per dataset example. Any JSON-serialisable return type is
|
|
|
1170
1203
|
| `--stdout` | Print JSON to stdout instead of saving to file |
|
|
1171
1204
|
| `--verbose`, `-v` | Enable verbose logs |
|
|
1172
1205
|
|
|
1206
|
+
### Integrations
|
|
1207
|
+
|
|
1208
|
+
Manage integrations on the unified polymorphic endpoint. `LLM` integrations
|
|
1209
|
+
configure a model provider; `AGENT` integrations connect your own agent
|
|
1210
|
+
exposed at an HTTPS endpoint. This supersedes `ax ai-integrations`, which
|
|
1211
|
+
manages LLM integrations on the deprecating `/v2/ai-integrations` endpoint.
|
|
1212
|
+
|
|
1213
|
+
`create` and `update` are split into per-type subcommands (`create llm` /
|
|
1214
|
+
`create agent`, `update llm` / `update agent`) that mirror the SDK's typed
|
|
1215
|
+
methods, so `--help` shows only the fields that apply to that type. On
|
|
1216
|
+
`update`, only the fields you pass are changed; omitted fields are left
|
|
1217
|
+
unchanged.
|
|
1218
|
+
|
|
1219
|
+
```bash
|
|
1220
|
+
# List integrations of every type (or filter with --type LLM|AGENT)
|
|
1221
|
+
ax integrations list [--type AGENT] [--name <substring>] [--space <space>] [--limit 15] [--cursor <cursor>]
|
|
1222
|
+
|
|
1223
|
+
# Get an integration by ID, or by name (names are unique per type, so pass --type)
|
|
1224
|
+
ax integrations get <integration> [--type LLM|AGENT]
|
|
1225
|
+
|
|
1226
|
+
# Create an LLM integration (OpenAI example)
|
|
1227
|
+
ax integrations create llm --name "OpenAI Prod" --provider OPEN_AI --api-key sk-...
|
|
1228
|
+
|
|
1229
|
+
# Create an LLM integration with a custom endpoint
|
|
1230
|
+
ax integrations create llm --name "Custom LLM" --provider CUSTOM \
|
|
1231
|
+
--base-url https://my-llm.example.com --headers '{"X-Api-Key": "secret"}'
|
|
1232
|
+
|
|
1233
|
+
# Create an AWS Bedrock LLM integration
|
|
1234
|
+
ax integrations create llm --name "Bedrock" --provider AWS_BEDROCK \
|
|
1235
|
+
--auth '{"auth_type": "DEFAULT", "role_arn": "arn:aws:iam::123456789:role/MyRole"}'
|
|
1236
|
+
|
|
1237
|
+
# Create an agent integration
|
|
1238
|
+
ax integrations create agent --name "My Agent" \
|
|
1239
|
+
--endpoint https://agent.example.com/run \
|
|
1240
|
+
--input-schema '{"type": "object"}'
|
|
1241
|
+
|
|
1242
|
+
# Update an LLM integration (only the fields you pass change)
|
|
1243
|
+
ax integrations update llm <integration> --name "Renamed" --api-key sk-new
|
|
1244
|
+
|
|
1245
|
+
# Update an agent integration
|
|
1246
|
+
ax integrations update agent <integration> --endpoint https://agent.example.com/v2/run
|
|
1247
|
+
|
|
1248
|
+
# Delete an integration
|
|
1249
|
+
ax integrations delete <integration> [--type LLM|AGENT] [--force]
|
|
1250
|
+
```
|
|
1251
|
+
|
|
1252
|
+
**LLM provider requirements:**
|
|
1253
|
+
|
|
1254
|
+
| Provider | Value | Required flags |
|
|
1255
|
+
| --- | --- | --- |
|
|
1256
|
+
| OpenAI | `OPEN_AI` | `--api-key` |
|
|
1257
|
+
| Anthropic | `ANTHROPIC` | `--api-key` |
|
|
1258
|
+
| Google Gemini | `GEMINI` | `--api-key` |
|
|
1259
|
+
| AWS Bedrock | `AWS_BEDROCK` | `--auth` (JSON) |
|
|
1260
|
+
| Custom | `CUSTOM` | `--base-url` |
|
|
1261
|
+
| Vertex AI | `VERTEX_AI` | `--gcp-project-id`, `--gcp-location`, `--project-access-label` |
|
|
1262
|
+
| NVIDIA NIM | `NVIDIA_NIM` | at least one model source (`--model-name` or `--enable-default-models`) |
|
|
1263
|
+
|
|
1173
1264
|
### Organizations
|
|
1174
1265
|
|
|
1175
1266
|
Manage organizations:
|
|
@@ -57,6 +57,8 @@
|
|
|
57
57
|
- [Code evaluators](#code-evaluators)
|
|
58
58
|
- [Experiments](#experiments)
|
|
59
59
|
- [`ax experiments run` — execute a task locally](#ax-experiments-run--execute-a-task-locally)
|
|
60
|
+
- [`ax experiments create` — publish pre-computed runs](#ax-experiments-create--publish-pre-computed-runs)
|
|
61
|
+
- [Integrations](#integrations)
|
|
60
62
|
- [Organizations](#organizations)
|
|
61
63
|
- [Projects](#projects)
|
|
62
64
|
- [Prompts](#prompts)
|
|
@@ -276,9 +278,11 @@ API Key: Insert value
|
|
|
276
278
|
API Key (e.g., ak-123...): [hidden input]
|
|
277
279
|
|
|
278
280
|
Region:
|
|
279
|
-
> (
|
|
280
|
-
US
|
|
281
|
-
|
|
281
|
+
> (default - no region needed for US)
|
|
282
|
+
us-east-1b (US East, alias: US)
|
|
283
|
+
us-central-1a (US Central)
|
|
284
|
+
eu-west-1a (EU West, alias: EU)
|
|
285
|
+
ca-central-1a (Canada, alias: CA)
|
|
282
286
|
Use environment variable
|
|
283
287
|
|
|
284
288
|
Default output format:
|
|
@@ -617,6 +621,10 @@ Available for all commands:
|
|
|
617
621
|
|
|
618
622
|
### AI Integrations
|
|
619
623
|
|
|
624
|
+
> **Note:** `ax ai-integrations` targets the deprecating `/v2/ai-integrations`
|
|
625
|
+
> endpoint. Prefer [`ax integrations`](#integrations), which manages both LLM
|
|
626
|
+
> and agent integrations on the go-forward `/v2/integrations` endpoint.
|
|
627
|
+
|
|
620
628
|
Configure external LLM providers for use within the Arize platform (for evaluations, online evals, and more):
|
|
621
629
|
|
|
622
630
|
```bash
|
|
@@ -671,14 +679,14 @@ ax annotation-configs list [--name <substring>] [--space <space>] [--limit 15] [
|
|
|
671
679
|
ax annotation-configs get <annotation-config>
|
|
672
680
|
|
|
673
681
|
# Create a freeform annotation config (free-text feedback)
|
|
674
|
-
ax annotation-configs create --name "Quality" --space <space>
|
|
682
|
+
ax annotation-configs create freeform --name "Quality" --space <space>
|
|
675
683
|
|
|
676
684
|
# Create a continuous annotation config (numeric score range)
|
|
677
|
-
ax annotation-configs create --name "Score" --space <space>
|
|
685
|
+
ax annotation-configs create continuous --name "Score" --space <space> \
|
|
678
686
|
--min-score 0 --max-score 1 --optimization-direction MAXIMIZE
|
|
679
687
|
|
|
680
688
|
# Create a categorical annotation config (discrete labels)
|
|
681
|
-
ax annotation-configs create --name "Verdict" --space <space>
|
|
689
|
+
ax annotation-configs create categorical --name "Verdict" --space <space> \
|
|
682
690
|
--value good --value neutral --value bad --optimization-direction MAXIMIZE
|
|
683
691
|
|
|
684
692
|
# Update an annotation config (pick the subcommand for its type; only the fields you pass change)
|
|
@@ -692,11 +700,11 @@ ax annotation-configs delete <annotation-config> [--force]
|
|
|
692
700
|
|
|
693
701
|
**Supported annotation config types:**
|
|
694
702
|
|
|
695
|
-
| Type |
|
|
703
|
+
| Type | Create options | Optional options |
|
|
696
704
|
| ------------- | ----------------------------------------------------------------------- | -------------------------- |
|
|
697
|
-
| `
|
|
698
|
-
| `
|
|
699
|
-
| `
|
|
705
|
+
| `freeform` | `--name`, `--space` | — |
|
|
706
|
+
| `continuous` | `--name`, `--space`, `--min-score`, `--max-score` | `--optimization-direction` |
|
|
707
|
+
| `categorical` | `--name`, `--space`, `--value` (repeat, e.g. `--value good --value bad`) | `--optimization-direction` |
|
|
700
708
|
|
|
701
709
|
### Annotation Queues
|
|
702
710
|
|
|
@@ -1055,15 +1063,18 @@ ax evaluators create-code-evaluator-version <evaluator-id> \
|
|
|
1055
1063
|
|
|
1056
1064
|
### Experiments
|
|
1057
1065
|
|
|
1058
|
-
Run and analyze experiments
|
|
1066
|
+
Run and analyze experiments, either against a dataset or standalone:
|
|
1059
1067
|
|
|
1060
1068
|
```bash
|
|
1061
|
-
# List experiments (
|
|
1062
|
-
ax experiments list [--dataset <dataset>] [--limit 15] [--cursor <cursor>]
|
|
1069
|
+
# List experiments (narrowed by dataset, or by space to include standalone ones)
|
|
1070
|
+
ax experiments list [--dataset <dataset>] [--space <space>] [--limit 15] [--cursor <cursor>]
|
|
1063
1071
|
|
|
1064
1072
|
# Get a specific experiment
|
|
1065
1073
|
ax experiments get <experiment>
|
|
1066
1074
|
|
|
1075
|
+
# Get one by name: pass --dataset to scope the name, or --space for a standalone experiment
|
|
1076
|
+
ax experiments get <name> --space <space>
|
|
1077
|
+
|
|
1067
1078
|
# Export all runs from an experiment
|
|
1068
1079
|
ax experiments export <experiment> [--output-dir .] [--stdout]
|
|
1069
1080
|
|
|
@@ -1076,6 +1087,9 @@ ax experiments run --dataset <dataset> --name "My Experiment" --task task.py --d
|
|
|
1076
1087
|
# Create a new experiment from a pre-computed data file
|
|
1077
1088
|
ax experiments create --name "My Experiment" --dataset <dataset> --file runs.csv
|
|
1078
1089
|
|
|
1090
|
+
# Create a standalone experiment — no dataset, so --space says where it lives
|
|
1091
|
+
ax experiments create --name "My Experiment" --space <space> --file runs.csv
|
|
1092
|
+
|
|
1079
1093
|
# Create an experiment from stdin
|
|
1080
1094
|
ax experiments create --name "My Experiment" --dataset <dataset> --file -
|
|
1081
1095
|
|
|
@@ -1118,7 +1132,26 @@ The function runs once per dataset example. Any JSON-serialisable return type is
|
|
|
1118
1132
|
| `--dry-run` | Run locally on the first 10 examples without uploading results |
|
|
1119
1133
|
| `--verbose`, `-v` | Enable verbose logs |
|
|
1120
1134
|
|
|
1121
|
-
|
|
1135
|
+
#### `ax experiments create` — publish pre-computed runs
|
|
1136
|
+
|
|
1137
|
+
Pass either `--dataset` to attach the experiment to a dataset, or `--space` to create a
|
|
1138
|
+
standalone experiment that has none. One of the two is required.
|
|
1139
|
+
|
|
1140
|
+
**`create` options:**
|
|
1141
|
+
|
|
1142
|
+
| Option | Description |
|
|
1143
|
+
| --- | --- |
|
|
1144
|
+
| `--name`, `-n` | Experiment name _(required)_ |
|
|
1145
|
+
| `--file`, `-f` | Data file (CSV, JSON, JSONL, Parquet), or `-` for stdin _(required)_ |
|
|
1146
|
+
| `--dataset` | Dataset name or ID to attach the experiment to; omit for a standalone experiment |
|
|
1147
|
+
| `--space`, `-s` | Space name or ID. Required when `--dataset` is omitted; with `--dataset` it only resolves the dataset by name |
|
|
1148
|
+
| `--output`, `-o` | Output format (table, json, csv, parquet) or file path |
|
|
1149
|
+
| `--verbose`, `-v` | Enable verbose logs |
|
|
1150
|
+
|
|
1151
|
+
> **Note:** The data file must contain an `output` column. It must also contain `example_id`
|
|
1152
|
+
> when using `--dataset`, since each run references the dataset example it ran on — a
|
|
1153
|
+
> standalone experiment has no examples to reference. Extra columns are passed through as
|
|
1154
|
+
> additional fields.
|
|
1122
1155
|
|
|
1123
1156
|
**Export options:**
|
|
1124
1157
|
|
|
@@ -1128,6 +1161,64 @@ The function runs once per dataset example. Any JSON-serialisable return type is
|
|
|
1128
1161
|
| `--stdout` | Print JSON to stdout instead of saving to file |
|
|
1129
1162
|
| `--verbose`, `-v` | Enable verbose logs |
|
|
1130
1163
|
|
|
1164
|
+
### Integrations
|
|
1165
|
+
|
|
1166
|
+
Manage integrations on the unified polymorphic endpoint. `LLM` integrations
|
|
1167
|
+
configure a model provider; `AGENT` integrations connect your own agent
|
|
1168
|
+
exposed at an HTTPS endpoint. This supersedes `ax ai-integrations`, which
|
|
1169
|
+
manages LLM integrations on the deprecating `/v2/ai-integrations` endpoint.
|
|
1170
|
+
|
|
1171
|
+
`create` and `update` are split into per-type subcommands (`create llm` /
|
|
1172
|
+
`create agent`, `update llm` / `update agent`) that mirror the SDK's typed
|
|
1173
|
+
methods, so `--help` shows only the fields that apply to that type. On
|
|
1174
|
+
`update`, only the fields you pass are changed; omitted fields are left
|
|
1175
|
+
unchanged.
|
|
1176
|
+
|
|
1177
|
+
```bash
|
|
1178
|
+
# List integrations of every type (or filter with --type LLM|AGENT)
|
|
1179
|
+
ax integrations list [--type AGENT] [--name <substring>] [--space <space>] [--limit 15] [--cursor <cursor>]
|
|
1180
|
+
|
|
1181
|
+
# Get an integration by ID, or by name (names are unique per type, so pass --type)
|
|
1182
|
+
ax integrations get <integration> [--type LLM|AGENT]
|
|
1183
|
+
|
|
1184
|
+
# Create an LLM integration (OpenAI example)
|
|
1185
|
+
ax integrations create llm --name "OpenAI Prod" --provider OPEN_AI --api-key sk-...
|
|
1186
|
+
|
|
1187
|
+
# Create an LLM integration with a custom endpoint
|
|
1188
|
+
ax integrations create llm --name "Custom LLM" --provider CUSTOM \
|
|
1189
|
+
--base-url https://my-llm.example.com --headers '{"X-Api-Key": "secret"}'
|
|
1190
|
+
|
|
1191
|
+
# Create an AWS Bedrock LLM integration
|
|
1192
|
+
ax integrations create llm --name "Bedrock" --provider AWS_BEDROCK \
|
|
1193
|
+
--auth '{"auth_type": "DEFAULT", "role_arn": "arn:aws:iam::123456789:role/MyRole"}'
|
|
1194
|
+
|
|
1195
|
+
# Create an agent integration
|
|
1196
|
+
ax integrations create agent --name "My Agent" \
|
|
1197
|
+
--endpoint https://agent.example.com/run \
|
|
1198
|
+
--input-schema '{"type": "object"}'
|
|
1199
|
+
|
|
1200
|
+
# Update an LLM integration (only the fields you pass change)
|
|
1201
|
+
ax integrations update llm <integration> --name "Renamed" --api-key sk-new
|
|
1202
|
+
|
|
1203
|
+
# Update an agent integration
|
|
1204
|
+
ax integrations update agent <integration> --endpoint https://agent.example.com/v2/run
|
|
1205
|
+
|
|
1206
|
+
# Delete an integration
|
|
1207
|
+
ax integrations delete <integration> [--type LLM|AGENT] [--force]
|
|
1208
|
+
```
|
|
1209
|
+
|
|
1210
|
+
**LLM provider requirements:**
|
|
1211
|
+
|
|
1212
|
+
| Provider | Value | Required flags |
|
|
1213
|
+
| --- | --- | --- |
|
|
1214
|
+
| OpenAI | `OPEN_AI` | `--api-key` |
|
|
1215
|
+
| Anthropic | `ANTHROPIC` | `--api-key` |
|
|
1216
|
+
| Google Gemini | `GEMINI` | `--api-key` |
|
|
1217
|
+
| AWS Bedrock | `AWS_BEDROCK` | `--auth` (JSON) |
|
|
1218
|
+
| Custom | `CUSTOM` | `--base-url` |
|
|
1219
|
+
| Vertex AI | `VERTEX_AI` | `--gcp-project-id`, `--gcp-location`, `--project-access-label` |
|
|
1220
|
+
| NVIDIA NIM | `NVIDIA_NIM` | at least one model source (`--model-name` or `--enable-default-models`) |
|
|
1221
|
+
|
|
1131
1222
|
### Organizations
|
|
1132
1223
|
|
|
1133
1224
|
Manage organizations:
|
|
@@ -21,7 +21,7 @@ classifiers = [
|
|
|
21
21
|
]
|
|
22
22
|
dynamic = ["version"]
|
|
23
23
|
dependencies = [
|
|
24
|
-
"arize==8.
|
|
24
|
+
"arize==8.48.0",
|
|
25
25
|
"filelock>=3.12.0, <4", # For concurrent-safe token refresh in OAuth profiles
|
|
26
26
|
"pydantic>=2.0.0, <3",
|
|
27
27
|
"questionary>=2.0.0, <3",
|
|
@@ -54,7 +54,7 @@ Repository = "https://github.com/Arize-ai/arize-ax-cli"
|
|
|
54
54
|
ax = "ax.cli:app"
|
|
55
55
|
|
|
56
56
|
[build-system]
|
|
57
|
-
requires = ["hatchling"]
|
|
57
|
+
requires = ["hatchling>=1.26.0,<2"]
|
|
58
58
|
build-backend = "hatchling.build"
|
|
59
59
|
|
|
60
60
|
[tool.hatch.version]
|
|
@@ -7,10 +7,10 @@ from arize.ai_integrations.types import (
|
|
|
7
7
|
AiIntegrationAuthType,
|
|
8
8
|
AiIntegrationProvider,
|
|
9
9
|
AiIntegrationScoping,
|
|
10
|
-
AwsProviderMetadata,
|
|
11
10
|
AwsProviderMetadataKind,
|
|
12
|
-
|
|
11
|
+
AwsProviderMetadataRequest,
|
|
13
12
|
GcpProviderMetadataKind,
|
|
13
|
+
GcpProviderMetadataRequest,
|
|
14
14
|
)
|
|
15
15
|
|
|
16
16
|
from ax.core.client_factory import make_client
|
|
@@ -64,7 +64,7 @@ def _parse_provider_metadata(
|
|
|
64
64
|
*,
|
|
65
65
|
provider: AiIntegrationProvider,
|
|
66
66
|
provider_metadata: dict[str, Any] | None,
|
|
67
|
-
) ->
|
|
67
|
+
) -> AwsProviderMetadataRequest | GcpProviderMetadataRequest | None:
|
|
68
68
|
if provider_metadata is None:
|
|
69
69
|
return None
|
|
70
70
|
|
|
@@ -76,7 +76,7 @@ def _parse_provider_metadata(
|
|
|
76
76
|
raise UsageError(
|
|
77
77
|
f"--provider-metadata.kind must be {aws_kind!r} for AWS_BEDROCK"
|
|
78
78
|
)
|
|
79
|
-
parsed_aws =
|
|
79
|
+
parsed_aws = AwsProviderMetadataRequest.from_dict(normalized)
|
|
80
80
|
if parsed_aws is None:
|
|
81
81
|
raise UsageError(
|
|
82
82
|
"--provider-metadata is missing or invalid for AWS_BEDROCK"
|
|
@@ -90,7 +90,7 @@ def _parse_provider_metadata(
|
|
|
90
90
|
raise UsageError(
|
|
91
91
|
f"--provider-metadata.kind must be {gcp_kind!r} for VERTEX_AI"
|
|
92
92
|
)
|
|
93
|
-
parsed_gcp =
|
|
93
|
+
parsed_gcp = GcpProviderMetadataRequest.from_dict(normalized)
|
|
94
94
|
if parsed_gcp is None:
|
|
95
95
|
raise UsageError(
|
|
96
96
|
"--provider-metadata is missing or invalid for VERTEX_AI"
|