I’m looking to better understand entities and form entity.
For example, in the domain.yml, you have entities that are extracted by the entity extractor using different language models.
But in forms, you also have “entity”, but these are slots and have slot mapping. This terminology is a bit confusing, and it’s unclear when I have to use entities vs. form entity/slots.
For example, I’m using forms to collect some basic inform to fill out an API request. Here is a portion of my domain.yml
What I’m trying to understand in this case, I think the slot section is defining each entity in my form. Do I even then need the entities?
entities:
- date_of_birth
- coverage_amount
- coverage_length
- gender
- nicotine
- states
forms:
quote_form:
date_of_birth:
- type: from_entity
entity: date_of_birth
gender:
- type: from_entity
entity: gender
nicotine:
- type: from_entity
entity: nicotine
states:
- type: from_entity
entity: states
coverage_amount:
- type: from_entity
entity: coverage_amount
coverage_length:
- type: from_entity
entity: coverage_length
slots:
date_of_birth:
type: text
auto_fill: false
influence_conversation: false
requested_slot:
type: text
influence_conversation: true
coverage_amount:
type: text
auto_fill: false
influence_conversation: true
coverage_length:
type: float
auto_fill: false
influence_conversation: true
max_value: 1.0
min_value: 0.0
gender:
type: text
auto_fill: false
influence_conversation: true
nicotine:
type: text
auto_fill: false
influence_conversation: true
states:
type: text
auto_fill: false
influence_conversation: true