Intro
The CLI is a tool for interacting with the Vals.ai platform from the command line. It’s good for simple workflows, such as running a test suite or pulling a run, but for more complex workflows, it’s recommended to use the SDK.Install
Authentication
Make an account at platform.vals.ai and confirm your email. To authenticate with the CLI, go to the Admin page of the console, and create an API key. Next, in your environment, run the following:Overall Usage
The CLI is run as follows:--help
flag at the top and subcommand level for guidance.
Commands must be run from the pip environment the cli was installed in. Commands are split up into subcommands. Currently, there are two subcommands:
vals suite
: relating to creating / updating tests and suitesvals run
: relating to creating and querying runs and run results.vals rag
: Relating to RAG workflows (see the RAG Debug page for more information)
Creating, Modifying, and Viewing Test Suites
You can create a test suite from JSON file. The file is the same format as the one used in the SDK.vals suite create
commands will produce a link to the created test suite.
To update a test suite, the workflow is similar, but you should provide the id of the test suite you want to update.
vals suite pull
command.
vals suite list
command.
Running a Test Suite
To run a test suite, you can use thevals suite run
command.
--wait_for_completion
: Wait for the run to complete before exiting the command.--run-name
: Provide a name for the run for easy identification.--eval-model
: Model to use as the LLM-as-judge.
Viewing and Querying Completed Runs
To list all of the runs you’ve done, you can use thevals run list
command.