-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session-dependent variables not working? #10
Comments
2 problems I am aware of and working on, the first is a wrong assumption about where to store state, and it can be fixed either by using or wait for the next release which solves it ;-) The second one is a carry over from my work on AIML 1 which would do everything in upper case, I then added a post processor ( see the postprocessor.txt file ) which converts everything to Sentence format. I need to remove this and then remember case of the orignal AIM content and let you as bot master choose which case via the and tags |
Oh, sorry, if you were aware of this then I only generated extra clutter 😅 . It's very nice to hear that you're working on this, as the entire project has lots of potential - I'll patiently look forward to all upcoming commits, thank you! |
Awesome work on this, thanks for sharing. My animatronic head is using AIML 1, but this will transform its intelligence once the little bugs are ironed out. Really looking forward to next release :-) |
I'm also looking for the similar thing. I need to store the user details (not only name) in the session. In the middle of the conversation, if the user asks about their detail, it needs to answer. Even after using the for storing name, I'm not able to retrieve the name. Also I want to ask one more question. In the .aiml file, CR tags are used inside the template tag. What is the purpose of this tag? Thanks. |
its a known issue, and is related to session management. I'm working on a fix, and might release an interim shortly that fixes the issue for single instances of the bot, with a further release later that addresses the concept of true multi session management |
In terms of CR tag, not sure what you are referring to, can you give ma an example, is not a tag I implemented or is part of the aiml spec K |
Update on Session Variables So I've revisited the code and looked at what people are seeing, and I think the problem is lack of documentation !! The variables name and firstname are not global variables, they are actually global constants, which are found in the predicates.txt. These are constants set up by the bot master and refer to the name and firstname of the bot and therefore cannot be used So the error message is right and you have 2 choices
I have a number of tests which are checking session management and a nee upgrade which makes this easier to understand is coming soon Hope this clarifies things K |
It looks like you're right.
That leads to another question - why setting name doesn't work, if it does work when rosie is being used in Pandorabots? We probably want to match original Pandorabots engine as much as possible if we want to target AIML 2.0, so it'd be a good idea to investigate this. |
Very true, and opens up an interesting debate. Is pandora actually AIML 2.0 compliant lol. Pandora implements a whole suite of additional tags, some of which are documented, some you find out when you write your own interpreter. Don't get me wrong, I have huge respect for the Pandora guys, they really drive the architecture forward, you just have to hang on and work through the various deviations your find when you build it yourself. My own personal preference is that predicates are constants are such and should remain so, but as you say Pandora allows you could change them, so it's possible to have the following conversation
Part of me quite likes that, so I'm going to had a flag to the parser to state whether predicates are overridable then the bot master can decide if he wants a spaghetti monster! K |
I know, what you did here is nothing less than a masterpiece, and I understand very well that it's not easy to create something that works exactly the same if major part of the specification is in fact undocumented and you have to "guess" how it works. This is why I'm only reporting what I'm able to find, so you can investigate this and decide yourself how you want to deal with this (and if at all). 👍 Overridable constants sound good, I most definitely can find usages of them, not to mention that it fixes the problem, so why not 👍 |
@keiffster No need to think about that CR tag. I'm using MacOS. I opened the .aiml file in TextMate. That CR tag is visible only in the TextMate. When I open the same file in the TextEdit, that tag is not visible. Sorry for the trouble. |
First of all, I'd like to say big thanks for everything you've done in Program Y - it works really awesome and built-in REST server is just marvelous. I was searching for AIML 2.0 interpreter that had some API for interaction, and this is exactly what I needed! ❤️
Now onto actual issue, I noticed that bot is not capable of remembering user-defined variables across a single session:
It looks like it wants to set global property instead of local one.
Also it'd be nice if bot didn't put everything in lower-case - some things like names have specific case that should be kept in-tact - that also affects global properties that are forced-lowercase when constructing a response.
Once again, thanks a lot for everything - this is a really well done project, and I hope it gets only better in future!
The text was updated successfully, but these errors were encountered: