Rasa X configuration - Invalid YAML file

I’m trying to save changes to my model configuration but rasa x gives me an error. Yaml

language: en
pipeline: supervised_embeddings
policies:
- name: MemoizationPolicy
- name: KerasPolicy
- name: MappingPolicy
- name: FallbackPolicy
    nlu_threshold: 0.4
    core_threshold: 0.3
    fallback_action_name: action_default_fallback

image

The error comes after I add the fallback policy from here. I had to remove the quote from the text. There is no indication in the GUI of what the issue might be.

It seems that indentations are not correct.

The indentation for each level consists of exactly two space.

Try this.

language: en
pipeline: supervised_embeddings
policies:
  - name: MemoizationPolicy
  - name: KerasPolicy
  - name: MappingPolicy
  - name: FallbackPolicy
    nlu_threshold: 0.4
    core_threshold: 0.3
    fallback_action_name: action_default_fallback

You are right! I obviously haven’t written yaml file in some time.