In Dialogflow (ES version), we have an intent for detecting product names and optional quantities. E.g. Do you have Pepsi
or I need 4 apples
. We also have some training examples that contain more than one product. E.g: I need 2 brush and 3 chocolates
.
The general idea is to make the entity extraction generic so that we can query with n
number of products. For example, 1 Pepsi, 2 eggs, 5 ice cream, and 4 tomatoes
will extract the 4 different products correctly.
But we did some manual testing and found that the entity extraction does not generally extend to an arbitrary number of entities. Is that a limitation of Dialogflow or do we need to tune our training data to include more examples with 4/5+ products?
I am looking for suggestions on handling this type of query with an arbitrary amount of entities.
Dialogflow Setup:
ML Threshold: 0.3
Entities:
Product: Some product names as training data. **Automated expansion** and **Fuzzy matching** enabled.
Product-count: @sys.number. All options disabled
Product_Query intent parameters:
+----------------+----------------+------+
| Parameter Name | Entity | Type |
+----------------+----------------+------+
| products | @Products | List |
| product-count | @Product-count | List |
+----------------+----------------+------+