Reputation: 503
We want to have an entity to identify a part number in the user's question, and we have around 4k to 5k part numbers, is there any restriction on the number of entities that we can put in Watson Conversation service.
I tried to put 1000 values for an entity, and the Conversation tool started to freeze.
Is there a good way to configure huge number of values in an entity, so that Conversation can identify them.
Upvotes: 0
Views: 918
Reputation: 9359
Entity limits are detailed here:
https://console.bluemix.net/docs/services/conversation/entities.html#entity-limits
Currently as I write it is the following:
Service plan | Entities per workspace | Entity values per workspace | Entity synonyms per workspace
Standard/ Premium | 1000 | 100,000 | 100,000
Lite | 25 | 100,000 | 100,000
--
However if you have fixed structure in your part numbers, you can look for that instead and use your application layer to verify.
For example, if your part number is XYZ00001 then you can do something like the following for the matching condition.
input.text.matches('$.*?[A-Z]{3}\d{5}.*?$')
Then if you wanted to capture the value, you would used the extract
as follows.
{
"context": {
"serial_number": "<? input.text.extract('$.*?([A-Z]{3}\\d{5}).*?$',1) ?>"
},
"output": {
"text": {
"values": [
"Serial is $serial_number"
],
"selection_policy": "sequential"
}
}
}
Upvotes: 2