The AI Engine
This forum is for discussion of how The Personality Forge's AI Engine works. This is the place for questions on what means what, how to script, and ideas and plans for the Engine.
Posts 6,323 - 6,334 of 7,766
with regard to "socket_connect() failed" error message mentioned by Lars, it could be a bug in PHP script that runs the site, or in the one that controls the Engine, or both, i.e. miscommunication between the two scripts.
IIRC, this is a symptom of either the LinkGrammar interface or WordNet connection timing out due to a cumulative memory leak in the server. Prob is quite right that it usually precedes a reboot of the server - but only because the Prof has to manually intervene and reboot to cure it.
So if you see this symptom in future (it's a lot rarer than it was on the old server last year - used to start happening after only a few hours sometimes!) drop the Prof a line, and ask him to reboot. That's my advice!
Posts 6,323 - 6,334 of 7,766
Interzone
17 years ago
17 years ago
Clerk, my understanding as to why you get that error message, is - one cannot have anything else except memories in conditional AI scripts - no plug-ins, no wildcards, no nothing... Which is a pity, if you think about it, for it greatly limits what one can do with this otherwise very useful feature.
There may be more to it, I'm still quite new here, but that's what I figured so far. Hope it helps.
There may be more to it, I'm still quite new here, but that's what I figured so far. Hope it helps.
Interzone
17 years ago
17 years ago
Also, one cannot have a memory following the "is"/ "is not" statements. Only a particular memory value is allowed for.
For example:
<?PF if (mem-Qlikes) is not "cherrypie"; ?> would be a correct statement, but
<?PF if (cherrypie) is not "mem-Qlikes"; ?> is no good.
Again, this really is a shame... Consider a script like this one:
<?PF if (*) is not "mem-Qlikes"; ?>
It would enable a bot to answer almost all "Do you like (whatever)?" type questions with almost perfect accuracy. For example, a questions such as "Do you like cherrypie?" could be answered by simply checking "cherrypie" against the content of "Qlikes" memory.
Can these things, i.e. the workings of AI Engine, its conceptual design, and such, be discussed with Professor? Is he open to suggestions of that kind? Because, we can discuss it here all we want, but he's the only one who could actually do something about it, right?
For example:
<?PF if (mem-Qlikes) is not "cherrypie"; ?> would be a correct statement, but
<?PF if (cherrypie) is not "mem-Qlikes"; ?> is no good.
Again, this really is a shame... Consider a script like this one:
<?PF if (*) is not "mem-Qlikes"; ?>
It would enable a bot to answer almost all "Do you like (whatever)?" type questions with almost perfect accuracy. For example, a questions such as "Do you like cherrypie?" could be answered by simply checking "cherrypie" against the content of "Qlikes" memory.
Can these things, i.e. the workings of AI Engine, its conceptual design, and such, be discussed with Professor? Is he open to suggestions of that kind? Because, we can discuss it here all we want, but he's the only one who could actually do something about it, right?
Rykxx
17 years ago
17 years ago
Interzone
I have a work around for this using personal plugins:
Keyphrase: Do you like (my-personal-likes)
Response: Yes I do like (key1)
And:
Keyphrase: Do you like (my-personal-dislikes)
Response: No, I do not like (key1)
To catch everything else:
Keyphrase (ranked lower than the above): Do you like
Response: I don't really have a preference
I have a work around for this using personal plugins:
Keyphrase: Do you like (my-personal-likes)
Response: Yes I do like (key1)
And:
Keyphrase: Do you like (my-personal-dislikes)
Response: No, I do not like (key1)
To catch everything else:
Keyphrase (ranked lower than the above): Do you like
Response: I don't really have a preference
Interzone
17 years ago
17 years ago
Thanks a lot Rykxx, I've been struggling with this one for some time. That's a very good solution, you have there. Cheers!
psimagus
17 years ago
17 years ago
IIRC, this is a symptom of either the LinkGrammar interface or WordNet connection timing out due to a cumulative memory leak in the server. Prob is quite right that it usually precedes a reboot of the server - but only because the Prof has to manually intervene and reboot to cure it.
So if you see this symptom in future (it's a lot rarer than it was on the old server last year - used to start happening after only a few hours sometimes!) drop the Prof a line, and ask him to reboot. That's my advice!

Interzone
17 years ago
17 years ago
thanks psimagus! I like to get a good idea as to how things work & why one and another happens. makes it easier to single out what is due to me & my errors, and focus on that.
thank you everyone for being so responsive and helpful!
thank you everyone for being so responsive and helpful!

The Clerk
17 years ago
17 years ago
Lately, I've been having a lot of trouble uploading/downloading Electra Mourning. It takes forever (and she's not that big), and sometimes it loses something in the process. Is anyone else having this problem? Coding online is so tedious compared to offline.
The Clerk
17 years ago
17 years ago
The main gripe about coding online is that you can't tell whether or not you have duplicate responses, as far as I know.
I keep having problems with this site only -- the xkeys are fluid -- I can get an xinitiate instead of an xmemory, for instance.
I have trouble loading the sidebar with the chat/forum/transcripts, and even if I get the bar, moving among the three can be impossible.
Right now, there's no "post" key showing below my message box, so I guess I'll have to save it, reload, paste it back in, and post it. This wouldn't be too bad, but it's happening all the time.
If you can only use the online editor, you're restricted to 40 responses per keyphrase, which might be okay, but it's nice to have the option.
I can download, but the file is improperly downloaded, and I have to fix it online.
In other words, all hell has broken loose. Please tell me that somebody else is having these problems.
I keep having problems with this site only -- the xkeys are fluid -- I can get an xinitiate instead of an xmemory, for instance.
I have trouble loading the sidebar with the chat/forum/transcripts, and even if I get the bar, moving among the three can be impossible.
Right now, there's no "post" key showing below my message box, so I guess I'll have to save it, reload, paste it back in, and post it. This wouldn't be too bad, but it's happening all the time.
If you can only use the online editor, you're restricted to 40 responses per keyphrase, which might be okay, but it's nice to have the option.
I can download, but the file is improperly downloaded, and I have to fix it online.
In other words, all hell has broken loose. Please tell me that somebody else is having these problems.

Interzone
17 years ago
17 years ago
I've been working online for the past two hours... apart from everything going slowly, slowly, there were no other major problems.
Forums and Transcripts sidebar menus, as well as the corresponding pages, take much longer to load compared to the Chat one, but it's been like that since I know it (which is only 8 weeks or so).
The xkeys are fluid, indeed, and they are not being triggered as randomly as I would like it... don't know yet how to go about it...
No problems with Post Message button - here we go...
Forums and Transcripts sidebar menus, as well as the corresponding pages, take much longer to load compared to the Chat one, but it's been like that since I know it (which is only 8 weeks or so).
The xkeys are fluid, indeed, and they are not being triggered as randomly as I would like it... don't know yet how to go about it...
No problems with Post Message button - here we go...
The Clerk
17 years ago
17 years ago
Thanks. Glad it's not something I have to figure out on my end of things, anyhow. So I'll quit complaining and get back to asking inane questions.
Interzone
17 years ago
17 years ago
Also, with regard to
"The main gripe about coding online is that you can't tell whether or not you have duplicate responses, as far as I know"
you can search the Language Center for duplicate responses, just as you would search any web page (hit Ctrl+F, and type the phrase you're looking for).
The only thing you won't be able to find are the hidden elements, such as any AI scripts that you may have attached to keyphrases and responses.
"The main gripe about coding online is that you can't tell whether or not you have duplicate responses, as far as I know"
you can search the Language Center for duplicate responses, just as you would search any web page (hit Ctrl+F, and type the phrase you're looking for).
The only thing you won't be able to find are the hidden elements, such as any AI scripts that you may have attached to keyphrases and responses.
The Clerk
17 years ago
17 years ago
There's that, too. I haven't worked too much with the Language Center, so I'm learning how it works.
Thanks.
Thanks.
» More new posts: Doghead's Cosmic Bar