Entities are not being read

Rasa Version : 3.0.6 Minimum Compatible Version: 3.0.0 Rasa SDK Version : 3.0.4 Rasa X Version : None Python Version : 3.8.10 Operating System : Windows-10-10.0.18363-SP0

I want to create an application which searches does a google search on the basis of the user input. For example: User: find rasa Computer: rasa - Google Search the computer output is the one given by the created in rasa. I am able to do the same for the example keywords I have given in the nlu.md file but if I search for the keyword which is not in the examples in the nlu intent, the entity is not being picked.

This is my domain file: version: “3.0”

intents:
  - greet
  - goodbye
  - affirm
  - deny
  - mood_great
  - mood_unhappy
  - bot_challenge
  - tell_name
  - out_of_scope
  - my_name:
      use_entities:
        - search


entities:
  - search
slots:
  search:
    type: text
    influence_conversation: true
    mappings:
      - type: from_entity
        entity: search
 

responses:
  utter_greet:
  - text: "Hey! How can I help you"

  utter_cheer_up:
  - text: "Here is something to cheer you up:"
    image: "https://i.imgur.com/nGF1K8f.jpg"

  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_name:
  - text: My name is Innovate Yourself.

  utter_ask_name:
  - text: What is your name?

  utter_ask_number:
  - text: What is your mobile number?

  utter_thanks:
    - text: Thanks for providing the values.

  utter_details_thanks:
    - text: "Your search for \nName: {Name}"

  utter_out_of_scope:
    - text: Sorry, I didn't get what you said. Please rephrase what you said.

actions:
  - action_submit

forms:
  user_details_form:
    required_slots:
      - search

session_config:
  session_expiration_time: 60
  carry_over_slots_to_new_session: true

Hello, @shruti_1234 and welcome to the forum!

Can you format the above code please using </>

Can you even share the nlu.yml file and actions.py file?

Are you following any tutorial for the same?

Did you manage the API for google?

Thanks. Nik

1 Like

My action.py is working perfectly for the keywords in the nlu.md file, for the words outside the entity is showing to be empty. nlu.yml (2.2 KB) Tutorial which I am following: RASA OPEN SOURCE 2.0 | FORMS IN DETAILS - YouTube Yes, the goolge api is working for the keywords already given in the nlu.md file

@shruti_1234 Thanks for sharing, a few tips

Please change the category of the topic to Rasa open source

Please formatting the above code share </>

Its nlu.yml not nlu.md.

What do you mean by </>? Yes, I must have got confused with the tutorial I was following as he was using RASA 2.0 and nlu.md I have changed the category

@shruti_1234 Can you share the actions.py file as requested.

The action.py file consists of confidentiality information. I can not share that

@shruti_1234 its fine no worries, what you saying regarding google search and what you mentioned in the domain and nlu.yml its not matching with code. In nlu.yml in google search are you sure you want to search this?

- intent: my_name
  examples: |
    - find [arb](search)
    - find [enterprise](search)
    - find [architecture](search)
    - find [rasa](search)
    - find [newsletter](search)
    - find [listmonk](search)
    - find [arbschedule](search)
    - find [schedule](search)
    - find [arch](search)
    - find [emerging](search)
    - find [emerge](search)
    - find [innovation](search)
    - find [innovate](search)
    - find [kubernetes](search)
    - find [kube](search)
    - find [igloo](search)

Searching this on google not make any sense to me (I respect your your use case still and trying to help)

Please update your code and nlu file as per the google search please, I am afraid I can’t help you more on this without proper information.

Thanks.

It is a very generic app, the user can search anything

He means the button in the editor: image

I have edited the post for you, but in the future please properly format code using this button to make it more readable :slight_smile:

Alternatively, you can enclose your code using three backticks (```) not apostrophes (‘’')

```
like this
```