Spaces with an Enterprise plan have the option of creating multiple, parallel branches at once on the same Project from the same prompt.
Parallel branches allows you to test the results of multiple AI models, choosing which one develops the best results.
To create branches and pull requests from your Project, you must first ensure your Project has enabled them.
To enable branching and pull requests for your Project:
- On your main Projects page, click the three-dot menu for your Project.
- Choose Project Settings.
- Go to the Advanced tab.
- Under Commit Mode, choose the Pull Requests option.
- Click Save.
You should now see that you can create a new branch. Use the + New Branch whenever you create new features.
To create multiple parallel branches:
- Click the + New Branch button. This can be done from your Projects page or within the Visual Editor.
- Enter your prompt.
- Click the dropdown with a multiplier, such as 1x.
- Adjust the number of branches to create as well as the AI models to use. Each branch can use a different AI model.
- Submit your prompt.
Your prompt is used to create each branch, using the specified AI model. Use the branch navigator within the Visual Editor to switch between branches.
In the video below, several branches are created from a single prompt that requests a filter feature. Each model develops its own unique approach to designing a solution.