Skip to content

Commit

Permalink
Merge pull request #1608 from Agenta-AI/docs/multiple-variants
Browse files Browse the repository at this point in the history
Add multiple variants for one application
  • Loading branch information
mmabrouk authored May 3, 2024
2 parents 689258f + 933bb92 commit 608b5a0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/advanced_guides/using_agenta_from_cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ The CLI will also display the URL of the endpoint, which can be used to test the
</Step>
</Steps>

## Adding a new configuration
## Adding a multiple variants for one application

In addition to the default configuration specified in the code, you can add more configurations to the application from the CLI.
You can add multiple app variants to a single application using the CLI. This is useful if you want to test different workflows for the same application (i.e. single prompt vs. chain of prompts). To do this, create a new python file containing the new logic, then execute the following command:

Configurations are specified in toml files and always named `<codebase_name>.<configuration_name>`. To add a new configuration, run the following command:
```bash
agenta variant serve <new_filename.py>
@devgenix please continue here
```

In the UI, you'll find the new variant under the same application, labeled `<new_filename>.default`. You can modify the configuration for this variant in the playground and create numerous variants based on it.

0 comments on commit 608b5a0

Please sign in to comment.