arize-ax-cli 0.38.0__tar.gz → 0.40.0__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.38.0 → arize_ax_cli-0.40.0}/PKG-INFO +288 -25
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/README.md +286 -23
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/pyproject.toml +1 -1
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/auth/bearer.py +25 -11
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/auth/oauth_client.py +47 -17
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/ai_integrations.py +65 -9
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/api_keys.py +28 -6
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/auth.py +44 -24
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/datasets.py +25 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/evaluators.py +301 -5
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/experiments.py +23 -1
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/integrations.py +81 -7
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/profiles.py +36 -16
- arize_ax_cli-0.40.0/src/ax/commands/saml_identity_providers.py +336 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/tasks.py +79 -12
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/traces.py +37 -17
- arize_ax_cli-0.40.0/src/ax/commands/webhooks.py +884 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/config/input_readers.py +64 -13
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/config/manager.py +73 -3
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/config/schema.py +32 -44
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/config/setup.py +19 -23
- arize_ax_cli-0.40.0/src/ax/config/tls.py +98 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/core/client_factory.py +6 -3
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/core/error_formatter.py +4 -6
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/core/exceptions.py +12 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/version.py +1 -1
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/.gitignore +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/LICENSE +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/__init__.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/__main__.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/ascii_art.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/auth/__init__.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/auth/oauth_flow.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/cli.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/coding_agents.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/__init__.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/annotation_configs.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/annotation_queues.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/instrument.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/organizations.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/projects.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/prompts.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/resource_restrictions.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/role_bindings.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/roles.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/skills.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/spaces.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/spans.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/upgrade.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/commands/users.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/config/__init__.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/core/__init__.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/core/decorators.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/core/headers.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/core/output.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/core/pydantic.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/instrument/__init__.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/instrument/flow.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/instrument/launch.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/instrument/links.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/instrument/prompt.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/instrument/selfinstall.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/instrument/staging.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/skills_installer.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/__init__.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/annotations.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/console.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/datetime_parse.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/dotenv.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/export.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/file_io.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/http.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/json_source.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/text_source.py +0 -0
- {arize_ax_cli-0.38.0 → arize_ax_cli-0.40.0}/src/ax/utils/upgrade_check.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: arize-ax-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.40.0
|
|
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.66.0
|
|
24
24
|
Requires-Dist: cryptography<45,>=44.0.0
|
|
25
25
|
Requires-Dist: filelock<4,>=3.12.0
|
|
26
26
|
Requires-Dist: packaging>=21.0
|
|
@@ -101,6 +101,7 @@ Description-Content-Type: text/markdown
|
|
|
101
101
|
- [Evaluators](#evaluators)
|
|
102
102
|
- [Code evaluators](#code-evaluators)
|
|
103
103
|
- [Remote evaluators](#remote-evaluators)
|
|
104
|
+
- [Decision Judge evaluators](#decision-judge-evaluators)
|
|
104
105
|
- [Experiments](#experiments)
|
|
105
106
|
- [`ax experiments run` — execute a task locally](#ax-experiments-run--execute-a-task-locally)
|
|
106
107
|
- [`ax experiments create` — publish pre-computed runs](#ax-experiments-create--publish-pre-computed-runs)
|
|
@@ -109,12 +110,14 @@ Description-Content-Type: text/markdown
|
|
|
109
110
|
- [Projects](#projects)
|
|
110
111
|
- [Prompts](#prompts)
|
|
111
112
|
- [Roles](#roles)
|
|
113
|
+
- [SAML Identity Providers](#saml-identity-providers)
|
|
112
114
|
- [Spaces](#spaces)
|
|
113
115
|
- [Skills](#skills)
|
|
114
116
|
- [Spans](#spans)
|
|
115
117
|
- [Tasks](#tasks)
|
|
116
118
|
- [Traces](#traces)
|
|
117
119
|
- [Users](#users)
|
|
120
|
+
- [Webhooks](#webhooks)
|
|
118
121
|
- [Usage Examples](#usage-examples)
|
|
119
122
|
- [Creating a Dataset from a CSV File](#creating-a-dataset-from-a-csv-file)
|
|
120
123
|
- [Creating a Dataset from stdin](#creating-a-dataset-from-stdin)
|
|
@@ -125,6 +128,7 @@ Description-Content-Type: text/markdown
|
|
|
125
128
|
- [Exporting Spans by Trace ID](#exporting-spans-by-trace-id)
|
|
126
129
|
- [Exporting Spans](#exporting-spans)
|
|
127
130
|
- [Listing Traces and Exporting to Parquet](#listing-traces-and-exporting-to-parquet)
|
|
131
|
+
- [Subscribing a Webhook to Evaluator Versions](#subscribing-a-webhook-to-evaluator-versions)
|
|
128
132
|
- [Pagination](#pagination)
|
|
129
133
|
- [Working with Multiple Environments](#working-with-multiple-environments)
|
|
130
134
|
- [Filtering Spans by Status](#filtering-spans-by-status)
|
|
@@ -160,6 +164,7 @@ Official command-line interface for [Arize AI](https://arize.com) - manage your
|
|
|
160
164
|
- **API Key Management**: Create, refresh, and revoke API keys
|
|
161
165
|
- **AI Integrations**: Configure external LLM providers (OpenAI, Anthropic, AWS Bedrock, and more)
|
|
162
166
|
- **Prompt Management**: Create and version prompts with label management
|
|
167
|
+
- **Webhook Management**: Create webhooks and subscribe them to prompt and evaluator events
|
|
163
168
|
- **Role Management**: Create, update, and delete custom roles with granular permissions
|
|
164
169
|
- **User Management**: Invite users, manage account-level roles, and control organization/space memberships
|
|
165
170
|
- **Agent Skills**: Install Arize context skills for AI coding agents (Claude Code, Cursor, Codex, Windsurf)
|
|
@@ -324,11 +329,9 @@ API Key: Insert value
|
|
|
324
329
|
API Key (e.g., ak-123...): [hidden input]
|
|
325
330
|
|
|
326
331
|
Region:
|
|
327
|
-
> (
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
eu-west-1a (EU West, alias: EU)
|
|
331
|
-
ca-central-1a (Canada, alias: CA)
|
|
332
|
+
> US (United States, default)
|
|
333
|
+
EU (Europe)
|
|
334
|
+
CA (Canada)
|
|
332
335
|
Use environment variable
|
|
333
336
|
|
|
334
337
|
Default output format:
|
|
@@ -348,12 +351,16 @@ name = "default"
|
|
|
348
351
|
api_key = "ak_your_api_key_here"
|
|
349
352
|
|
|
350
353
|
[routing]
|
|
351
|
-
region = "
|
|
354
|
+
region = "us-central-1a"
|
|
352
355
|
|
|
353
356
|
[output]
|
|
354
357
|
format = "table"
|
|
355
358
|
```
|
|
356
359
|
|
|
360
|
+
Choose the region where your account is hosted. `US` uses the normal US GCP deployment. Region aliases are case-insensitive. The GCP identifiers `us-central-1a`, `eu-west-1a`, and `ca-central-1a` are also accepted. The unfinished AWS US East deployment is not a supported public region.
|
|
361
|
+
|
|
362
|
+
Profiles that contain an unsupported region must be recreated with the correct public region. Selecting a region does not move an account between deployments.
|
|
363
|
+
|
|
357
364
|
#### Advanced Configuration
|
|
358
365
|
|
|
359
366
|
**Best for:** On-premise deployments, Private Connect, custom routing, performance tuning
|
|
@@ -450,7 +457,7 @@ ax profiles update staging --from-file ./staging.toml --api-key ak_override
|
|
|
450
457
|
| ------------------- | ----------------------------------------------------------- |
|
|
451
458
|
| `--from-file`, `-f` | TOML file to load; completely replaces the existing profile |
|
|
452
459
|
| `--api-key` | Arize API key |
|
|
453
|
-
| `--region` |
|
|
460
|
+
| `--region` | Account region: `US` (default), `EU`, or `CA` |
|
|
454
461
|
| `--output-format` | Default output format (`table`, `json`, `csv`, `parquet`) |
|
|
455
462
|
| `--verbose`, `-v` | Enable verbose logs |
|
|
456
463
|
|
|
@@ -508,8 +515,22 @@ max_http_payload_size_mb = 8
|
|
|
508
515
|
```toml
|
|
509
516
|
[security]
|
|
510
517
|
request_verify = true # Set to false to disable SSL verification (not recommended)
|
|
518
|
+
ssl_ca_cert = "/etc/ssl/certs/corp-ca.pem" # CA bundle for a private gateway or TLS proxy
|
|
519
|
+
client_cert = "~/.arize/client.crt" # Client certificate for mutual TLS
|
|
520
|
+
client_key = "~/.arize/client.key" # Unencrypted private key for client_cert
|
|
511
521
|
```
|
|
512
522
|
|
|
523
|
+
`ssl_ca_cert`, `client_cert`, and `client_key` are file paths, not PEM content. Set
|
|
524
|
+
`client_cert` and `client_key` together. They apply to every connection the CLI makes to
|
|
525
|
+
Arize: REST, file upload, Arrow Flight, and the `ax auth` OAuth calls. The key must be
|
|
526
|
+
unencrypted, and the CLI warns when other users can read it (fix with `chmod 600`).
|
|
527
|
+
|
|
528
|
+
When a field is not set in the profile, the CLI reads the same environment variables as the
|
|
529
|
+
Python SDK: `ARIZE_SSL_CA_CERT` (then `REQUESTS_CA_BUNDLE`, then `SSL_CERT_FILE`),
|
|
530
|
+
`ARIZE_CLIENT_CERT`, and `ARIZE_CLIENT_KEY`. A `ssl_ca_cert` bundle replaces the default
|
|
531
|
+
trust roots for Arize connections, so it must include every CA your endpoints need.
|
|
532
|
+
`request_verify = false` turns off server verification and ignores `ssl_ca_cert`.
|
|
533
|
+
|
|
513
534
|
**Output** (optional)
|
|
514
535
|
|
|
515
536
|
```toml
|
|
@@ -694,6 +715,11 @@ ax ai-integrations create --name "Bedrock" --provider AWS_BEDROCK \
|
|
|
694
715
|
--provider-metadata '{"role_arn": "arn:aws:iam::123456789:role/MyRole"}' \
|
|
695
716
|
--enable-default-models
|
|
696
717
|
|
|
718
|
+
# Create a Cloudflare integration (used only by Decision Judge evaluators)
|
|
719
|
+
ax ai-integrations create --name "Cloudflare" --provider CLOUDFLARE \
|
|
720
|
+
--api-key <cloudflare-api-token> \
|
|
721
|
+
--provider-metadata '{"account_id": "<32-character-account-id>"}'
|
|
722
|
+
|
|
697
723
|
# Update an integration
|
|
698
724
|
ax ai-integrations update <integration> --name "Renamed" --api-key <new-key>
|
|
699
725
|
|
|
@@ -703,7 +729,7 @@ ax ai-integrations delete <integration> [--force]
|
|
|
703
729
|
|
|
704
730
|
**Supported providers:**
|
|
705
731
|
|
|
706
|
-
Every provider except LiteLLM, Fireworks AI
|
|
732
|
+
Every provider except LiteLLM, Fireworks AI, Together AI and DeepSeek needs a model source: `--enable-default-models` and/or one or more `--model-name` flags. Without one, the server rejects the create.
|
|
707
733
|
|
|
708
734
|
| Provider | Value | Notes |
|
|
709
735
|
| ------------- | --------------- | ------------------------------------------------------------ |
|
|
@@ -718,6 +744,7 @@ Every provider except LiteLLM, Fireworks AI and Together AI needs a model source
|
|
|
718
744
|
| LiteLLM | `LITELLM` | Requires `--base-url` and `--api-key` |
|
|
719
745
|
| Fireworks AI | `FIREWORKS` | API key only; no `--base-url` |
|
|
720
746
|
| Together AI | `TOGETHER_AI` | API key only; no `--base-url` |
|
|
747
|
+
| DeepSeek | `DEEP_SEEK` | API key only; no `--base-url` |
|
|
721
748
|
|
|
722
749
|
### Annotation Configs
|
|
723
750
|
|
|
@@ -933,7 +960,7 @@ ax datasets list [--name <substring>] [--space <space>] [--limit 15] [--cursor <
|
|
|
933
960
|
ax datasets get <dataset>
|
|
934
961
|
|
|
935
962
|
# Export one page of examples to a file
|
|
936
|
-
ax datasets export <dataset> [--version-id <version-id>] [--limit <count>] [--cursor <cursor>] [--output-dir .] [--stdout]
|
|
963
|
+
ax datasets export <dataset> [--version-id <version-id>] [--filter <expression>] [--limit <count>] [--cursor <cursor>] [--output-dir .] [--stdout]
|
|
937
964
|
|
|
938
965
|
# Export all examples through Arrow Flight
|
|
939
966
|
ax datasets export <dataset> --all
|
|
@@ -984,7 +1011,7 @@ Manage LLM-as-judge evaluators and their versions:
|
|
|
984
1011
|
|
|
985
1012
|
```bash
|
|
986
1013
|
# List evaluators (optionally filtered by space)
|
|
987
|
-
ax evaluators list [--name <substring>] [--space <space>] [--limit 15] [--cursor <cursor>]
|
|
1014
|
+
ax evaluators list [--name <substring>] [--space <space>] [--type TEMPLATE|CODE|HARNESS|REMOTE|DECISION_JUDGE] [--limit 15] [--cursor <cursor>]
|
|
988
1015
|
|
|
989
1016
|
# Get an evaluator with its latest version
|
|
990
1017
|
ax evaluators get <evaluator>
|
|
@@ -998,7 +1025,7 @@ ax evaluators create-evaluator template \
|
|
|
998
1025
|
--space <space> \
|
|
999
1026
|
--commit-message "Initial version" \
|
|
1000
1027
|
--template-name relevance \
|
|
1001
|
-
--template "Is this response relevant to the query? {
|
|
1028
|
+
--template "Is this response relevant to the query? {input} {output}" \
|
|
1002
1029
|
--ai-integration-id <integration-id> \
|
|
1003
1030
|
--model-name gpt-4o
|
|
1004
1031
|
|
|
@@ -1008,7 +1035,7 @@ ax evaluators create-evaluator template \
|
|
|
1008
1035
|
--space <space> \
|
|
1009
1036
|
--commit-message "Initial version" \
|
|
1010
1037
|
--template-name relevance \
|
|
1011
|
-
--template "Classify: {
|
|
1038
|
+
--template "Classify: {output}" \
|
|
1012
1039
|
--ai-integration-id <integration-id> \
|
|
1013
1040
|
--model-name gpt-4o \
|
|
1014
1041
|
--classification-choices '{"relevant":1,"irrelevant":0}' \
|
|
@@ -1022,6 +1049,9 @@ ax evaluators update <evaluator> --description "Updated description"
|
|
|
1022
1049
|
# Delete an evaluator (and all its versions)
|
|
1023
1050
|
ax evaluators delete <evaluator> [--force]
|
|
1024
1051
|
|
|
1052
|
+
# List the built-in LLM-as-a-judge templates (hallucination, relevance, ...)
|
|
1053
|
+
ax evaluators list-templates [--output json]
|
|
1054
|
+
|
|
1025
1055
|
# List all versions of an evaluator
|
|
1026
1056
|
ax evaluators list-versions <evaluator-id> [--limit 15] [--cursor <cursor>]
|
|
1027
1057
|
|
|
@@ -1032,7 +1062,7 @@ ax evaluators get-version <version-id>
|
|
|
1032
1062
|
ax evaluators create-evaluator-version template <evaluator-id> \
|
|
1033
1063
|
--commit-message "Improved prompt" \
|
|
1034
1064
|
--template-name relevance \
|
|
1035
|
-
--template "Rate the relevance of the response: {
|
|
1065
|
+
--template "Rate the relevance of the response: {input} {output}" \
|
|
1036
1066
|
--ai-integration-id <integration-id> \
|
|
1037
1067
|
--model-name gpt-4o
|
|
1038
1068
|
|
|
@@ -1040,7 +1070,7 @@ ax evaluators create-evaluator-version template <evaluator-id> \
|
|
|
1040
1070
|
ax evaluators create-evaluator-version template <evaluator-id> \
|
|
1041
1071
|
--commit-message "Add rails" \
|
|
1042
1072
|
--template-name relevance \
|
|
1043
|
-
--template "Classify: {
|
|
1073
|
+
--template "Classify: {output}" \
|
|
1044
1074
|
--ai-integration-id <integration-id> \
|
|
1045
1075
|
--model-name gpt-4o \
|
|
1046
1076
|
--classification-choices '{"relevant":1,"irrelevant":0}'
|
|
@@ -1051,7 +1081,7 @@ ax evaluators create-evaluator-version template <evaluator-id> \
|
|
|
1051
1081
|
| Option | Description |
|
|
1052
1082
|
| --- | --- |
|
|
1053
1083
|
| `--template-name` | Eval column name (alphanumeric, spaces, hyphens, underscores) |
|
|
1054
|
-
| `--template` | Prompt template with `{
|
|
1084
|
+
| `--template` | Prompt template with `{variable}` placeholders referencing span attributes |
|
|
1055
1085
|
| `--ai-integration-id` | AI integration global ID (base64) |
|
|
1056
1086
|
| `--model-name` | Model name (e.g. `gpt-4o`, `claude-3-5-sonnet`) |
|
|
1057
1087
|
| `--include-explanations` | Include reasoning explanation alongside the score (default: on) |
|
|
@@ -1120,7 +1150,7 @@ ax evaluators create-evaluator-version code <evaluator-id> \
|
|
|
1120
1150
|
|
|
1121
1151
|
Remote evaluators call a customer-hosted HTTP endpoint on each evaluation run.
|
|
1122
1152
|
First create an `EVALUATOR` integration (see [Integrations](#integrations)), then
|
|
1123
|
-
reference it when creating the evaluator. Requires
|
|
1153
|
+
reference it when creating the evaluator. Requires an Enterprise account.
|
|
1124
1154
|
|
|
1125
1155
|
```bash
|
|
1126
1156
|
# Create a remote evaluator backed by an existing EVALUATOR integration
|
|
@@ -1144,6 +1174,112 @@ ax evaluators create-evaluator-version remote <evaluator-id> \
|
|
|
1144
1174
|
| `--commit-message` | Commit message for the version (default: `"Initial version"` / `"Update remote config"`) |
|
|
1145
1175
|
| `--description` | Optional evaluator description (`create-evaluator remote` only) |
|
|
1146
1176
|
|
|
1177
|
+
#### Decision Judge evaluators
|
|
1178
|
+
|
|
1179
|
+
A Decision Judge evaluator asks a set of typed questions about each span and writes one result per question. It runs on spans only, and must be enabled for your account. Questions come from a JSON array (inline, a file path, or `@file`), and the state template is the text sent to the model, with `{variable}` placeholders filled from span attributes.
|
|
1180
|
+
|
|
1181
|
+
Find an AI integration whose provider supports Decision Judge:
|
|
1182
|
+
|
|
1183
|
+
```bash
|
|
1184
|
+
ax integrations list --type LLM --provider OPEN_AI
|
|
1185
|
+
# Other Decision Judge providers: TYPE_SAFE_AI, PERPLEXITY, CLOUDFLARE
|
|
1186
|
+
```
|
|
1187
|
+
|
|
1188
|
+
Each question has a `name` (unique within the evaluator), `instructions`, and a `type` that selects the shape of `criteria`:
|
|
1189
|
+
|
|
1190
|
+
| Type | `criteria` |
|
|
1191
|
+
| --- | --- |
|
|
1192
|
+
| `BOOLEAN` | optional `true_means` and `false_means` |
|
|
1193
|
+
| `CHOICE` | `options`: a map of 2 to 255 labels to when each applies |
|
|
1194
|
+
| `SCORE` | `levels`: 2 to 10 descriptions from lowest to highest; optional `direction` (`MAXIMIZE` or `MINIMIZE`, default `MAXIMIZE`) |
|
|
1195
|
+
|
|
1196
|
+
`questions.json`:
|
|
1197
|
+
|
|
1198
|
+
```json
|
|
1199
|
+
[
|
|
1200
|
+
{
|
|
1201
|
+
"name": "is_helpful",
|
|
1202
|
+
"type": "BOOLEAN",
|
|
1203
|
+
"instructions": "Did the answer address the user's request?",
|
|
1204
|
+
"criteria": {
|
|
1205
|
+
"true_means": "The answer addresses the request",
|
|
1206
|
+
"false_means": "The answer ignores or misses the request"
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"name": "tone",
|
|
1211
|
+
"type": "CHOICE",
|
|
1212
|
+
"instructions": "Pick the tone of the answer.",
|
|
1213
|
+
"criteria": {
|
|
1214
|
+
"options": {
|
|
1215
|
+
"formal": "Professional, impersonal wording",
|
|
1216
|
+
"friendly": "Warm, conversational wording",
|
|
1217
|
+
"curt": "Short and dismissive wording"
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"name": "quality",
|
|
1223
|
+
"type": "SCORE",
|
|
1224
|
+
"instructions": "Rate the overall quality of the answer.",
|
|
1225
|
+
"criteria": {
|
|
1226
|
+
"levels": [
|
|
1227
|
+
"Wrong or unusable",
|
|
1228
|
+
"Partly correct, missing key details",
|
|
1229
|
+
"Correct and complete"
|
|
1230
|
+
]
|
|
1231
|
+
},
|
|
1232
|
+
"direction": "MAXIMIZE"
|
|
1233
|
+
}
|
|
1234
|
+
]
|
|
1235
|
+
```
|
|
1236
|
+
|
|
1237
|
+
```bash
|
|
1238
|
+
# Create a Decision Judge evaluator
|
|
1239
|
+
ax evaluators create-evaluator decision-judge \
|
|
1240
|
+
--name "Support Answer Review" \
|
|
1241
|
+
--space <space> \
|
|
1242
|
+
--ai-integration-id <integration-global-id> \
|
|
1243
|
+
--model-name gpt-6-luna \
|
|
1244
|
+
--state-template "User asked: {input}
|
|
1245
|
+
Assistant answered: {output}" \
|
|
1246
|
+
--questions @questions.json \
|
|
1247
|
+
--commit-message "Initial version"
|
|
1248
|
+
|
|
1249
|
+
# The state template can also come from a file
|
|
1250
|
+
ax evaluators create-evaluator decision-judge ... --state-template @state.txt --questions questions.json
|
|
1251
|
+
|
|
1252
|
+
# Create a new version (replaces the whole config, including every question)
|
|
1253
|
+
ax evaluators create-evaluator-version decision-judge <evaluator-id> \
|
|
1254
|
+
--ai-integration-id <integration-global-id> \
|
|
1255
|
+
--model-name gpt-6-luna \
|
|
1256
|
+
--state-template @state.txt \
|
|
1257
|
+
--questions @questions.json \
|
|
1258
|
+
--commit-message "Add tone question"
|
|
1259
|
+
|
|
1260
|
+
# Decision Judge evaluators are hidden from the default list; ask for them
|
|
1261
|
+
ax evaluators list --type DECISION_JUDGE
|
|
1262
|
+
|
|
1263
|
+
# Run the evaluator on a project's spans
|
|
1264
|
+
ax tasks create-evaluation \
|
|
1265
|
+
--name "Support Quality" \
|
|
1266
|
+
--task-type DECISION_JUDGE_EVALUATION \
|
|
1267
|
+
--evaluators '[{"evaluator_id": "<evaluator-id>"}]' \
|
|
1268
|
+
--project <project> --space <space>
|
|
1269
|
+
```
|
|
1270
|
+
|
|
1271
|
+
**Decision Judge options:**
|
|
1272
|
+
|
|
1273
|
+
| Option | Description |
|
|
1274
|
+
| --- | --- |
|
|
1275
|
+
| `--ai-integration-id` | Global ID of an AI integration whose provider supports Decision Judge |
|
|
1276
|
+
| `--model-name` | Decision Judge model of that provider (for example `gpt-6-luna` for OpenAI) |
|
|
1277
|
+
| `--state-template` | State template text, or `@path/to/file` |
|
|
1278
|
+
| `--questions` | JSON array of 1 to 64 questions, inline or a file path / `@path` |
|
|
1279
|
+
| `--commit-message` | Commit message for the version (default: `"Initial version"` / `"Update decision judge config"`) |
|
|
1280
|
+
| `--description` | Optional evaluator description (`create-evaluator decision-judge` only) |
|
|
1281
|
+
| `--space`, `-s` (alias `--space-id`) | Space name or ID; for `create-evaluator-version`, required only when the evaluator is given by name |
|
|
1282
|
+
|
|
1147
1283
|
### Experiments
|
|
1148
1284
|
|
|
1149
1285
|
Run and analyze experiments, either against a dataset or standalone:
|
|
@@ -1179,6 +1315,12 @@ ax experiments create --name "My Experiment" --dataset <dataset> --file -
|
|
|
1179
1315
|
# List runs for an experiment (paginated)
|
|
1180
1316
|
ax experiments list-runs <experiment> [--limit 30] [--cursor <cursor>]
|
|
1181
1317
|
|
|
1318
|
+
# Filter runs server-side with a SQL-like expression (same language as span search).
|
|
1319
|
+
# Supports id, output, example_id, custom run columns,
|
|
1320
|
+
# eval.<name>.score/label/explanation/metadata.*, and annotation.<name>.*
|
|
1321
|
+
ax experiments list-runs <experiment> --filter "eval.correctness.label = 'correct'"
|
|
1322
|
+
ax experiments list-runs <experiment> --filter "eval.correctness.label = 'correct' AND eval.correctness.score >= 0.8"
|
|
1323
|
+
|
|
1182
1324
|
# Delete an experiment
|
|
1183
1325
|
ax experiments delete <experiment> [--force]
|
|
1184
1326
|
```
|
|
@@ -1259,7 +1401,7 @@ unchanged.
|
|
|
1259
1401
|
|
|
1260
1402
|
```bash
|
|
1261
1403
|
# List integrations of every type (or filter with --type LLM|AGENT)
|
|
1262
|
-
ax integrations list [--type AGENT] [--name <substring>] [--space <space>] [--limit 15] [--cursor <cursor>]
|
|
1404
|
+
ax integrations list [--type AGENT] [--provider <provider>] [--name <substring>] [--space <space>] [--limit 15] [--cursor <cursor>]
|
|
1263
1405
|
|
|
1264
1406
|
# Get an integration by ID, or by name (names are unique per type, so pass --type)
|
|
1265
1407
|
ax integrations get <integration> [--type LLM|AGENT]
|
|
@@ -1275,6 +1417,10 @@ ax integrations create llm --name "Custom LLM" --provider CUSTOM \
|
|
|
1275
1417
|
ax integrations create llm --name "Bedrock" --provider AWS_BEDROCK \
|
|
1276
1418
|
--auth '{"auth_type": "DEFAULT", "role_arn": "arn:aws:iam::123456789:role/MyRole"}'
|
|
1277
1419
|
|
|
1420
|
+
# Create a Cloudflare LLM integration (used only by Decision Judge evaluators)
|
|
1421
|
+
ax integrations create llm --name "Cloudflare" --provider CLOUDFLARE \
|
|
1422
|
+
--api-key <cloudflare-api-token> --account-id <32-character-account-id>
|
|
1423
|
+
|
|
1278
1424
|
# Create an agent integration
|
|
1279
1425
|
ax integrations create agent --name "My Agent" \
|
|
1280
1426
|
--endpoint https://agent.example.com/run \
|
|
@@ -1301,6 +1447,11 @@ ax integrations delete <integration> [--type LLM|AGENT] [--force]
|
|
|
1301
1447
|
| Custom | `CUSTOM` | `--base-url` |
|
|
1302
1448
|
| Vertex AI | `VERTEX_AI` | `--gcp-project-id`, `--gcp-location`, `--project-access-label` |
|
|
1303
1449
|
| NVIDIA NIM | `NVIDIA_NIM` | at least one model source (`--model-name` or `--enable-default-models`) |
|
|
1450
|
+
| TypeSafe AI | `TYPE_SAFE_AI` | `--api-key` (Decision Judge only) |
|
|
1451
|
+
| Perplexity | `PERPLEXITY` | `--api-key` (Decision Judge only) |
|
|
1452
|
+
| Cloudflare | `CLOUDFLARE` | `--api-key`, `--account-id` (Decision Judge only) |
|
|
1453
|
+
|
|
1454
|
+
`--account-id` is valid only for `CLOUDFLARE`. Pass it to `update llm` to change the account ID.
|
|
1304
1455
|
|
|
1305
1456
|
### Organizations
|
|
1306
1457
|
|
|
@@ -1492,6 +1643,28 @@ ax roles delete <role-name-or-id> [--force]
|
|
|
1492
1643
|
|
|
1493
1644
|
> **Note:** Permission values are uppercase identifiers such as `PROJECT_READ`, `DATASET_CREATE`, `ANNOTATION_CONFIG_READ`, etc. Predefined (system-managed) roles cannot be created, updated, or deleted.
|
|
1494
1645
|
|
|
1646
|
+
### SAML Identity Providers
|
|
1647
|
+
|
|
1648
|
+
Requires Enterprise account-admin access and Python SDK 8.64.0 or later.
|
|
1649
|
+
|
|
1650
|
+
Use an existing test profile. These commands use its account credentials:
|
|
1651
|
+
|
|
1652
|
+
```bash
|
|
1653
|
+
ax saml-identity-providers list --output json
|
|
1654
|
+
ax saml-identity-providers create --input-file saml-idp.json --output json
|
|
1655
|
+
ax saml-identity-providers get "$IDP_ID" --output json
|
|
1656
|
+
ax saml-identity-providers update "$IDP_ID" --input-file saml-patch.json
|
|
1657
|
+
ax saml-identity-providers role-mappings list "$IDP_ID" --output json
|
|
1658
|
+
ax saml-identity-providers role-mappings add "$IDP_ID" --input-file saml-mapping.json --output json
|
|
1659
|
+
ax saml-identity-providers role-mappings update "$IDP_ID" "$MAPPING_ID" --input-file mapping-patch.json
|
|
1660
|
+
ax saml-identity-providers role-mappings remove "$IDP_ID" "$MAPPING_ID"
|
|
1661
|
+
ax saml-identity-providers delete "$IDP_ID"
|
|
1662
|
+
```
|
|
1663
|
+
|
|
1664
|
+
Supply one metadata source. Create defaults-disabled configurations with initial mappings. Keep the last required login/admin mapping. Updates preserve omitted fields and send explicit false, null and empty lists. File-managed configurations are read-only. Disable enforcement before configuration deletion. Deletion preserves users and grants. Use `--force` to skip removal confirmation in automation. Create and update validate metadata and return an error for invalid input.
|
|
1665
|
+
|
|
1666
|
+
SAML mapping output uses `project_roles: null` for unmanaged mappings and `[]` for managed mappings with no assignments. JSON output keeps these states distinct. With role sync enabled, any managed mapping makes SAML replace project bindings for all users at login, including manual grants. Manual project roles are preserved only when every mapping is unmanaged. The SAML API is alpha.
|
|
1667
|
+
|
|
1495
1668
|
### Spaces
|
|
1496
1669
|
|
|
1497
1670
|
Manage spaces:
|
|
@@ -1643,7 +1816,7 @@ Manage evaluation tasks and run-experiment tasks, and trigger on-demand runs:
|
|
|
1643
1816
|
# List tasks (filtered by space, project, dataset, or type)
|
|
1644
1817
|
ax tasks list [--name <substring>] [--space <space>] [--project-id <project-name-or-id>] \
|
|
1645
1818
|
[--dataset-id <dataset-id>] \
|
|
1646
|
-
[--task-type TEMPLATE_EVALUATION|CODE_EVALUATION|RUN_EXPERIMENT] \
|
|
1819
|
+
[--task-type TEMPLATE_EVALUATION|CODE_EVALUATION|DECISION_JUDGE_EVALUATION|RUN_EXPERIMENT] \
|
|
1647
1820
|
[--limit 15] [--cursor <cursor>]
|
|
1648
1821
|
|
|
1649
1822
|
# Get a specific task
|
|
@@ -1674,6 +1847,14 @@ ax tasks create-evaluation \
|
|
|
1674
1847
|
--evaluators '[{"evaluator_id": "<id>"}]' \
|
|
1675
1848
|
--project <project>
|
|
1676
1849
|
|
|
1850
|
+
# Run Decision Judge evaluators on a project's spans (project only; see Decision Judge evaluators)
|
|
1851
|
+
ax tasks create-evaluation \
|
|
1852
|
+
--name "Support Quality" \
|
|
1853
|
+
--task-type DECISION_JUDGE_EVALUATION \
|
|
1854
|
+
--evaluators '[{"evaluator_id": "<decision-judge-evaluator-id>"}]' \
|
|
1855
|
+
--project <project> \
|
|
1856
|
+
--space <space>
|
|
1857
|
+
|
|
1677
1858
|
# ── Run-experiment tasks ──────────────────────────────────────────────────────
|
|
1678
1859
|
|
|
1679
1860
|
# Create a run-experiment task (dispatched via ax tasks create)
|
|
@@ -1763,13 +1944,13 @@ ax tasks wait-for-run <run-id> [--poll-interval 5] [--timeout 600]
|
|
|
1763
1944
|
| Option | Description |
|
|
1764
1945
|
| --- | --- |
|
|
1765
1946
|
| `--name`, `-n` | Task name (must be unique within the space) |
|
|
1766
|
-
| `--task-type` | `template_evaluation`, `code_evaluation`, or `run_experiment` |
|
|
1947
|
+
| `--task-type` | `template_evaluation`, `code_evaluation`, `decision_judge_evaluation`, or `run_experiment` |
|
|
1767
1948
|
| `--evaluators` | JSON array of evaluator configs (evaluation tasks only). Get IDs via `ax evaluators list`. Example: `[{"evaluator_id": "<id>", "query_filter": null, "column_mappings": null}]` |
|
|
1768
1949
|
| `--run-configuration` | JSON object or `@file.json` with the run configuration (`run_experiment` tasks only) |
|
|
1769
|
-
| `--project` | Project name or ID; mutually exclusive with `--dataset` (evaluation tasks only) |
|
|
1950
|
+
| `--project` | Project name or ID; mutually exclusive with `--dataset` (evaluation tasks only). Required for `decision_judge_evaluation` |
|
|
1770
1951
|
| `--space` | Space name or ID (helps resolve project/dataset names) |
|
|
1771
1952
|
| `--dataset` | Dataset name or ID; required for `run_experiment` tasks, mutually exclusive with `--project` for evaluation tasks |
|
|
1772
|
-
| `--experiment-ids` | Comma-separated experiment IDs (evaluation tasks, dataset-based only) |
|
|
1953
|
+
| `--experiment-ids` | Comma-separated experiment IDs (evaluation tasks, dataset-based only; not valid for `decision_judge_evaluation`) |
|
|
1773
1954
|
| `--sampling-rate` | Fraction of data to evaluate (0–1); project evaluation tasks only |
|
|
1774
1955
|
| `--is-continuous` / `--no-continuous` | Run continuously on incoming data (evaluation tasks only) |
|
|
1775
1956
|
| `--query-filter` | Task-level filter applied to all evaluators (evaluation tasks only) |
|
|
@@ -1807,7 +1988,7 @@ ax tasks wait-for-run <run-id> [--poll-interval 5] [--timeout 600]
|
|
|
1807
1988
|
| Option | Description |
|
|
1808
1989
|
| --- | --- |
|
|
1809
1990
|
| `--data-start-time` | ISO 8601 start of the data window; UTC assumed if no offset (evaluation tasks only) |
|
|
1810
|
-
| `--data-end-time` | ISO 8601 end of the data window; UTC assumed if no offset (defaults to now; evaluation tasks only) |
|
|
1991
|
+
| `--data-end-time` | ISO 8601 end of the data window; UTC assumed if no offset (defaults to now when `--data-start-time` is set; evaluation tasks only) |
|
|
1811
1992
|
| `--max-spans` | Maximum spans to evaluate (default: 10 000; evaluation tasks only) |
|
|
1812
1993
|
| `--override-evaluations` | Re-evaluate data that already has labels (evaluation tasks only) |
|
|
1813
1994
|
| `--experiment-ids` | Comma-separated experiment IDs; dataset-based evaluation tasks only |
|
|
@@ -1903,6 +2084,64 @@ ax users reset-password <user-id>
|
|
|
1903
2084
|
|
|
1904
2085
|
> **Note:** `ax users delete` accepts `--id` and/or `--email` flags (both accept comma-separated values or repeated flags). Emails are resolved to user IDs before deletion. Each deletion is attempted independently; the results table reports the outcome (`deleted`, `failed`, `not_found`) per user. Deletion cascades to all organization memberships, space memberships, API keys, and role bindings.
|
|
1905
2086
|
|
|
2087
|
+
### Webhooks
|
|
2088
|
+
|
|
2089
|
+
Deliver prompt and evaluator events to an HTTPS endpoint. A webhook belongs to an organization; a subscription sends one event from one prompt or evaluator to one webhook. `<webhook>` and `--organization` accept a name or an ID; a webhook name needs `--organization` to resolve.
|
|
2090
|
+
|
|
2091
|
+
> **Security note:** For `HMAC_SHA256` webhooks the signing secret is returned once, on `create`. Store it securely immediately — it cannot be retrieved again. `--auth-token` and `--header` values are write-only and never returned.
|
|
2092
|
+
|
|
2093
|
+
```bash
|
|
2094
|
+
# List webhooks
|
|
2095
|
+
ax webhooks list [--organization <org>] [--name <substring>] [--limit 15] [--cursor <cursor>]
|
|
2096
|
+
|
|
2097
|
+
# Get a webhook by name or ID
|
|
2098
|
+
ax webhooks get <webhook> [--organization <org>]
|
|
2099
|
+
|
|
2100
|
+
# Create a BEARER webhook (default auth type); --auth-token is the full Authorization header value
|
|
2101
|
+
ax webhooks create --organization <org> --name "Deploy hook" --url https://example.com/hook \
|
|
2102
|
+
[--auth-token "Bearer <token>"] [--description "..."] [--timeout-ms 30000] \
|
|
2103
|
+
[--header X-Env=prod --header X-Team=evals]
|
|
2104
|
+
|
|
2105
|
+
# Create an HMAC_SHA256 webhook; the signing secret is printed once
|
|
2106
|
+
ax webhooks create --organization <org> --name "Signed hook" --url https://example.com/hook \
|
|
2107
|
+
--auth-type HMAC_SHA256
|
|
2108
|
+
|
|
2109
|
+
# Update a webhook (only the options you pass are sent; at least one required)
|
|
2110
|
+
ax webhooks update <webhook> [--organization <org>] [--name "..."] [--description "..."] \
|
|
2111
|
+
[--url <url>] [--auth-token "..."] [--timeout-ms <ms>] [--header KEY=VALUE ... | --clear-headers]
|
|
2112
|
+
|
|
2113
|
+
# Send a test event and report the endpoint's status code (BEARER webhooks only);
|
|
2114
|
+
# exits 1 when the endpoint does not answer 2xx
|
|
2115
|
+
ax webhooks test <webhook> [--organization <org>]
|
|
2116
|
+
|
|
2117
|
+
# List delivery attempts, most recent first
|
|
2118
|
+
ax webhooks deliveries <webhook> [--organization <org>] [--limit 15] [--cursor <cursor>]
|
|
2119
|
+
|
|
2120
|
+
# Delete a webhook
|
|
2121
|
+
ax webhooks delete <webhook> [--organization <org>] [--force]
|
|
2122
|
+
|
|
2123
|
+
# List subscriptions, all of them or those on one prompt or evaluator
|
|
2124
|
+
ax webhooks subscriptions list [--source-type PROMPT|EVALUATOR --source-id <id>] \
|
|
2125
|
+
[--limit 15] [--cursor <cursor>]
|
|
2126
|
+
|
|
2127
|
+
# Subscribe a webhook to one event on a prompt or evaluator (repeat per event)
|
|
2128
|
+
ax webhooks subscriptions create --webhook <webhook> [--organization <org>] \
|
|
2129
|
+
--source-type PROMPT|EVALUATOR --source-id <id> --event <event>
|
|
2130
|
+
|
|
2131
|
+
# Get or delete a subscription by ID
|
|
2132
|
+
ax webhooks subscriptions get <subscription-id>
|
|
2133
|
+
ax webhooks subscriptions delete <subscription-id> [--force]
|
|
2134
|
+
```
|
|
2135
|
+
|
|
2136
|
+
**Events:**
|
|
2137
|
+
|
|
2138
|
+
| Source | `--event` values |
|
|
2139
|
+
| ----------- | ------------------------------------------------------------------------- |
|
|
2140
|
+
| `PROMPT` | `PROMPT_VERSION_CREATED`, `PROMPT_VERSION_LABELED`, `PROMPT_VERSION_UNLABELED` |
|
|
2141
|
+
| `EVALUATOR` | `EVALUATOR_VERSION_CREATED` |
|
|
2142
|
+
|
|
2143
|
+
> **Note:** `--header` replaces the whole header map on `update`; headers not repeated are removed, and `--clear-headers` removes them all. `--auth-type` cannot be changed after creation and an HMAC signing secret cannot be rotated; create a new webhook instead.
|
|
2144
|
+
|
|
1906
2145
|
## Usage Examples
|
|
1907
2146
|
|
|
1908
2147
|
### Creating a Dataset from a CSV File
|
|
@@ -1945,7 +2184,7 @@ ax datasets list --space sp_abc123 --output json > datasets.json
|
|
|
1945
2184
|
|
|
1946
2185
|
### Exporting Dataset Examples
|
|
1947
2186
|
|
|
1948
|
-
By default, `ax datasets export` writes one REST API page to `examples.json` in a timestamped directory. Use `--limit` to set the maximum page size. Use `--cursor` with the `next_cursor` value from a prior `DatasetsClient.list_examples` response to export a later page. The output contains the examples from that page only.
|
|
2187
|
+
By default, `ax datasets export` writes one REST API page to `examples.json` in a timestamped directory. Use `--filter` with a SQL-like expression over example fields, including annotation fields, to narrow the results. Use `--limit` to set the maximum page size. Use `--cursor` with the `next_cursor` value from a prior `DatasetsClient.list_examples` response to export a later page; keep the same filter when paging. The output contains the examples from that page only. `--filter` cannot be used with `--all`.
|
|
1949
2188
|
|
|
1950
2189
|
```bash
|
|
1951
2190
|
# Export the first page with the SDK's default page size
|
|
@@ -1954,6 +2193,9 @@ ax datasets export ds_xyz789
|
|
|
1954
2193
|
# Export up to 50 examples from the first page
|
|
1955
2194
|
ax datasets export ds_xyz789 --limit 50
|
|
1956
2195
|
|
|
2196
|
+
# Export examples with a matching annotation
|
|
2197
|
+
ax datasets export ds_xyz789 --filter "annotation.Correctness.label = 'Correct'" --limit 50
|
|
2198
|
+
|
|
1957
2199
|
# Export a later page
|
|
1958
2200
|
ax datasets export ds_xyz789 --limit 50 --cursor <next-cursor>
|
|
1959
2201
|
|
|
@@ -2054,6 +2296,25 @@ ax traces list proj_abc123 --filter "latency_ms > 2000" --limit 50 --output trac
|
|
|
2054
2296
|
ax traces list proj_abc123 --output json
|
|
2055
2297
|
```
|
|
2056
2298
|
|
|
2299
|
+
### Subscribing a Webhook to Evaluator Versions
|
|
2300
|
+
|
|
2301
|
+
```bash
|
|
2302
|
+
# 1. Create the webhook. Use --auth-type HMAC_SHA256 instead to get a signing
|
|
2303
|
+
# secret (printed once); HMAC webhooks skip step 3, since test events are BEARER-only.
|
|
2304
|
+
ax webhooks create --organization my-org --name "Evaluator hook" \
|
|
2305
|
+
--url https://example.com/hooks/arize --auth-token "Bearer <token>"
|
|
2306
|
+
|
|
2307
|
+
# 2. Deliver every new version of an evaluator to it
|
|
2308
|
+
ax webhooks subscriptions create --webhook "Evaluator hook" --organization my-org \
|
|
2309
|
+
--source-type EVALUATOR --source-id <evaluator-id> --event EVALUATOR_VERSION_CREATED
|
|
2310
|
+
|
|
2311
|
+
# 3. Check the endpoint responds
|
|
2312
|
+
ax webhooks test "Evaluator hook" --organization my-org
|
|
2313
|
+
|
|
2314
|
+
# 4. Read the delivery attempts once a new evaluator version exists
|
|
2315
|
+
ax webhooks deliveries "Evaluator hook" --organization my-org --output json
|
|
2316
|
+
```
|
|
2317
|
+
|
|
2057
2318
|
### Pagination
|
|
2058
2319
|
|
|
2059
2320
|
List more datasets using pagination:
|
|
@@ -2183,6 +2444,8 @@ ax datasets list --space sp_abc123 --verbose
|
|
|
2183
2444
|
2. Verify network connectivity
|
|
2184
2445
|
3. For on-premise installations, ensure `single_host` is configured correctly
|
|
2185
2446
|
4. For SSL issues, check `security.request_verify` setting (use with caution)
|
|
2447
|
+
5. If a gateway asks for a client certificate, or uses a private CA, set `client_cert`,
|
|
2448
|
+
`client_key`, and `ssl_ca_cert` in the `[security]` section
|
|
2186
2449
|
|
|
2187
2450
|
---
|
|
2188
2451
|
|