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,985 - 5,996 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,985 - 5,996 of 7,766
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?
The Clerk
17 years ago
17 years ago
Well, if I read it right, the book of AI says that the statement
def "(sex)" as "male";
will set (mem-sex) to male if and only if there isn't already a (sex) to begin with. So everyone will be considered male unless they correct the bot. From then on, it will remember it as whatever it already is for a given bot. At least, I'm going to test that theory.
def "(sex)" as "male";
will set (mem-sex) to male if and only if there isn't already a (sex) to begin with. So everyone will be considered male unless they correct the bot. From then on, it will remember it as whatever it already is for a given bot. At least, I'm going to test that theory.
prob123
17 years ago
17 years ago
If I remember it goes to female..Bildgesmythe and Azureon were always recognised as female, until the Professor fixed it.
LarsB
17 years ago
17 years ago
I haven't read the book of AI in a while but doesn't the bot already know what gender the other bot is. If I recall correctly there is a (heshe) plug-in you could use in gossip?
Ulrike
17 years ago
17 years ago
Gender tags work with bots and registered users (if no gender was specified, the default is female)
if male; ................ if female;
Some botmakers are keen to get genders on guests as well, so that's where having a memory for gender comes in.
if male; ................ if female;
Some botmakers are keen to get genders on guests as well, so that's where having a memory for gender comes in.
» More new posts: Doghead's Cosmic Bar