> ## Documentation Index
> Fetch the complete documentation index at: https://khaos-ml.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Command line

> The khaos command.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. The `khaos` command
lists, downloads and evaluates artifacts. `python -m khaos.cli` is equivalent.

```text theme={null}
khaos info                      list known artifacts
khaos download <artifact>       fetch an artifact's weights
khaos serve [artifact ...]      serve artifacts over HTTP
khaos evaluate <artifact>       evaluate an artifact
```

> [!NOTE]
>
> `info`, `download` and `serve` are implemented. `evaluate` raises
> `NotImplementedError`, and example output for `download` and `evaluate` below
> is a placeholder. See [Serving](https://khaos-ml.mintlify.site/usage/serving.md) for `khaos serve`.

## `khaos info`

Lists every registered artifact and the domain it belongs to.

```bash theme={null}
khaos info
# sec_10k_core                 finance
# sec_8k_events                finance
# sec_form4_insider            finance
# sec_s1_ipo                   finance
# pde_darcy_flow_2d            physics
# pde_navier_stokes_steady_2d  physics
# pde_heat_diffusion_2d        physics
# pde_wave_evolution_2d        physics
# robo_kinematics_sm           robotics
# robo_skill_segmentation      robotics
# robo_failure_detection       robotics
# geo_part_classifier          geometry
# geo_mesh_embedding           geometry
# geo_pointcloud_embedding     geometry
# tab_column_types             tabular
# tab_key_matching             tabular
# tab_entity_dedupe            tabular
# tab_anomaly_scoring          tabular
# tele_sensor_vibration        telemetry
# tele_bio_ecg                 telemetry
# tele_regime_shift            telemetry
# graph_node_embedding         graph
# graph_subgraph_embedding     graph
# graph_fraud_rings            graph
# graph_link_prediction        graph
# chem_mol_embedding           chem
# chem_logp                    chem
# chem_solubility              chem
# chem_toxicity                chem
```

Filter the list with standard shell tools:

```bash theme={null}
khaos info | grep physics
# pde_darcy_flow_2d            physics
# pde_navier_stokes_steady_2d  physics
# pde_heat_diffusion_2d        physics
# pde_wave_evolution_2d        physics
```

## `khaos download`

Fetches an artifact's weights from the Hugging Face Hub into the local cache
(`~/.cache/khaos`). Nothing is sent anywhere; this only pulls files down.

```bash theme={null}
khaos download sec_10k_core
# downloading sec_10k_core from the hub ...
# saved to ~/.cache/khaos/sec_10k_core (84 MB)
```

Download several artifacts in one go:

```bash theme={null}
for a in pde_darcy_flow_2d pde_heat_diffusion_2d; do khaos download $a; done
# saved to ~/.cache/khaos/pde_darcy_flow_2d (41 MB)
# saved to ~/.cache/khaos/pde_heat_diffusion_2d (38 MB)
```

## `khaos evaluate`

Runs an artifact against its benchmark and prints the metrics.

```bash theme={null}
khaos evaluate sec_10k_core
# f1: 0.91
# precision: 0.93
# recall: 0.89
```

```bash theme={null}
khaos evaluate geo_part_classifier
# accuracy: 0.96
# macro f1: 0.94
```

## Errors (placeholder)

```bash theme={null}
khaos download nope
# KeyError: "unknown artifact 'nope'"
```

Integer posuere erat a ante venenatis dapibus posuere velit aliquet.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.