I’d like to be able to put data in external files and do a simple data lookup based upon an input. I’ve been scouring a number of online resources and haven’t yet found a clear way to do this with AIML 1.0.1 running the Python version of the AIML interpretter. Sure, I can hardcode a set of responses in aiml files but if want to be able to retrieve say a thousand or more different values, I’d rather have an external file that stores the data in the form of category-key-value where I’m using the category and the key to determine the right value to retrieve.
Is there an easy way to do this so that the data would look like this:
cat1 entity1 value1
cat1 entity2 value1
cat2 entity1 value1