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,304 - 6,315 of 7,766

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.

17 years ago #6309
It's both, a keyphrase, and an accompanying script, that are important here. Even the exact wording of a question designed to solicit a particular info plays some (limited) role.

As for the script, the solution proposed by prob123 is the best one I have found myself, so far.

Now, the keyphrases... here are two situations that apply in our case:

1.
keyphrase: I live in
script: <?PF rem(postkey) as "livein";>
question: Where do you live?

2.
keyphrase: I am from
script: <?PF rem(postkey) as "from";>
question: Where are you from?

The first one will almost always result in a correct content being captured and stored as a designed memory.

The second one is flawed, as a matter of speaking, and the weakness is indeed embedded in the keyphrase. Considering the wording of the question/ phrase, a number of answers such as: "Why do you ask where I'm from?" "Why do you want to know where I am from?" ... etc... any response that has your keyphrase simply repeated at its end (and god knows, bots love doing it!) will result in "(postkey)" being added, as a content, to "from" memory module.

17 years ago #6310
You can also use (*) the hard wild card.
I am from (*). <?PF rem(key1) as "from";>

the hard wild card has to be "something" so it will avoid the questions like Where am I from.

the soft wild card * will react to some thing or nothing and would react to Where am I from.

17 years ago #6311
Thanks for all the help. I'll keep trying the different methods until something good happens. And yes, I have run into "(postkey)" as being where they're "from" -- that's what I'm trying to get away from. (All the other bots do it, Electra says to me.)

17 years ago #6312
I never use the <?PF rem (xxxxxx) as "zzzzzzz";> format
What I do to store memories is type:

rem (xxxxxx) as "zzzzzzz"; rem (yyyyyy) as "aaaaaaa";

in the AIscriptbox, using (mem-zzzzzzz) and (mem-aaaaaaa) in the bots' responses. It always worked and still works like that for my bots.


17 years ago #6313
With the guests all being 153, it is good to use
<?PF remember "memorycontents" as only "memoryname"; ?>
on some memories too. It makes sure that a memory from a past user isn't used.

17 years ago #6314
LarsB -- yeah, that's what I've been reduced to, but I wanted an interactive bot -- how would I know what Fizzy's favorite color of moon dust is? But I do use the initialization script a lot. Unless maybe I'm missing something, I don't see how I could find out something about a bot in conversation using only initialization.

prob -- good idea. I'll add that right away.

17 years ago #6315
There is only one "default (name) as "name"" in the initialization box on the settings page. What I meant is the AIscriptbox you see when you add a key phrase.
What I understand is that whenever a memory is stored it is stored only for that bot/human, Fizzy's favourite colour of moon dust would not, if you manage to get it stored, be used for other bots/humans in chats.

re the guest 153 memories, i have a lot of memories of these users stored and i love to read transcripts of quest 153 responding to other quest 153 stored responses. That'll teach them, not, but at least I do not have to take counter measures like HANGUP and whatnot.


Posts 6,304 - 6,315 of 7,766

» More new posts: Doghead's Cosmic Bar