Distracting Mapping Errors in `domain.yml` in 3.0 RC1
See original GitHub issueI’m porting an old rasa project to the 3.0 rc1. At some point, I got the domain.yml
working, so I hit rasa interactive
to train.
python -m rasa interactive
/home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Loading domain from ‘domain.yml’ failed. Using empty domain. Error: ‘You need to specify a value for the key ‘value’ in the slot mapping of type ‘from_intent’ for slot ‘vegetarian’. Please see https://rasa.com/docs/rasa/domain#slots for more information.’ /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/rules.yml’: Found intent ‘goodbye’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/rules.yml’: Found intent ‘bot_challenge’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/rules.yml’: Found intent ‘buy_pizza’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/rules.yml’: Found intent ‘buy_fancy_pizza’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘greet’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘mood_great’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘mood_unhappy’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘affirm’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘deny’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘buy_pizza’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘goodbye’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘buy_fancy_pizza’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘stop’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘bot_challenge’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Loading domain from ‘domain.yml’ failed. Using empty domain. Error: ‘You need to specify a value for the key ‘value’ in the slot mapping of type ‘from_intent’ for slot ‘vegetarian’. Please see https://rasa.com/docs/rasa/domain#slots for more information.’ /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/rules.yml’: Found intent ‘goodbye’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/rules.yml’: Found intent ‘bot_challenge’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/rules.yml’: Found intent ‘buy_pizza’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/rules.yml’: Found intent ‘buy_fancy_pizza’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘greet’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘mood_great’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘mood_unhappy’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘affirm’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘deny’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘buy_pizza’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘goodbye’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘buy_fancy_pizza’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘stop’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Issue found in ‘data/stories.yml’: Found intent ‘bot_challenge’ in stories which is not part of the domain. More info at https://rasa.com/docs/rasa/stories Core training was skipped because no valid domain file was found. Only an NLU-model was created. Please specify a valid domain using the ‘–domain’ argument or check if the provided domain file exists. /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/engine/recipes/recipe.py:35: FutureWarning: From Rasa Open Source 4.0.0 onwards it will be required to specify a recipe in your model configuration. Defaulting to recipe ‘default.v1’. (will be removed in 3.0.0) "From Rasa Open Source 4.0.0 onwards it will be required to specify " /home/vincent/Development/how-to-rasa/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:99: UserWarning: Found data for training policies but no policy was configured. More info at https://rasa.com/docs/rasa/policies 2021-11-08 14:05:42 INFO rasa.engine.training.hooks - Restored component ‘CountVectorsFeaturizer’ from cache. 2021-11-08 14:05:42 INFO rasa.engine.training.hooks - Restored component ‘CountVectorsFeaturizer’ from cache. 2021-11-08 14:05:42 INFO rasa.engine.training.hooks - Restored component ‘DIETClassifier’ from cache. 2021-11-08 14:05:42 INFO rasa.engine.training.hooks - Restored component ‘LexicalSyntacticFeaturizer’ from cache. 2021-11-08 14:05:43 INFO rasa.engine.training.hooks - Restored component ‘RegexFeaturizer’ from cache. Your Rasa model is trained and saved at ‘models/nlu-20211108-140541-agile-data.tar.gz’. Can not run interactive learning on an NLU-only model.
There’s a bunch of warnings, but the core model did not train. Looking at the warnings I figured this was due to the domain.yml
file, but that’s a bit strange.
version: '2.0' config: store_entities_as_slots: true session_config: session_expiration_time: 60 carry_over_slots_to_new_session: true intents: * goodbye: use_entities: true * affirm: use_entities: true * greet: use_entities: true * buy_pizza: use_entities: true * stop: use_entities: true * bot_challenge: use_entities: true * inform: use_entities: true * buy_fancy_pizza: use_entities: true * deny: use_entities: true * mood_great: use_entities: true * mood_unhappy: use_entities: true * request_fancy_form: use_entities: true * request_pizza_form: use_entities: true entities: * pizza_size * pizza_type * vegetarian slots: pizza_size: type: text influence_conversation: true mappings: * type: from_entity entity: pizza_size pizza_type: type: text influence_conversation: true mappings: * type: from_entity entity: pizza_type vegetarian: type: bool influence_conversation: true mappings: * type: from_intent intent: <span class="error">[affirm, deny]</span> responses: utter_greet: * text: Hey! How are you? utter_cheer_up: * image: [https://i.imgur.com/nGF1K8f.jpg](https://i.imgur.com/nGF1K8f.jpg) text: 'Here is something to cheer you up:' utter_did_that_help: * text: Did that help you? utter_happy: * text: Great, carry on! utter_goodbye: * text: Bye utter_iamabot: * text: I am a bot, powered by Rasa. utter_submit: * text: I will now order a pizza for you! utter_pizza_slots: * text: I will order a {pizza_size} {pizza_type} pizza. utter_ask_continue: * text: Are you sure you want to stop the form? utter_ask_pizza_size: * text: What size would you like your pizza to be? utter_ask_pizza_type: * text: What kind of pizza would you like to buy? actions: * action_ask_vegetarian * action_ask_pizza_type * utter_ask_continue * utter_goodbye * utter_greet * utter_iamabot * utter_pizza_slots * utter_submit * validate_fancy_pizza_form * validate_simple_pizza_form forms: simple_pizza_form: required_slots: * pizza_size * pizza_type fancy_pizza_form: required_slots: * pizza_size * pizza_type * vegetarian e2e_actions: []
The warnings mention that mood_great
is not in my domain.yml file while it is.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (11 by maintainers)
Exalate commented:
koaning commented:
@ancalita I’ve made different follow up issues that use RC2 as a starting point
https://github.com/RasaHQ/rasa/issues/10212 https://github.com/RasaHQ/rasa/issues/10213
Exalate commented:
ancalita commented:
I don’t know very well how
rasa interactive
works with the action server to better understand where the issue is coming from. In 2.x,FormValidationAction
worked fine withrasa interactive
in this specific example, by that I mean you didn’t see any interference? Because no changes were made to stories orrasa interactive
<g-emoji class="g-emoji" alias="thinking" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f914.png"> 🤔 </g-emoji>