SDK Support:
- TypeScript SDK:
getDependencyGraph()andgetRecreationPlan()are available viaclient.recipes.getTree()is available viaclient.repo.getTree(). - Python SDK:
get_dependency_graph()andget_recreation_plan()are available viaclient.recipes.get_tree()is available viaclient.repo.get_tree().
Understanding Model Lineage
When bakes depend on other bakes (using checkpoints), they form a lineage tree. Recipe endpoints help you:- Visualize dependencies: See how bakes, targets, and prompts connect
- Recreate models: Get step-by-step plans to rebuild complex model hierarchies
- Track evolution: View the complete model lineage tree for a repository
Get Dependency Graph
The dependency graph shows all resources needed to recreate a specific bake, including parent bakes and all transitive dependencies.- Understanding what resources a bake depends on
- Debugging missing dependencies
- Documenting model architecture
- Planning migrations or recreations
Get Recreation Plan
The recreation plan provides a step-by-step, topologically sorted list of actions needed to recreate a bake and all its dependencies.- Recreating a bake in a new repository
- Understanding execution order for complex workflows
- Automating model recreation
- Documentation and training
Get Repository Tree
The repository tree shows the complete model lineage for all bakes in a repository, including parent-child relationships and status.- Visualizing complete model evolution
- Finding all child models derived from a base bake
- Tracking model status across the repository
- Understanding model relationships without specifying a starting point
Example: Recreating a Model
Here’s a complete example of using the recreation plan to recreate a bake:Related Documentation
- API Reference: Recipes - Complete REST API documentation
- Using Baked Models - Load and use your baked models
- Production Patterns - Best practices for production workflows