The slot continue_form’s initial_value is not being set. Any idea why?
slots:
continue_form:
type: unfeaturized
initial_value: "1"
The slot continue_form’s initial_value is not being set. Any idea why?
slots:
continue_form:
type: unfeaturized
initial_value: "1"
What version of Rasa are you using? Can you please start your bot in debug mode (--debug
) and paste the output here?
Hi Tanja,
We’re suffering from the same problem as well, i.e. setting slots with “initial_value” directives but they do not start with these initial values.
Our RASA versions are:
% rasa --version
Rasa Version : 2.0.2
Rasa SDK Version : 2.1.2
Rasa X Version : 0.34.0
Python Version : 3.6.10
Operating System : Darwin-20.5.0-x86_64-i386-64bit
Few examples, taken from the domain.yml file:
slots:
age:
type: rasa.shared.core.slots.AnySlot
initial_value: 40
auto_fill: false
influence_conversation: false
gender:
type: rasa.shared.core.slots.AnySlot
initial_value: 0
auto_fill: false
influence_conversation: false
height:
type: rasa.shared.core.slots.AnySlot
initial_value: 180
auto_fill: false
influence_conversation: false
Running rasa shell --debug doesn’t provide any related error message or hint for what might got wrong.
% rasa shell --debug
2021-07-21 23:24:23 DEBUG rasa.model - Extracted model to '/var/folders/92/_cm17xq93kvgs8v6s_k4w1y80000gn/T/tmpz0m0m7c8'.
2021-07-21 23:24:24 DEBUG rasa.cli.utils - Parameter 'endpoints' not set. Using default location 'endpoints.yml' instead.
2021-07-21 23:24:24 DEBUG rasa.cli.utils - Parameter 'credentials' not set. Using default location 'credentials.yml' instead.
2021-07-21 23:24:24 DEBUG rasa.model - Extracted model to '/var/folders/92/_cm17xq93kvgs8v6s_k4w1y80000gn/T/tmphvcngbus'.
2021-07-21 23:24:25 INFO root - Connecting to channel 'cmdline' which was specified by the '--connector' argument. Any other channels will be ignored. To connect to all given channels, omit the '--connector' argument.
2021-07-21 23:24:25 DEBUG sanic.root - CORS: Configuring CORS with resources: {'/*': {'origins': [''], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': 'filename', 'supports_credentials': True, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': {'/*': {'origins': ''}}, 'intercept_exceptions': True, 'always_send': True}}
2021-07-21 23:24:25 DEBUG rasa.core.utils - Available web server routes:
/webhooks/rest GET custom_webhook_CmdlineInput.health
/webhooks/rest/webhook POST custom_webhook_CmdlineInput.receive
/ GET hello
2021-07-21 23:24:25 INFO root - Starting Rasa server on http://localhost:5005
2021-07-21 23:24:25 DEBUG rasa.core.utils - Using the default number of Sanic workers (1).
2021-07-21 23:24:25 DEBUG rasa.model - Extracted model to '/var/folders/92/_cm17xq93kvgs8v6s_k4w1y80000gn/T/tmp2emkulud'.
2021-07-21 23:24:26 INFO root - Enabling coroutine debugging. Loop id 140399030140952.
2021-07-21 23:24:27 DEBUG rasa.model - Extracted model to '/var/folders/92/_cm17xq93kvgs8v6s_k4w1y80000gn/T/tmph20e1_6_'.
2021-07-21 23:24:29 DEBUG rasa.utils.tensorflow.models - Loading the model ...
2021-07-21 23:24:29 DEBUG rasa.nlu.classifiers.diet_classifier - Following metrics will be logged during training:
2021-07-21 23:24:29 DEBUG rasa.nlu.classifiers.diet_classifier - t_loss (total loss)
2021-07-21 23:24:29 DEBUG rasa.nlu.classifiers.diet_classifier - i_acc (intent acc)
2021-07-21 23:24:29 DEBUG rasa.nlu.classifiers.diet_classifier - i_loss (intent loss)
2021-07-21 23:24:29 DEBUG rasa.nlu.classifiers.diet_classifier - e_f1 (entity f1)
2021-07-21 23:24:29 DEBUG rasa.nlu.classifiers.diet_classifier - e_loss (entity loss)
2021-07-21 23:24:30 DEBUG rasa.utils.tensorflow.models - Finished loading the model.
2021-07-21 23:24:30 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph...
2021-07-21 23:24:35 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph.
2021-07-21 23:24:35 DEBUG rasa.nlu.classifiers.diet_classifier - Failed to load model for 'ResponseSelector'. Maybe you did not provide enough training data and no model was trained or the path '/var/folders/92/_cm17xq93kvgs8v6s_k4w1y80000gn/T/tmph20e1_6_/nlu' doesn't exist?
2021-07-21 23:24:35 DEBUG rasa.core.tracker_store - Connected to InMemoryTrackerStore.
2021-07-21 23:24:35 DEBUG rasa.core.lock_store - Connected to lock store 'InMemoryLockStore'.
2021-07-21 23:24:35 DEBUG rasa.model - Extracted model to '/var/folders/92/_cm17xq93kvgs8v6s_k4w1y80000gn/T/tmp47_yxish'.
2021-07-21 23:24:35 DEBUG rasa.utils.tensorflow.models - Loading the model ...
2021-07-21 23:24:36 DEBUG rasa.utils.tensorflow.models - Finished loading the model.
2021-07-21 23:24:36 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph...
2021-07-21 23:24:37 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph.
2021-07-21 23:24:37 DEBUG rasa.core.nlg.generator - Instantiated NLG to 'TemplatedNaturalLanguageGenerator'.
2021-07-21 23:24:37 INFO root - Rasa server is up and running.
Bot loaded. Type a message and press enter (use '/stop' to exit):
Your input -> \slots
2021-07-21 23:25:23 DEBUG rasa.core.lock_store - Issuing ticket for conversation 'ef4dd178f41946a5b994a35e2f3118fa'.
2021-07-21 23:25:23 DEBUG rasa.core.lock_store - Acquiring lock for conversation 'ef4dd178f41946a5b994a35e2f3118fa'.
2021-07-21 23:25:23 DEBUG rasa.core.lock_store - Acquired lock for conversation 'ef4dd178f41946a5b994a35e2f3118fa'.
2021-07-21 23:25:23 DEBUG rasa.core.tracker_store - Creating a new tracker for id 'ef4dd178f41946a5b994a35e2f3118fa'.
2021-07-21 23:25:23 DEBUG rasa.core.processor - Starting a new session for conversation ID 'ef4dd178f41946a5b994a35e2f3118fa'.
2021-07-21 23:25:23 DEBUG rasa.core.processor - Action 'action_session_start' ended with events '[<rasa.shared.core.events.SessionStarted object at 0x7fb137939978>, <rasa.shared.core.events.ActionExecuted object at 0x7fb137939940>]'.
2021-07-21 23:25:23 DEBUG rasa.core.processor - Current slot values:
age: None
gender: None
height: None
phone: None
previous_intent: None
requested_slot: None
username: None
weight: None
x: None
y: None
2021-07-21 23:25:24 DEBUG rasa.nlu.classifiers.diet_classifier - There is no trained model for 'ResponseSelector': The component is either not trained or didn't receive enough training data.
Can you please support us?
Thanks ahead,
Newt Team
Is there any update for this problem?