Skip to main content

Installation

Shell command to install the CLI
Example: for linux amd64
Use .exe extension for windows downloads. For example
wget https://downloads.getmaxim.ai/cli/v1/windows/amd64/maxim.exe

Supported OS + ARCH

OSARCH
Linuxamd64
Linux386
Darwinamd64
Darwinarm64
Windowsamd64
Windows386

Env Variables

You will require to set these environment variables before using the CLI.
NameValue
MAXIM_API_KEYAPI Key from Settings

Trigger a test run

Shell command to trigger a test run
ArgumentDescription
-wWorkflow ID or IDs. If you send more than one ID (comma separated), it will create a comparison run.
-dDataset ID
-eEvaluator names. Eg Bias,BLEU
—jsonOutput in JSON (optional)

Programmatic Evaluator Management

Shell command to push an evaluator
ArgumentDescription
—filePath to evaluator code file (.py, .js, .mjs, .cjs)
—workspaceWorkspace ID
—nameEvaluator name
—response-typeResponse type (Boolean, Number, String). Default: Number
—pass-criteriaPass/fail criteria as JSON (e.g. ’{“entryLevel”:{“name”:“score”,“operator”:”>=”,“value”:0.9},“runLevel”:{“name”:“queriesPassed”,“operator”:”>=”,“value”:90}}’)
—optional-variablesComma-separated list of variable names to mark as optional (e.g. ‘context,metadata’)