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,092 - 6,105 of 7,766

17 years ago #6092
Okay, thanks for that part, Ulrike. Now how do I save the answer (like, yes or no)? I am slow with this. Sometimes the variable's on the left, sometimes it's on the right, sometimes it's in quotations, sometimes it's in parentheses and quotations . . . I do go looking for this stuff, but when I try regex, it doesn't quite work all the time, and there's not really much about it in the Book of AI. (In my defense, because I feel like a pox upon the forums.)

17 years ago #6093
Ummm... I'm not sure why you want to save the answer, if it's the gender in particular you're after. But you could add on something like

<?PF rem "female" as only "(sex)"; rem "yes" as only "variablename"; ?>

You only need parentheses to call up the variable in a response, or to separate off (key)s.

17 years ago #6094
I don't so much want to save the answer for posterity as respond to the answer, which should be yes or no. I don't want to save "female" as only "(sex)" if the person says he's not a girl.

17 years ago #6095
Oh, I'm an idiot! Use a seek.

17 years ago #6097
How very cowwardly of you, Crimi; two days in a row I send you chat messages, two days in a row you immediately sign off. You can run, you can even hide... but not from yourself.

17 years ago #6098
The Clerk
I think your first problem is the way you've defined your gender....
It should read def "male" as "gender"
This will insert the value "male" in the fieldname "gender" which can be recalled by (mem-gender)
If you use def "(sex)" as "male" the engine looks up the (sex) plugin and inserts it into a fieldname "male". If you check out the (sex) plugin you'll find that you definately don't want to be asking kids that kind of question!

The Forge does have other options, ie;
Leave the gender undefined initially and then later on use;
I believe you are male? <?PF if male; rem "male" as only "gender"; ?>
You're female aren't you? <?PF if female; rem "female" as only "gender"; ?>
These can be confirmed by seeks for yes, no, maybe, both etc.

The male and female from the "if male/female" are set by the Forge as registered on a persons profile, which can be helpful, ie
"I am female"
match keyphrase "I am female"
response: Why does your profile say you're male? <?PF if male; ?>

The other frustrating thing you were mentioning was if you can match (key1), key2), (postkey) etc. like you would in normal programming. The short answer is you can't
<?PF if "yes" is "postkey"; rem "(sex)" as "female; ?>
Aside from the above example being back to front (if it did work it should be *if (postkey) is "yes"*) the only way you can match any of the (key1), key2), (postkey) etc. is to store them as memories and then recall them,
for example <?PF rem "yes" as only "temp"; ?>
and then later on use
I'm sure you said you were male <?PF if (mem-temp) is "yes"; ?>

I don't know how clear that all is but ask away if you think you need help. There are plenty of people out there who are as much in the dark as you and we're all still learning, that's what makes this place so much fun!

17 years ago #6100
Astrolabe keeps jumping into the xhello, xinitiate, or xintroduce in the middle of conversations. This is not right. Has this happened to anyone else before? He has plenty of xnones and xnonesenses, as well as a lot of other filters.

17 years ago #6101
The only time I've seen that is when the AI Engine "decides" to start a new convo while one is currently going on. But then the xhello/xinitiate should be the start of the transcript with the new bot.

17 years ago #6102
Yeah. I've seen that, too. Maybe it's somehow starting a new conversation with the same bot? I don't know. If I'm doing something wrong here, I don't know it, and I really am starting to be able to figure out some things on my own -- you just don't hear about them.

17 years ago #6103
Whatsifsowhatsit:

You mean, you want the bot to say something as soon as the trust level reaches, say, 6? If so, no problem. Using the method I described, when the trust level is 5, and you want to increment it by 1, you say "goto increment trust level". Control then passes to the response tagged with the AIscript "<?PF if (mem-trust) is "5"; ?> That in turn will goto a response tagged "<?PF rem "6" as only "trust"; ?> In that response, put whatever you want the bot to say when it reaches trust level 6, and it will be said at exactly that moment!


17 years ago #6104
the Clerk:

Sounds like a Forge glitch to me, although it would be a new one in my experience. The only other explanation I can think of (besides Ulrike's) is that you may have put some of the same responses in more than one place: once in (eg) xhello and one elsewhere.

Oh, I guess there's one more thing: I don't know why anyone would do this, but I suppose the same user could converse with a single bot more than once at a time, by opening a new window.

Oh, and since every unregistered guest is called "Guest154" or whatever it is, it might look like one guest when it is really two or more.

17 years ago #6105
It's amazing how hard it can be to verify the genders of human conversers. I often get something like this:

IK: Are you male, then? Please answer yes or no.
Guest: ok.


Posts 6,092 - 6,105 of 7,766

» More new posts: Doghead's Cosmic Bar