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 7,182 - 7,193 of 7,766

7 years ago #7182
@Mome Rather thanks, that's handy to know. I'm also struggling to get memories to work. I can get a name remembered properly, but now that I'm trying to do the same for a person's gender it just won't work.

7 years ago #7183
@studdevil

Thanks for telling me - I wouldn't have noticed on my own that I implied you were stupid. I had the impression I was just to lazy or something to take all the trouble to write a kind of tutorial. And that I felt like helping but just not this way.

(I can understand that you feel a bit pissed off. But please understand on your side, that writing even a short tutorial isn't done within a few minutes. And that being impolite and reproachful without real case pisses off those that want to help. Btw, I was about to write a few lines on memory when I read your reproach and decided to sleep at least one night over it before responding.)

-----

There are several discussions about (basic and advanced) memory handling in this very forum and in the Newcomers forum. But as you might have found yourself, it is rather difficult to retrieve them.

Example for a name memory:

-> On the bot's Settings page in the field at "AIScript Initialization" enter

default (name) as "name"

This lets you use (mem-name) right from the beginning; (mem-name) will be replaced by the username/botname of the bot's chat partner unless replaced later (see below).

-> create a keyphrase

my name is (*)

(the parentheses around the asterisk make sure there is actually something there) and create a response

Do you want me to call you (key1)?

-> Under that response create a seek for

yes

(the preprocessor makes sure common synonyms for yes like yup, okay, etc. are passed to the bot as "yes"); and a seek response

Okay, I'll remember you as (prekey1).

-> and as AI Script to that response

rem (prekey1) as only "name"

This has to be expanded for "call me", "I am" and so on, but that is more complicated because someone might give a phone number resp. a job title.

The next time your bot encounters (mem-name) in a response or a keyphrase, it replaces it with the name the chat partner gave him/her/itself. (Am not quite sure about the keyphrase part, have to test it)

7 years ago #7184
That's awesome, thanks. I have been able to get names working thanks to you, I'm now moving onto trying to get gender remembered the same way. I can get my not to remember the gender that is typed without any issues (I am using mem-sex).

Is there a default key for gender? I'm trrying to follow the tutorial for creating gender base answers using if male/female but not had much luck.

7 years ago #7185
What I mean is that I can get it to recognize and give gender specific answer, but only one for each response.

So it will give the right answer for if female, but I'm having to make a separate answer for any other female answer (woman etc)

7 years ago #7186
male/female info is taken from the bot's or human's settings page. It seems there is no need to ask the bot/human for their gender, the AI engine already knows this. So, make gender specific responses and the engine will select from the pool of gender specific ones.

7 years ago #7187
Hmm, wonder why that doesn't work. I have question to determine what gender some one is, but it saves their response as what ever word they enter (male/female/guy/girl) and saving it it as (mem-your-gender)

Maybe there is a simpler way of saving their gender memory. I'm still really new to this, so a lot of what I'm learning is completebtrial and error atm

7 years ago #7188
Just posted an approach in Newcomers, didnt test it tho, but theoretically it should work.

7 years ago #7189
Thanks LarsB. I so much to learn it's not even funny. Has anyone had a chance to try my not yet? She's called Araya. I could use as much feedback as I can get to improve her

7 years ago #7190
Thanks for the help LarsB. I've ended up making this account so I can test both male and female responses on Araya, but so far it's working perfectly. I've also discovered the joy of custom plug in! They are really helping me tidy stuff up, and write better keys. I'm going to start work of Araya V2 and put what I've learnt to the test!

7 years ago #7191
Great, have fun working on both!

7 years ago #7192
Why does my bot say "I have too many gotos in a row." and how can I stop it (or him, her, as the case may be) doing so?
thanks

7 years ago #7193
You probably have goto's pointing at eachother creating a loop.


Posts 7,182 - 7,193 of 7,766

» More new posts: Doghead's Cosmic Bar