lf export

Export entities or evaluation results.

Usage
lf export [OPTIONS] COMMAND [ARGS]...
Subcommands
app Export the AI app with the provided key to a file or print as JSON.
model Export the model with the provided key to a file or print as JSON.
model-adapter Export the model adapter with the provided key to a file or print as JSON.
dataset Export the dataset with the provided key (including the data contents) to a file or print as JSON.
dataset-generator Export the dataset generator with the provided key to a file or print as JSON.
task Export the task with the provided key to a file or print as JSON.
eval Export the evaluation results in a folder.
policies Exports policies to a YAML file or prints them as JSON.
risk-scorer Export the risk scorer with the provided key to a file or print as JSON.
risk-policies Export all risk policies to a YAML file or print as JSON.

lf export app

Export the AI app with the provided key to a file or print as JSON.

Usage
lf export app [OPTIONS] KEY
Options
Name Type Description Default
-o, --output path Path to output YAML file. Omit to print as JSON to stdout.

lf export model

Export the model with the provided key to a file or print as JSON.

Usage
lf export model [OPTIONS] KEY
Options
Name Type Description Default
-o, --output path Path to output YAML file. Omit to print as JSON to stdout.

lf export model-adapter

Export the model adapter with the provided key to a file or print as JSON.

Usage
lf export model-adapter [OPTIONS] KEY
Options
Name Type Description Default
-o, --output path Path to output YAML file. Omit to print as JSON to stdout.

lf export dataset

Export the dataset with the provided key (including the data contents) to a file or print as JSON.

Usage
lf export dataset [OPTIONS] KEY
Options
Name Type Description Default
-o, --output path Path to output YAML file. Omit to print as JSON to stdout.
-do, --data-output path Path to output JSONL or CSV file (determined from the extension). Omit to print the first 10 samples to stdout.
-lo, --log-output path Path to output a JSON file with dataset generation logs. Only applicable for datasets generated via a dataset generator.

lf export dataset-generator

Export the dataset generator with the provided key to a file or print as JSON.

Usage
lf export dataset-generator [OPTIONS] KEY
Options
Name Type Description Default
-o, --output path Path to output YAML file. Omit to print as JSON to stdout.

lf export task

Export the task with the provided key to a file or print as JSON.

Usage
lf export task [OPTIONS] KEY
Options
Name Type Description Default
-o, --output path Path to output YAML file. Omit to print as JSON to stdout.

lf export eval

Export the evaluation results in a folder.

Usage
lf export eval [OPTIONS]
Options
Name Type Description Default
--id text ID of the evaluation for which the results will be downloaded.
--output, -o path Target folder path.
--link-logs boolean Whether to link task result logs in the downloaded configuration. False
--with-secrets boolean Whether to include resolved secret values in the exported configuration. Requires admin permissions. False

lf export policies

Exports policies to a YAML file or prints them as JSON.

Usage
lf export policies [OPTIONS]
Options
Name Type Description Default
-o, --output path Path to output YAML file. Omit to print as JSON to stdout.

lf export risk-scorer

Export the risk scorer with the provided key to a file or print as JSON.

Usage
lf export risk-scorer [OPTIONS] KEY
Options
Name Type Description Default
-o, --output path Path to output YAML file. Omit to print as JSON to stdout.

lf export risk-policies

Export all risk policies to a YAML file or print as JSON.

Usage
lf export risk-policies [OPTIONS]
Options
Name Type Description Default
-o, --output path Path to output YAML file. Omit to print as JSON to stdout.