Not able to train core model

Hello everyone, some of the intents in the domain file are not reflected, which results in an error in training the core model , I have attached the screenshot of the error. Please help me solve this .

Thank you

Hi, can you please share your domain.yml code, also make sure it is valid, and has proper values, indentation, etc You can validate your yml by clicking here

Check for duplication. you might used same entity or intent or actions twice.

Hey , Thanks for the reply , I have validated the yaml and it is valid

can you share it here?

version: '2.0'
config:
  store_entities_as_slots: true
session_config:
  session_expiration_time: 60
  carry_over_slots_to_new_session: true
intents:
- greet
- goodbye
- book_city
- book_city
- mode_of_transport_domestic
- mode_of_transport_international
- book_area
- deny
- bot_challenge
- book_options
- mood_great
- mood_unhappy
- affirm
- vacation_trip
- buissiness_trip
- book_internationl_city
- room_types

entities:
- florida
- orlando
- miami
- flight
- deny
- area_travel
- train
- bangalore
- book_options_slot
- hydrabad
- kolkata
- lasvegas
- area_destination
- mode_of_transport
- Food
- room
- travel
- Standard
- Delux
- Luxury
slots:
  area_travel:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  area_destination:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  mode_of_transport:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  slot_ask_again:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  book_options_slot:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  name:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  mobile_number:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  email_ID:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  room_slot:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  city:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  number_of_people:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  number_of_days:
    type: rasa.shared.core.slots.TextSlot
    initial_value: null
    auto_fill: true
    influence_conversation: true
  requested_slot:
    type: rasa.shared.core.slots.UnfeaturizedSlot
    initial_value: null
    auto_fill: true
    influence_conversation: false
responses:
  utter_greet:
  - text: Hey! How are you?
  utter_cheer_up:
  - image: 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
  utter_goodbye:
  - text: Bye
  utter_ask_name:
  - text: please enter your name.
  utter_ask_mobile_number:
  - text: please enter your mobile number.
  utter_ask_email_ID:
  - text: please enter your email id
  utter_imabot:
  - text: Im, a bot powered by rasa
  utter_introduce:
  - text: Hello Im ultra your digital assistant. Welcom to Naily .Happy to help you with bookings and enhacne you tour experience. Please click the buttons below to choose your options with Naily !
  utter_booking_options:
  - buttons:
    - payload: /book_options {{"book_options_slot":"room"}}
      title: Hotel reservation
    - payload: /book_options {{"book_options_slot":"Travel"}}
      title: Travel
    - payload: /book_options {{"book_options_slot":"Food"}}
      title: Food joints
    text: Please select an option
  utter_areaof_transport:
  - buttons:
    - payload: /book_area{{"area_travel":"International"}}
      title: International
    - payload: /book_area {{"area_travel":"Domestic"}}
      title: Domestic
    text: Where would you like to plan your vacation
  utter_mode_of_transport_dom:
  - buttons:
    - payload: /mode_of_transport_domestic{{"mode_of_transport":"train"}}
      title: Train
    - payload: /mode_of_transport_domestic {{"mode_of_transport":"flight"}}
      title: Flight
    text: We provide two options for travel , Which one would you like to choose ?
  utter_domestic_packages:
  - buttons:
    - payload: /book_city{{"area_destination":"Kolkata"}}
      title: Kolkata
    - payload: /book_city{{"area_destination":"Hydrabad"}}
      title: Hydrabad
    - payload: /book_city{{"area_destination":"Bangalore"}}
      title: Bangalore
    text: Please select your destination ?
  utter_international_packages:
  - buttons:
    - payload: /book_city {{"area_destination":"LasVegas"}}
      title: Las Vegas
    - payload: /book_city {{"area_destination":"Miami"}}
      title: Miami
    - payload: /book_city {{"area_destination":"Orlando"}}
      title: Orlando
    text: you will be travelling in a flight to your destination
  utter_Lasvegas_packages:
  - image: https://static.toiimg.com/photo/81585254.cms
    text: |
      The following tourist attractions will be added as a package . 
      1. Kayak Emerald Cave
      2. The Paris Hotel Eiffel Tower
      3. Bellagio Fountain Show and Resort
  utter_orlando_packages:
  - image: https://news.orlando.org/wp-content/uploads/2019/05/20170509_EDC_0034-1650x1100.jpg
    text: |
      The following tourist attractions will be added as a package . 
      1. Walt Disney World
      2. Magic Kingdom
      3. World of Harry Potter
  utter_miami_packages:
  - image: https://i.natgeofe.com/n/5de6e34a-d550-4358-b7ef-4d79a09c680e/aerial-beach-miami-florida.jpg
    text: |
      The following tourist attractions will be added as a package . 
      1. The Miami Beach
      2. Vizcaya Museum 
      3. Everglades National Park
  utter_kolkata_package:
  - image: https://www.orfonline.org/wp-content/uploads/2021/04/Reimagining-Kolkata-1280x720.jpg
    text: |
      The following tourist attractions will be added as a package . 
      1. The Howrah Bridge
      2. The Victoria Memorial
      3. Shasheed Minar
  utter_bangalore_package:
  - image: https://lp-cms-production.imgix.net/2019-06/GettyImages-470628060_medium.jpg
    text: |
      The following tourist attractions will be added as a package . 
      1. Lalbagh Botanical Garden
      2. Bangalore Palace
      3. Bannerghatta National Park
  utter_hydrabad_package:
  - image: https://i.pinimg.com/564x/94/14/c5/9414c56e2bbc38f8a26f52f20a0c631a.jpg
    text: |
      The following tourist attractions will be added as a package . 
      1. The Charminar
      2. The Golkonda Fort
      3. Hussain Sagar Lake
  utter_hotel_room_type:
  - buttons:
    - payload: /room_types {{"room_slot":"Luxury"}}
      title: Luxury
    - payload: /room_types {{"room_slots":"Standard"}}
      title: Standard
    - payload: /room_types {{"room_slots":"Delux"}}
      title: Delux
    text: What type of accomodation do you prefer
  utter_ask_number_of_people:
  - text: How many people are going to accomodate this room ?
  utter_ask_number_of_days:
  - text: how many days are you planning to stay?
  utter_conclusion:
  - text: |
      "Thank you for using our service , Our team will email you the tarrif details shortly ."
       "Thank you" 
       "Have a great day {name}"
  utter_food_domestic:
  - text: 'Click the link to place order for your food https://www.zomato.com/ '
  utter_food_international:
  - text: 'Click the link to place order for your food https://www.ubereats.com/ '
  utter_ask_again:
  - buttons:
    - pyload: /book_options {{"slot_ask_again":"No thanks"}}
      title: No thanks
    - payload: /book_options {{"slot_ask_again":"room"}}
      title: Hotel reservation
    - payload: /book_options {{"slot_ask_again":"Travel"}}
      title: Travel
    - payload: /book_options {{"slot_ask_again":"Food"}}
      title: Food joints
    text: Please select an option
actions:
- action_area_buttons
- action_destination
- utter_international_packages
- utter_domestic_packages
- utter_Lasvegas_packages
- utter_orlando_packages
- utter_miami_packages
- utter_kolkata_package
- utter_bangalore_package
- utter_hydrabad_package
- action_booking_option
- action_transport
- action_ask_again
forms:
  name_forms:
    required_slots:
      email_ID:
      - type: from_text
      mobile_number:
      - type: from_text
      name:
      - type: from_text
  hotel_form:
    required_slots:
      number_of_days:
      - type: from_text
      number_of_people:
      - type: from_text
e2e_actions: []

which rasa version?

Rasa Version : 2.8.15 Minimum Compatible Version: 2.8.9 Rasa SDK Version : 2.8.2 Rasa X Version : 0.39.3 Python Version : 3.8.10 Operating System : Windows-10-10.0.22504-SP0 Python Path : c:\users\hp\desktop\rasa_projects\rasa\scripts\python.exe

inside rasa_projects does it consist of multiple folders for rasa project, or just one? can you share folder structure inside rasa_projects

Hey , Thanks for your help , I figured out the problem of of the intents were repeated

1 Like

yes, just going to say that, book_city was repeated

Im , also facing another error , in the first training log there is a fatal error log and im not sure why it is appearing

can you share the snap of the error logs?

its attached above

sorry i meant below

are you using splited “domain” file or single one?

Single domain file

i think you haven’t saved the file, vs code has option of autosave make sure to enable it

yea , the autosave option is enabled