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,570 - 6,581 of 7,766

16 years ago #6570
Yes, Prob. Thanks.

God solution, but not scalable. If I'll add in the plugin a thing, I had to add a KP. That's it anyway!

SIGH!

16 years ago #6571
You can call a (key#) into the body of the response, but I don't think it's available to the AIScript.
I'm also wrong about this (sorry - I'm tired today, and getting muddled ) Ignore my preceding remarks.

I think you need your bot to remember what it has already said to this individual (a subset from the (thingsihave62290)<0> plugin) into a new memory, and test that one - that ought to be possible. Every time you tell the human you have something, save it, eg:

?PF rem (key3) as "ihavealreadysaidihave" ?;<0>

then qualify any responses in other KPs when you say you have something, eg:

I have a (thingsihave62290)<0>

with the AIScript:

?PF if (mem-ihavealreadysaidihave) is not (key1) ?;<0>

But always make sure you have an alternative response to go to, or you will get "Sorry, I have No Valid Responses to Go To"

Having said that, the (thingsihave62290) plugin will not duplicate an entry in a response until all its values have been called once, so put a dozen values in there (or 30 or 50 or 100,) and in practice they'll never all get called by one person, so I've never knowingly used memories like this. I just pack the plugins

16 years ago #6572
plugin will not duplicate an entry in a response until all its values have been called once
Great point. Usually you will never have a guest talk that often to go through all the items more than once.

16 years ago #6573
Thanks Psimagus, it was just that your line was 7 words so I made a keyphrase from that in regex mode to see if it worked, will try to correct and try again.

16 years ago #6574
Hallo,

anyone knows why this regex never catch a sentence and an xnonsense always winn? I tryed (to test) absurd weight, but always xnonxsense win!

([bcdfghjklmnpqrstvwxz0123456789]+) (re) [10,0] <?PF raw; ?>
xnonsense [-50,0]

Test sentence: bfgtr
Response: xnonxsense

For me it has really non sense!

Bah...

16 years ago #6575
try a higher rank - maybe the Prof's been tweaking things a bit, and it needs a bit more weight to it.

hmm, I see it's not working with BJ either
Hopefully just a temporary thing - it certainly used to work (and I'd assumed still did,) but occasionally the AIEngine gets tired. Maybe the site wants a reboot - I'll ask the Prof.

16 years ago #6576
funnily enough that keyphrase is successfully matching "l337 5p33k", but not "l337" or "bfgtr", so it looks like the BLAB-finder's getting erratic again (I don't know why that process should be variable, but it sure seems to be!)

16 years ago #6577
Good, thanks Psims. It doesn't solve the problem but let me feel less idiot... :-) I thoght I was no more able to use regex...
:-))

16 years ago #6578
Hi psims,

I tested it. Same behaviours, But there is more in the engine...

The Regex
^([abcdefghijklmnopqrstuvwxyz]+)[?]$ (re) [50,0] <?PF raw; ?>

it is never catched and always aswer the regex

([?]+)$ (re) [-50,0] <?PF raw; ?>

(please note the -50 and 50 weigth!)

But the engine desn't have to catch the less general answer?

There should be something more perhaps...

It is enough to know the rules behind it to use correctly the regex, anyway...

16 years ago #6579
exactly the same problem (with all ranges, I tryed -500 and 500 too!) for regex

^([hmn]+) (re) [30,0] <?PF raw; ?>
and regex
([a]+)([rgh]+)([ !]+) (re) [30,0] <?PF raw; ?>

I always have xnone or xnonsense!

Are you sure that the engine works correctly with regex?

16 years ago #6580
it is supposed to, and it used to (though it has always had a tendency to be a little temperamental at times.)
The trouble is that it's not "real" regex that we have access to, but only a shell (the AIEngine uses full regex, and has to reserve some operations entirely to itelf.)

It's also worth knowing that the range limit for rank is -127 to 127, so a rank of 500 will probably be interpreted as 0 (though 50 ought to be more than enough to test it.)

I'll mention it to the Prof when I email him next - that blab-finder definitely needs some tweaking. It hasn't been quite right since we moved to the new server.

16 years ago #6581
I wish we could override blab completely. I never saw where it was any benefit. If you don't have a keyphrase it will go to xnone, if you have a keyphrase and want to respond it goes to xnone. Makes no sense to me.


Posts 6,570 - 6,581 of 7,766

» More new posts: Doghead's Cosmic Bar