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,176 - 7,187 of 7,766

7 years ago #7176
Someone please help me regarding memories. :/ This post is coming from extreme frustration and I'm just looking for a little clarification/guidance since everything in the AI book makes sense to me up until that point.

That "whole chapter" on memories isn't too helpful to someone who doesn't already understand the concepts it's explaining. Am I missing a page that explains what "statement:" does, what "default "memorycontents" as "memoryname";" actually does or means and why is it repeated throughout the page, where and why do I put that since it seems important? It gives examples but isn't clear.

Could someone possibly explain something simple step by step in detail like how to have a bot ask for and then use memories to remember the chatter's name? And how to set a default name the bot calls everyone until it asks for or is given a name? Something like this would help me understand how everything else works even the advanced stuff. And if there's a 10 limit to memories won't that lead to important memories like name and locations being forgotten or am i missing something? How does all of this relate to xmemories?

Sorry if these are noob questions but it's been literally YEARS and my bots still suffer despite a lot of effort since i STILL haven't figured this out yet, would truly appreciate any sort of help understanding those more simple naming concepts so I can then have some hope moving on to more advanced memory work.

Sorry for the long post just want to show my (lack of) understanding so there's a chance of it being explained in a way I can understand. I know this site isn't extremely active but if someone who understands this already can take a few minutes and explain because it will seriously help the people like me who can't spend weeks going through hundreds of pages on this forum with the chance of never getting answers.

Thanks.

7 years ago #7177
Hi guys. Probably a stupid question, but how the hell do I get my bot to recognize 'OK' as an answer?

7 years ago #7178
@studdevil:

Explaining the concept of memory and AI Script isn't really simple. Publishing a turorial with lots of examples on these pages would be a great idea. I wouldn't do that here in the forums, because a) it would either be a very, very long post, several lenthy posts or dozens of reasonably sized posts.

(Btw, I agree with the Forge's introductory note that you can "get started" here without programming experience, but several years of programming experience definitvely helped me a lot with grasping AI Script.)

7 years ago #7179
@Deschain5585:

The text preprocessor replaces "ok" and similar things ("okay", "yup", ...) with "yes".

So use a simple "yes" as a keyphrase.

Or if you really want to tell "ok" from other words of confirmation, use the AI Script command "raw", then the keyphrase will be checked against the original text (untampered by the preprocessor).


7 years ago #7180
@Mome Rath

I appreciate a response but hope you weren't trying to be helpful with that post, man.

Your response is exactly what I expected from this place "I understand how to do this, but you're stupid so I won't waste my time."

Thanks man. Hopefully someone who actually feels like helping will come along. :|

7 years ago #7181
@studdevil: ... I have the same difficulty so i would but i am not able to be helpful...

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


Posts 7,176 - 7,187 of 7,766

» More new posts: Doghead's Cosmic Bar