Is it possible to modify a .vocab file and “reload” it at runtime?
The goals is to change the keywords of an entity and make this change effective for the handlers that are using this entity.
I know that there is register_vocabulary() method but if I understood correctly it allows just to add new keywords to an intent handler entity but not to remove a current keyword.
Short answer - I don’t think so.
My understanding is that currently we de-register intents but don’t actually have a method to remove keywords. Previously keywords were shared across Skills, so removing them may have caused issues with another Skill using that keyword. These days though, keywords are registered per Skill, so it now makes sense to clean these up properly. We have flagged to add this but it doesn’t yet exist.
1 Like