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 5,980 - 5,992 of 7,766
Also, you should have at least one response without a memory or the memories won't be stored.
Is that right? What I think you meant is, if every response to a keyphrase contains script to store a memory, none of them will store? Or do you mean if every response calls up a memory, the keyphrase's AI script to store a memory won't work? I know that the cause of some "there are no valid responses to choose from" messages is the use of (mem-something) in every response when "something" doesn't exist as a memory, but once I'm sure I understand what you just said it might be useful news to me.
Posts 5,980 - 5,992 of 7,766
The Clerk
17 years ago
17 years ago
Thanks. That's what I was doing before, but when I saw (verb-xing), I figured I was doing something wrong.
The Clerk
17 years ago
17 years ago
Okay, dumb question #93:
I cannot for the life of me figure out how to work the xfavorite command. I mean, I get the
My favorite (type) is (specific)
but say I want to ask
"What is your favorite (type)?"
There must be some AI script that plugs in to tell me what type and specific I get from that question, but how?
rem "(type)" as "sometype";
rem "(specific)" as "particular";
I've tinkered with this since day one, and I can't really do anything beyond the standard plug-ins. I want to have scorpions ready if needed, for instance. Some lizards are really all about the scorpions. Then again, dragons aren't so choosy but surely do have favorite somethings.
Just trying to be a good host.
I cannot for the life of me figure out how to work the xfavorite command. I mean, I get the
My favorite (type) is (specific)
but say I want to ask
"What is your favorite (type)?"
There must be some AI script that plugs in to tell me what type and specific I get from that question, but how?
rem "(type)" as "sometype";
rem "(specific)" as "particular";
I've tinkered with this since day one, and I can't really do anything beyond the standard plug-ins. I want to have scorpions ready if needed, for instance. Some lizards are really all about the scorpions. Then again, dragons aren't so choosy but surely do have favorite somethings.
Just trying to be a good host.
Ulrike
17 years ago
17 years ago
I think what you want is something like:
Keyphrase:my favorite (noun) is (*)
AIScript:rem "(key1)" as "sometype"; rem "(key2)" as "particular";
The problem is that those two memories won't be associated with one another. You'll have one set of types and one set of particulars, and if you use them, the AI Engine will grab one of each at random.
I've often wished for multiple blank plugins... multiple blank memories would be good, too.
Keyphrase:
AIScript:
The problem is that those two memories won't be associated with one another. You'll have one set of types and one set of particulars, and if you use them, the AI Engine will grab one of each at random.
I've often wished for multiple blank plugins... multiple blank memories would be good, too.
deleted
17 years ago
17 years ago
Erm, see I'm featured bot an' all but the thing is I'm havin' brain surgery now so I might make even less sense now than before. But Clerk promises. She promises a lot. So talk to me if ya wanna but don't be s'prised if I soun' like a blidderin' idjit. Tanks fer yer patience. God love ya. Hey Sonora!! Hey!! Tell Dane-o I said hi. Goonigh sweeeeeeeeeee... *snore*
LarsB
17 years ago
17 years ago
A more flexible solution would be:
Keyphrase: my favourite
AIScript: rem (postkey) as "myfavourite"; rem (ssub) as "sometype"; rem (ob) as "particular";
Now you have 3 memories that you can use in your responses:
Your favourite (mem-myfavourite), wow! (if you need the association Ulrike mentioned.)
Or:
How could a (mem-sometype) be someone's favourite?
Etcetera
Hope this helps.
Keyphrase: my favourite
AIScript: rem (postkey) as "myfavourite"; rem (ssub) as "sometype"; rem (ob) as "particular";
Now you have 3 memories that you can use in your responses:
Your favourite (mem-myfavourite), wow! (if you need the association Ulrike mentioned.)
Or:
How could a (mem-sometype) be someone's favourite?
Etcetera
Hope this helps.
The Clerk
17 years ago
17 years ago
Thanks -- I'm just attacking Young Hamlet's favorites site now. He doesn't have too many favorites. Lots of dislikes, though.
Really, thanks LarsB and Ulrike (I didn't know you were the Danemaster until yesterday; sorry)
Really, thanks LarsB and Ulrike (I didn't know you were the Danemaster until yesterday; sorry)
Ulrike
17 years ago
17 years ago
Eh, no worries. I haven't worked on him in quite a while. 
Btw, the AI Engine will spell "correct" (or uncorrect if you're British)favourite to favorite.

Btw, the AI Engine will spell "correct" (or uncorrect if you're British)
LarsB
17 years ago
17 years ago
Also, you should have at least one response without a memory or the memories won't be stored.
ezzer
17 years ago
17 years ago
Is that right? What I think you meant is, if every response to a keyphrase contains script to store a memory, none of them will store? Or do you mean if every response calls up a memory, the keyphrase's AI script to store a memory won't work? I know that the cause of some "there are no valid responses to choose from" messages is the use of (mem-something) in every response when "something" doesn't exist as a memory, but once I'm sure I understand what you just said it might be useful news to me.
The Clerk
17 years ago
17 years ago
Yeah, I'm puzzling over how I want to deal with the non-sequiturs (at least from my intent). I rather like Sonora's "You were SUPPOSED to say," but it wouldn't be cricket to do her exact thing there. Still, it's a thought . . Thanks for your input, too, ezzer. I seem to have figured out how to get everybody's name: just put
def "(name)" as "nickname";
in the initialization part, and then they can correct you by saying "My name is Petula," "Please call me "Julie," etc. I guess I could do the same with gender, but that's going to annoy half my audience.
My imagination is pretty good with the bots (I think); it's the details that worry me. I was brought up on much earlier languages and even types of programming -- C, Pascal, Fortran, machine language, etc.
def "(name)" as "nickname";
in the initialization part, and then they can correct you by saying "My name is Petula," "Please call me "Julie," etc. I guess I could do the same with gender, but that's going to annoy half my audience.
My imagination is pretty good with the bots (I think); it's the details that worry me. I was brought up on much earlier languages and even types of programming -- C, Pascal, Fortran, machine language, etc.
LarsB
17 years ago
17 years ago
Or do you mean if every response calls up a memory, the keyphrase's AI script to store a memory won't work?
Yes, an xnone or xnonsense response will come up instead.
What I think you meant is, if every response to a keyphrase contains script to store a memory, none of them will store?
In a response I've never tried to store a memory using script and I don't think it'll work as the bot has already responded => what information would you want to store - parts of your bot's response or parts of the response of the other bot/human?
Yes, an xnone or xnonsense response will come up instead.
What I think you meant is, if every response to a keyphrase contains script to store a memory, none of them will store?
In a response I've never tried to store a memory using script and I don't think it'll work as the bot has already responded => what information would you want to store - parts of your bot's response or parts of the response of the other bot/human?
» More new posts: Doghead's Cosmic Bar