Resolving ambiguity - Approximate match should also be considered as value

Hi @harinder.bommakanti, @Subrahmanyam,

For entity node, synonyms value is checked for exact match from user utterance.
Approximate match is not considered as value for entity.

Is it possible to implement changes in Bot to also consider approximate match as entity value?

Regards,
Neha Sheikh

Neha,
The system already does support approximate match for a list of values entity, but it all depends on how the synonyms are specified.

If each synonym is enclosed in double quotes then that is taken as an exact match - all words must be present and in that order.
But if a synonym is not quoted then the system will allow the user to be vague or less exact in their response. If the system judges that to be a clear indication then that choice is taken, or if it is ambiguous then a limited set of choices will be represented.

Also see Facing ambiguity issue with List of Values entity type

1 Like

Andy,

Can you please give sample for

  1. synonyms enclosed in double quotes and
  2. synonyms without quotes

Thanks,
Neha Sheikh

Your example in Multiple Value Issue - Entity node with is multi item true not behaving as expected is an example of synonyms without quotes.

It can look confusing in JSON because strings have to be inside quotes, but if you want to double quote the synonym then those strings in the array have to have explicitly escaped quotes in the string, e.g. ““these words are treated as one””

1 Like

I will try for synonyms without quotes and get back to you.

Thanks,
Neha Sheikh