For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLI

The scorable CLI is a powerful tool for interacting with the Scorable API, particularly for managing and executing Judges. This guide provides a brief overview of its capabilities.

Installation

To install the CLI, run the following command:

curl -sSL https://scorable.ai/cli/install.sh | sh

Authentication

The CLI requires an API key to be set as an environment variable.

export SCORABLE_API_KEY=$MY_SCORABLE_API_KEY

Judge Management

The judge command is the primary entry point for all judge-related operations.

Generating a Judge

Generate a complete judge from a plain-language description. Scorable picks the right evaluators automatically.

scorable judge generate \
  --intent "I am building a customer support chatbot. Evaluate that responses are helpful, accurate, and follow our refund policy."

Attach a policy document to make the generated evaluators check compliance against it:

Key options: --file (path to PDF/PNG/JPG — uploads and attaches), --file-id (UUID of an already-uploaded file), --stage, --extra-contexts (JSON), --reasoning-effort, --judge-id (regenerate an existing judge), --overwrite

Creating a Judge

You can create a new judge using the create subcommand.

Arguments:

  • --name: The name of the judge (required).

  • --intent: The intent or purpose of the judge (required).

  • --stage: The stage of the judge.

  • --evaluator-references: A JSON string of evaluator references. Example: [{"id": "<faithfulness_uuid>"}, {"id": "<truthfulness_uuid>"}]

Listing Judges

To see a list of all available judges, use the list subcommand.

You can filter the list using various options like --search and --name.

Running a Judge

The execute subcommand allows you to run a judge with specific inputs.

Custom Model Management

Register a custom or self-hosted LLM, then reference it from evaluators and judges. See also Connect a model.

Creating a model

Key options: --name (required), --model, --url (custom endpoint), --key (provider API key; - reads from stdin), --max-token-count, --max-output-token-count.

Listing, inspecting, updating, deleting

Last updated