You are viewing documentation for our open source project which is maintained by the community. If you want to get started building assistants with Rasa please check out our latest [documentation here](/content/docs/index.html).

## GraphV1Recipe Objects [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/engine/recipes/graph_recipe/#graphv1recipe-objects "Direct link to heading")

### class GraphV1Recipe(Recipe)

Recipe which converts the graph model config to train and predict graph.

#### get_targets [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/engine/recipes/graph_recipe/#get_targets "Direct link to heading")

```python
def get_targets(config: Dict, training_type: TrainingType) -> Tuple[Text, Any]:
```

Return NLU and core targets from config dictionary.

Note that default recipe has `nlu_target` and `core_target` as fixed values of `run_RegexMessageHandler` and `select_prediction` respectively. For graph recipe, target values are customizable. These can be used in validation (default recipe does this validation check) and during execution (all recipes use targets during execution).

#### graph_config_for_recipe [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/engine/recipes/graph_recipe/#graph_config_for_recipe "Direct link to heading")

```python
def graph_config_for_recipe(
    config: Dict,
    cli_parameters: Dict[Text, Any],
    training_type: TrainingType = TrainingType.BOTH,
    is_finetuning: bool = False
) -> GraphModelConfiguration:
```

Converts the default config to graphs (see interface for full docstring).
