- Vue d'ensemble (Overview)
- Construction de modèles
- Validation du modèle
- Déploiement du modèle
- Utiliser des modèles
- Développeur
- Questions fréquemment posées
Updating a deployed model
Publish a new IXP model version after a taxonomy or configuration change, and make it reach the automations and environments that use the model.
Changing a taxonomy, an instruction, or the model configuration in your project does not change any model you already deployed. A deployed model is a fixed version. To put a change into use, deploy a new version and make it reach the automations that call the model.
How a new version reaches an automation depends on how the automation calls the model:
| The automation calls | A new version reaches it when |
|---|---|
| A deployment in an Orchestrator folder, as a solution resource | You upgrade the deployment to the new version. |
| The project with the production or staging tag | You add that tag to the new version. |
| The project with a specific version | You edit the automation and select the new version. |
Update a deployment in a folder
A deployment in an Orchestrator folder is fixed to one model version. Editing the project or publishing another package version does not change it.
- Make your changes in the project.
- Validate the changes. For more details, refer to Model validation.
- Deploy the new version with the To folder option, as described in Publishing model versions.
- Upgrade your existing deployment to the new version. Do not create a second deployment under a new name, because your automation would keep calling the first one.
Automations call a deployment by its folder and name, not by model version. Once the deployment is upgraded, every automation in that tenant that calls it uses the new version. You do not change or republish the automation.
Upgrading a deployment changes the model version for every automation that calls it. If more than one automation shares a deployment, validate the new version before you upgrade.
To upgrade a deployment from a script or a pipeline instead of the interface, use the uip ixp deployments upgrade command. For the syntax, refer to uip ixp deployments.
Make the change reach your other environments
An environment that received the model inside a solution runs the model version that was packaged in the solution version deployed there. Upgrading the deployment in the source tenant does not change what that environment runs. The model in a solution deployment cannot be upgraded on its own: it changes together with the solution.
To update it:
- In the source tenant, upgrade the deployment, as described in Update a deployment in a folder.
- Publish a new version of the solution that contains the automation and the model.
- Make the new package version available in the environment:
- If the environment is in another tenant, transport the package there, as described in Managing a solution package.
- If the environment is in the same tenant, a package published to the tenant feed can be deployed to any folder, so no action is needed. A package published to a folder feed can be deployed only within the folder hierarchy of that feed. For more details, refer to Solution feed.
- Change the version of the deployment, using the Change version action. For the steps, refer to Changing the solution version.
- Apply the same version to your production deployment only after validating it in a test deployment. For more details, refer to Validate solution upgrades in a test environment.
Each prompt or taxonomy change that must reach production travels as a new solution version and follows your usual release process for solutions. Plan such changes with that process in mind.
Update a model called by project and tag
A model version deployed with the To project option can carry the production (live) tag or the staging tag. An automation that selects the project together with a tag, and not a version number, calls the deployed version that carries that tag.
- Make your changes in the project.
- Validate the changes. For more details, refer to Model validation.
- Deploy the new version with the To project option, as described in Publishing model versions.
- Select the ellipsis on the new version.
- Select Add production (live) tag or Add staging tag. For more details, refer to Add a production or staging tag.
Every automation that selects that tag uses the new version from then on, without being changed or redeployed. An automation that selects a specific version instead of a tag keeps calling that version until you edit the automation.
Use the staging tag to try a version from a test automation before you add the production tag to it.
Keeping a separate project in each tenant
Some teams avoid a solution release for each prompt adjustment by keeping a separate project in the target tenant. They export the taxonomy from the source project, import it into a project in the target tenant, and reproduce the model configuration there. Instructions are then adjusted directly in that project.
The trade-offs:
- The project in the target tenant is a different project, with its own versions and tags. An automation built against the source project does not call it. In each tenant, the automation has to select that tenant's project and a version or tag that exists there.
- You maintain the same taxonomy in more than one place, and the copies can drift apart.
- The target project does not receive the documents or annotations of the source project, so evaluation history does not carry over.
- Changes made directly in a production project are not validated anywhere first.
For details on what moves and what does not, refer to Moving a project between tenants.
Restauration
How you roll back depends on how the automation calls the model:
- A model promoted inside a solution: Change the deployment back to the earlier solution version, using the Change version action. There is no separate rollback action, so the downgrade appears as Change version in the Deployments tab. For more details, refer to Changing the solution version.
- A model called by project and tag: Add the tag back to the earlier deployed version. For the steps, refer to Managing published versions.
- The project itself: Reset the model configuration and taxonomy to a previously deployed version, with the Revert to model version action. For more details, refer to Managing published versions.