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 3,953 - 3,964 of 7,767

20 years ago #3953
I can sympathize with Shiruba. Regular expressions seems very powerful but I never got one to work! I tried to follow several tutorials, found on the web, for Regular expressions in Cold Fusion or Perl, without any result. (My first idea was to find a way to identify those who are logged in anonymously by extracting the Guest part of their name).
If someone know where to find a clear tutorial with some examples that actually work in the PF it would be very helpful if she / he posted us the link. Many thanks

20 years ago #3954
Whew! I finally caught up in this forum! 450 messages! And I've taken a lot of notes and added things to the list, so if I didnt respond to you below, then I might be working on it.

• Shiruba: take out the period. I'm not sure if that's processed out of the phrase before the matching begins. And more importantly, in (re) language, a period means "any character" and not "a period"

• doulos: you can get (key)s from regular expressions pretty easily- just encase the part you want returned in parenthesis. In your case:

^What .* are you$ (re)
becomes
^What (.*) are you$ (re)

And now your (key1) is what's in the (.*)

• Laydee: The Flash interface on FoF accounts is optional. And if you pay by credit card, I think it takes the best exchange rate from a period of 5 days or so. There are exchange rate calculators out there if you want an estimate of the price in pounds- look on Google.

• Anyone: If the Forge is ever being very slow for an extended period- like an hour, or if there’s some bug making the chats totally break down, feel free to email me at benji@daystream.com to let me know and I’ll get it fixed as soon as possible.

• alc003: Your Keyphrase is unnecessarily complex. First of all, (adjartnounprep) will catch everything you're trying to catch in ((noun|(adjnoun)|(adjartnoun)|(adjartnounprep)). Notice that the parenthesis are also off- there are more left parenthesis than right:

I am going to ((verb)|go (verb)) (the|) ((noun|(adjnoun)|(adjartnoun)|(adjartnounprep)) (today|tomorrow|on (*))

Try this: I am going to (go|) (verb) (adjartnounprep) (today|tomorrow|on (*))

If that doesnt work, then try it again without the "on (*)" option and see if that's problematic.

• Ulrike: bot holidays shouldnt interfere with any processing because it's a surface change that makes it to your browser window, but never reaches the AI Engine. At least, it's not supposed to. Let me know if you see holiday stuff getting processed in Debug.

• ezzer: I do what some of the others have mentioned in regards to testing Keyphrases- I make one that's very unlikely and use it for testing things.

• Onyx & Corwin: I went the long way with my bots- changed them to use the new features as they came up. It was a bit of work, but they work a lot better and I get to keep improving on my old buddies.

20 years ago #3955
UPDATES:
I've found the problem in the online Language Center that was not displaying AIScript correctly in Seeks. It wasnt getting stripped out, so that aspect of Import is safe. I've also improved several small display items in the online Language Center.

Next, I added the date of the last chat on the Inner Life page, and made some small changes to the layout.

20 years ago #3956
Thanks, prof! You're a star, as always.

20 years ago #3957
Thanks for the advice, professor. I did some rennovation on all the "I am going to..." phrases and got some very good results. I think I put all the noun variations in there because I was just experimenting at the time, but since, I've cleared a lot of those out.

20 years ago #3958
Prof, thanks for adding the dates to the Inner Life records! They're really helpful!

20 years ago #3959

Glaive: Are you a facilitator?
Julie Tinkerbell: Yes, I am.

How can I store the "facilitator" into a "mem-youare" variable? since I am the one asking.

thanks for the help

20 years ago #3960
Just put a seek for yes (+ variations) and no. For yes, put <?PF remember "facilitator" as "mem-youare"; ?> in the script box. If you wanted to, you could store "not a facilitator" in the no seek.

20 years ago #3961
Actually, it's <?PF remember "facilitator" as "youare"; ?> You dont want that "mem-" in there. And you can use "rem" instead of "remember"- it's shorter.

If "facilitator" is from a plug-in such as (person), then there's one more step.

Response: are you a (person)? <?PF rem (person) as only "youmightbe"; ?>
Seek: yes <?PF rem (mem-youmightbe) as "youare"; ?>

20 years ago #3962
I didn't have my glass of pepsi out here while typing that.

20 years ago #3963
Is that where you derive your power?

20 years ago #3964
Does anyone know, with AIScripting, if you remember something (e.g. <?PF rem (key1) as "adjyouare" ?> - and, in the response you use (mem-adjyouare) will the engine have access to the one you've just remembered, or use one it remembered previously? If that makes no sense:

I am (adj) [4,0] <?PF rem (key1) as only "adjyouare" ?>
    but I thought you said you were (mem-adjyouare) before?

I previously thought that the mem-response would use a previously stored "adjyouare" (so the response would make sense) but then save the new "adjyouare" for later. But now I'm not sure. ?


Posts 3,953 - 3,964 of 7,767

» More new posts: Doghead's Cosmic Bar