I’m using Rasa 3:5.0 in Windows 11
When I execute rasa train
I get the following error:
C:\Users\alvar\AppData\Local\Programs\Python\Python38\lib\site-packages\rasa\shared\utils\io.py:98: UserWarning: Loading domain from 'domain.yml' failed. Using empty domain. Error: 'In the `domain.yml` file, the intent 'proporcionar_nombre' cannot have value of `<class 'NoneType'>`. If you have placed a ':' character after the intent's name without adding any additional parameters to this intent then you would need to remove the ':' character. Please see https://rasa.com/docs/rasa/domain for more information on how to correctly add `intents` in the `domain` and https://rasa.com/docs/rasa/domain#intents for examples on when to use the ':' character after an intent's name.'
C:\Users\alvar\AppData\Local\Programs\Python\Python38\lib\site-packages\rasa\shared\utils\io.py:98: UserWarning: Issue found in 'data\rules.yml':
Found intent 'despedida' in stories which is not part of the domain.
More info at https://rasa.com/docs/rasa/stories
[...]
C:\Users\alvar\AppData\Local\Programs\Python\Python38\lib\site-packages\rasa\shared\utils\io.py:98: UserWarning: Issue found in 'data\stories.yml':
Found intent 'afirmar' in stories which is not part of the domain.
More info at https://rasa.com/docs/rasa/stories
C:\Users\alvar\AppData\Local\Programs\Python\Python38\lib\site-packages\rasa\shared\utils\io.py:98: 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.
Unresolved slots found in stories/rules🚨
Tried to set slots "['nombre', 'asignatura', 'tipo_dato', 'requested_slot']" that are not present inyour domain.
Check whether they need to be added to the domain or whether there is a spelling error.
I’ve already checked in YAMLlint that all my yaml files are correct. In the file domain.yml I have those slots sets:
version: "3.1"
config:
store_entities_as_slots: true
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
entities:
- nombre
- asignatura
- tipo_dato
slots:
nombre:
type: text
mappings:
- type: from_entity
entity: nombre
asignatura:
type: text
influence_conversation: true
mappings:
- type: from_entity
entity: asignatura
tipo_dato:
type: text
influence_conversation: true
mappings:
- type: from_entity
entity: tipo_dato
intents:
- saludo
- despedida
- afirmar
- negar
- stop
- bot_challenge
- proporcionar_nombre:
use_entities:
- nombre
- interes_materias
- informar:
use_entities:
- asignatura
- tipo_dato
forms:
asignatura_tipo_dato_form:
required_slots:
- asignatura
- tipo_dato
actions:
- action_default_fallback
- validate_asignatura_tipo_dato_form
- action_deactivate_loop
responses:
utter_saludo:
- text: "Hola soy un Chatbot creado para informarle sobre las asignaturas. Primero, ¿cómo se llama?"
- text: ¡Hola! Soy un Chatbot especializado en brindar información sobre las asignaturas. Antes de comenzar, ¿me podría decir su nombre?
- text: ¡Saludos! Soy un Chatbot diseñado para ayudarle con información sobre las asignaturas. Antes de empezar, ¿me gustaría saber cómo se llama?
- text: Bienvenido al Chatbot informativo sobre las asignaturas. Antes de continuar, ¿podría proporcionarme su nombre?
- text: ¡Hola! Soy un Chatbot especializado en brindar información sobre las asignaturas. Antes de empezar, ¿podría decirme su nombre?
- text: Saludos. Soy un Chatbot creado para asistirle con información sobre las asignaturas. Antes de continuar, ¿podría proporcionarme su nombre?
utter_asignatura:
- text: "Hola, {nombre} ¿En qué asignatura puedo ayudarte? Puedes elegir entre Teoría del conocimiento, Matemáticas, Física o Tecnología."
- text: ¿En qué asignatura puedo ayudarte? Puedes elegir entre Teoría del conocimiento, Matemáticas, Física o Tecnología."
- text: ¡Hola, {nombre}! ¿En qué asignatura puedo brindarte ayuda? Puedes elegir entre Teoría del conocimiento, Matemáticas, Física o Tecnología.
- text: ¡Saludos! ¿En qué asignatura puedo asistirte? Puedes elegir entre Teoría del conocimiento, Matemáticas, Física o Tecnología.
- text: Hola, {nombre}, ¿necesitas ayuda en alguna asignatura en particular? Puedes elegir entre Teoría del conocimiento, Matemáticas, Física o Tecnología.
- text: ¡Hola! ¿En qué asignatura puedo ofrecerte ayuda? Tienes la opción de elegir entre Teoría del conocimiento, Matemáticas, Física o Tecnología.
- text: Saludos, {nombre}. ¿En qué asignatura puedo brindarte asistencia? Puedes seleccionar entre Teoría del conocimiento, Matemáticas, Física o Tecnología.
utter_despedida:
- text: Adiós, {nombre}. ¡Gracias por usar este chatbot!
- text: Adiós. ¡Gracias por usar este chatbot!
- text: ¡Hasta luego! ¡Gracias por utilizar este chatbot!
- text: Adiós, que tengas un buen día. ¡Gracias por utilizar este chatbot!
- text: Espero haberte sido de ayuda. ¡Adiós y gracias por usar este chatbot!
- text: Gracias {nombre} por utilizar este chatbot. ¡Que tengas un excelente día!
utter_iamabot:
- text: "Soy un bot, potenciado por Rasa."
- text: ¡Soy un bot desarrollado con la tecnología de Rasa!
- text: Soy un bot creado con Rasa, listo para ayudarte.
- text: Soy un bot impulsado por Rasa, aquí para asistirte.
- text: ¡Hola! Soy un bot alimentado por Rasa.
utter_repite:
- text: "No le he entendido, por favor responda a mi cuestión."
- text: Disculpe, no le he entendido. Por favor, responda a mi pregunta.
- text: Lo siento, no he comprendido su mensaje. ¿Podría por favor repetir su consulta?
- text: Perdón, no he entendido su respuesta. Le agradecería que repita su pregunta.
- text: Disculpe, parece que no he entendido correctamente. ¿Podría repetir su cuestión, por favor?
- text: Lamentablemente, no he logrado entender su mensaje. Le ruego que vuelva a plantear su pregunta.
utter_default:
- text: "Lo siento, no lo he entendido. ¿Podría decirlo de otra manera?"
- text: Mis disculpas, no he logrado entenderlo. ¿Podría reformular su pregunta, por favor?
- text: Lo siento, no pude comprender su consulta. ¿Podría expresarlo de otra manera?
- text: Disculpe, no he entendido su mensaje. ¿Podría reformularlo para que pueda ayudarle mejor?
- text: Perdón, no pude captar su mensaje. ¿Podría expresarlo de otra manera, por favor?
- text: Lamentablemente, no he logrado comprenderlo. ¿Podría decirlo de otra forma para que pueda asistirle adecuadamente?
utter_ask_continue:
- text: ¿Estás seguro de que quieres para abortar el formulario?
- text: ¿Estás seguro de que quieres dejar la conversación?
utter_ask_asignatura:
- text: ¿Qué asignatura quieres consultar? De momento puedo informarte sobre matemáticas, física y tecnología.
- text: ¿Qué asignatura le interesa? De momento puedo informarte sobre matemáticas, física y tecnología.
utter_ask_tipo_dato:
- text: ¿Qué tipo de datos quieres que te cuente sobre {asignatura}? Cuento con información de {asignatura}, sobre los profesores y sobre los exámenes.
utter_submit:
- text: De eso sí que te puedo hablar.
- text: Tengo información de ello.
- text: Ok, muy bien.
utter_asignatura_tipo_dato_slots:
- text: Te presento la información de {tipo_dato} de la materia {asignatura}
In rules.yml I don’t have stories replicated:
version: "3.1"
rules:
- rule: Decir adiós cuando el usuario dice adiós
steps:
- intent: despedida
- action: utter_despedida
- rule: Decir que es un bot si el usuario pregunta
steps:
- intent: bot_challenge
- action: utter_iamabot
- rule: Pedir al usuario que repita ante baja confianza en el NLU
steps:
- intent: nlu_fallback
- action: utter_repite
- rule: Activar el formulario
steps:
- or:
- intent: interes_materias
- intent: informar
- action: asignatura_tipo_dato_form
- active_loop: asignatura_tipo_dato_form
- rule: Submit del formulario
condition:
- active_loop: asignatura_tipo_dato_form
steps:
- action: asignatura_tipo_dato_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: utter_submit
- action: utter_asignatura_tipo_dato_slots
- rule: Interrupción del formulario
condition:
- active_loop: asignatura_tipo_dato_form
steps:
- intent: nlu_fallback
- action: action_default_fallback
- action: asignatura_tipo_dato_form
- active_loop: asignatura_tipo_dato_form
- rule: NLU fallback
steps:
- intent: nlu_fallback
- action: action_default_fallback
- action: utter_default
Does anyone know how to fix it or what might be causing the failure?
I didn’t fix it, but to avoid the error I just deleted the
use_entities:
part in- intents
inside domain.yaml. According to the official docs, that’s the right way to use and write theuse_entities:
, therefore I don’t know how and why it is causing that error.