question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Distracting Mapping Errors in `domain.yml` in 3.0 RC1

See original GitHub issue

I’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:open
  • Created 2 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
koaningcommented, Mar 17, 2022

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

1reaction
ancalitacommented, Mar 17, 2022

Exalate commented:

ancalita commented:

it seems in 3.x the stories.yml can interfere with my forms here.

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 with rasa interactive in this specific example, by that I mean you didn’t see any interference? Because no changes were made to stories or rasa interactive <g-emoji class="g-emoji" alias="thinking" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f914.png"> 🤔 </g-emoji>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Domain - Rasa
The domain can be defined as a single YAML file or split across multiple files ... As of 3.0, slot mappings are defined...
Read more >
Code Sample plugin | Docs - TinyMCE
The Code Sample plugin ( codesample ) lets a user insert and embed syntax color highlighted code snippets into the editable area.
Read more >
Change Log for Plesk Obsidian
Find out about changes, additions and updates to Plesk Obsidian on an iteration to iteration basis.
Read more >
ChangeLog - ftp
+ CVE-2022-46878: Memory safety bugs fixed in Firefox 108 and Firefox ESR 102.6 ... tests for api module * use custom id as...
Read more >
Ansible 2.2 Documentation - Read the Docs
some Linux distributions may only have a Python 3 interpreter installed to /usr/bin/python3 by ... YAML also supports dictionaries which map keys to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found