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,297 - 6,308 of 7,766

17 years ago #6297
Okay, now that I've just posted, I got my stupid bot to load. So the Forge is cranky today. Now my only question is why she is saying this LIE that the has no responses on xinitiates.

17 years ago #6298
For the no valid responses check your xnones, Sometimes my bots don't use the hello, or initiate and go to the stupid xnones, from a previous conversation.

Try erasing the check from the once bot and then putting it back in. I have times when I have to retype the keyphrase etc to get it to stick

try Keyphrase I am from, with the AI script <?PF remember (postkey) as "from" ?>

17 years ago #6299
Thanks, prob. This should be carved into my brain right now, but between my hiatus after surgery and the drugs before this one (I'm not just lazy) I get a little fuzzy and don't want to plow through the BOAI -- sometimes it's just not there.

17 years ago #6300
I am not sure if this is related to what The Clerk describes but in Debug testing some keyphrases I saw the following error message after sending text that should have been picked up by the AI engine:

socket_connect() failed.
Reason: () Unknown error: 0
Raw Output: ''

After sending the same text again it was processed without any problem and the engine responded in one of the ways I intended.

17 years ago #6301
That happens in chats when I watch them live. Don't know what to make of it.

17 years ago #6302
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.

the Book of AI says the Personality Forge, version 2, runs on PHP... being new here, i don't know when exactly did the PF move to PHP environment. as far as the PHP itself goes, here is the 2003 status report on the "socket_connect" function:

"This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk."

i'm myself not a PHP programmer, or for that matter, a computer programmer at all, and i don't know what's the current status on this function, has it been debugged, standardized, etc... also, i don't know whether the AI Engine has been regularly updated in this context or not. still, my gut feeling is that our problem, and the solution to it, lay in the AI Engine domain.

does anyone other than Professor has an access to it, and needed knowledge of PHP? because there are more of these little bugs, twists and quirks, that i believe are due to the Engine and scripts that run the whole.

17 years ago #6303
The problem usually happens just before the Forge resets. I wouldn't worry about it.

17 years ago #6304
Okay, things are not working out as expected with my memories. Say I ask someone where he's from. The book of AI would seem to say I should write:

<?PF rem (postkey) as only "from"; ?>

and then be able to access it as (mem-from). But it winds up telling my bot that the being is from "(postkey)"

I'm reading the Book of AI. I thought I'd memorized it but there's new, unrelated stuff in it now.

HOW do I save memories? Is there a difference if you get a bot to say:

"I live in Salisbury"

vs. my bot saying

"Where do you live?"

17 years ago #6305
I've also tried <?PF rem "(from)" as "from"; ?>, <?PF rem (from) as "from"; ?> and probably a few others.

17 years ago #6306
Hey, I trudged through this forum and somewhere in November found Rykxx' lost (to me) how-to on this. I think I have it. You know you'll hear from me if I haven't.

17 years ago #6307
I have a key phrase "I live in" the memory is <?PF rem(postkey) as "livein";> I bring it up as (mem-livein) I think it is using (from) and not a (key) or (postkey) that is the problem.

17 years ago #6308
Oh. Thanks. That's weird, though, because it works in initialization (the way I'm doing it). I've tried the (key) and (postkey) approach (albeit with a space between "rem" and "(", so that might be my problem), both with and without quotation marks. I cleaned things up per Rykxx' November post, so I'll see if I get anywhere with that.


Posts 6,297 - 6,308 of 7,766

» More new posts: Doghead's Cosmic Bar