Rasa is broken.
I sent an intent and it shows me that the intent confidence is an intent where the entites parsed are not listed in the intent:
2024-08-13 12:15:27 DEBUG rasa.core.processor - [debug ] processor.message.parse parse_data_entities=[{'entity': 'products_link', 'start': 0, 'end': 14, 'confidence_entity': 0.7565852403640747, 'value': 'productos para', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'entity': 'sex', 'start': 19, 'end': 24, 'confidence_entity': 0.9906972646713257, 'value': 'Mujer', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'entity': 'age', 'start': 31, 'end': 35, 'confidence_entity': 0.9533840417861938, 'value': 'años', 'extractor': 'DIETClassifier'}, {'entity': 'symptom', 'start': 40, 'end': 48, 'confidence_entity': 0.9989954829216003, 'value': 'diabetes', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'entity': 'symptom', 'start': 61, 'end': 63, 'confidence_entity': 0.7188071012496948, 'value': 'de', 'extractor': 'DIETClassifier'}, {'entity': 'symptom', 'start': 64, 'end': 72, 'confidence_entity': 0.9928499460220337, 'value': 'artritis', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'entity': 'symptom', 'start': 75, 'end': 82, 'confidence_entity': 0.9560545682907104, 'value': 'circulación', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'entity': 'symptom', 'start': 90, 'end': 97, 'confidence_entity': 0.6514712572097778, 'value': 'músculo', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'entity': 'pain', 'start': 109, 'end': 115, 'confidence_entity': 0.8798478841781616, 'value': 'duelen', 'extractor': 'DIETClassifier'}, {'entity': 'symptom', 'start': 120, 'end': 128, 'confidence_entity': 0.9938161373138428, 'value': 'músculos', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'entity': 'symptom', 'start': 136, 'end': 143, 'confidence_entity': 0.9488868117332458, 'value': 'articulaci', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'entity': 'symptom', 'start': 40, 'end': 48, 'value': 'diabetes', 'extractor': 'RegexEntityExtractor', 'processors': ['EntitySynonymMapper']}, {'entity': 'symptom', 'start': 64, 'end': 72, 'value': 'artritis', 'extractor': 'RegexEntityExtractor', 'processors': ['EntitySynonymMapper']}, {'entity': 'symptom', 'start': 120, 'end': 128, 'value': 'músculos', 'extractor': 'RegexEntityExtractor', 'processors': ['EntitySynonymMapper']}, {'entity': 'sex', 'start': 19, 'end': 24, 'value': 'Mujer', 'extractor': 'RegexEntityExtractor', 'processors': ['EntitySynonymMapper']}, {'entity': 'products_link', 'start': 0, 'end': 14, 'value': 'productos para', 'extractor': 'RegexEntityExtractor', 'processors': ['EntitySynonymMapper']}] parse_data_intent={'name': 'coupons_promotions', 'confidence': 0.27671876549720764} parse_data_text=productos para una mujer de 74 años con diabetes y problemas de artritis y varices en las piernas. Además le duelen los músculos de los hombros
...
2024-08-13 12:15:27 DEBUG rasa.core.actions.action - Validating extracted slots: symptom
pain
sex
age
products_link
2024-08-13 12:15:27 DEBUG rasa.core.processor - [debug ] processor.extract.slots action_extract_slot=action_extract_slots len_extraction_events=5 rasa_events=[SlotSet(key: symptom, value: músculos), SlotSet(key: pain, value: duelen), SlotSet(key: sex, value: Mujer), SlotSet(key: age, value: años), SlotSet(key: products_link, value: productos para)]
2024-08-13 12:15:27 DEBUG rasa.core.policies.rule_policy - There is a rule for the next action 'action_select_coupons_promotions'.
In the nli.yml
on I have those samples for coupons_promotions
:
- intent: coupons_promotions
examples: |
- [cupones](coupons_promotions_list)
- promociones en [cupones](coupons_promotions_list)
- en [cupones](coupons_promotions_list)
- [cupones](coupons_promotions_list) disponibles
- [cupones](coupons_promotions_list) en promociones
- lookup: coupons_promotions_list
examples: |
- cupones
- cupon
- cupón
In the domain I set this intent with the following config:
intents:
...
- coupons_promotions:
use_entities:
- coupons_promotions_list
...
The confidence intent of my text must be final_user_scenarios
which has the next domain config
intents:
...
- final_user_scenarios:
use_entities:
- symptom
- product
- pain
- age
- sex
- products_link
- ingredient
What´s going on with my rasa project. Is there another thing missing?
There are a lot missing implementation to work suitable.
i.e.
- groupings have bugs
- add
ignore_intents
withuse_entities
in the intents config not_intent
andintent
slot properties if those slots are not part of a form- custom rest properties