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,960 - 3,971 of 7,768

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. ?

20 years ago #3965
At this point, the (mem-adjyouare) is not available until after the response has been sent. The best thing to do would be to use (key1) instead of (mem-adjyouare). In the future I hope to make it immediately available.

20 years ago #3966
I kinda like it that its not available straight away, because as you say you can use (key1) in that case. I just thought Elke was using it straight away (from transcipts). Like in the example:

Irina Khalidar: I am glad that you are glad, Elke!
Elke: but I thought you were glad though?

Elke's "glad" was produced by a (mem-adjyouare).
does that make any sense?

20 years ago #3967
oh and there was a <?PF rem (key1) as only "adjyouare" ?> on the keyphrase for it
HIDDEN: Post content outside ratings limits.

20 years ago #3969
I'm having a little bit of trouble on this one. The raw tag won't accept word-type wildcards like (adj) and (noun), but will accept custom plugins, so I've created (rawadj) and (rawnoun) plugins to try to get around it.

keyphrase: my (rawadj), (rawadj2) (rawnoun)
Response: Your (key3) is quite impressive. It's not every day that one sees a (key3) that's both (key1) and (key2).

Then in debug, I've input a phrase that Irina Khalidar has uttered a few times to my bot.

You: in my beautiful, fragrant garden
Bot: Your is quite impressive. It's not every day that one sees a that's both and.

Any ideas?

20 years ago #3970
OK, going back through the Book of AI, I think I've identified some of the problems. First off, the comma should need a space in front of it (although it seemed to make no difference for me). More importantly, punctuation only works with (re) keyphrases, which don't work with custom plugins.

Back to square one.

20 years ago #3971
Right- the comma will only work in raw mode with regular expressions. But the period, question mark, and exclamation point work in any keyphrase in raw mode.


Posts 3,960 - 3,971 of 7,768

» More new posts: Doghead's Cosmic Bar