GitOps flow and patching
Shaped engines work with version control and CI/CD pipelines. Updates are applied incrementally with zero-downtime deployments.
How patching works
When you run shaped update-engine --file engine.yaml (or use the API), Shaped:
- Compares configurations to identify differences
- Only retrains or reindexes components that changed
- Deploys updates without interrupting query serving
- Creates a new engine version while maintaining backward compatibility
What triggers updates
Retraining:
- Changes to
trainingblock (model types, hyperparameters) - Changes to
datablock affecting training data - Changes to interaction data
Reindexing:
- Changes to
indexblock (embeddings, lexical search fields) - Changes to item data affecting embeddings
No retraining/reindexing:
- Changes to
deploymentblock (scaling, resources) - Changes to
queriesblock (saved query definitions) - Metadata-only changes
Best practices
- Store engine configurations in git alongside your application code
- Make small, focused changes to minimize retraining time
- Test changes in a development environment before production
- Monitor training metrics after updates
For more details, see Train a basic engine.