notice
This is unreleased documentation for Rasa Documentation Main/Unreleased version.
For the latest released documentation, see the latest version (3.x).
rasa.engine.recipes.recipe
InvalidRecipeException Objects
Exception in case the specified recipe is invalid.
Recipe Objects
Base class for Recipes which convert configs to graph schemas.
recipe_for_name
Returns Recipe based on an optional recipe identifier.
Arguments:
name- The identifier which is used to select a certainRecipe. IfNonethe default recipe will be used.
Returns:
A recipe which can be used to convert a given config to train and predict graph schemas.
auto_configure
Adds missing options with defaults and dumps the configuration.
Override in child classes if this functionality is needed, each recipe will have different auto configuration values.
graph_config_for_recipe
Converts a config to a graph compatible model configuration.
Arguments:
config- The config which theRecipeis supposed to convert.cli_parameters- Potential CLI params which should be interpolated into the components configs.training_type- The current training type. Can be used to omit / add certain parts of the graphs.is_finetuning- IfTruethen the components should load themselves from trained version of themselves instead of usingcreateto start from scratch.
Returns:
The model configuration which enables to run the model as a graph for training and prediction.
