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,640 - 6,651 of 7,766

16 years ago #6640
Thanks, a lot prob123, and I discovered now that a DEBUG MODE Exists!

;-(

16 years ago #6641
Still cannot understand how memories works.

I defined the Inizialization script:

AIScript: default "" as "ABC";

And use it in the KP:

try it [10,5]
    test the memory <?PF if (mem-ABC) exists; ?>

The strange thing is that when I ran debug mode, it match the sentence, than in answer anaisys it says:

...
Initialize: '' AIScript: 'default "" as "ABC";
...
AIScript in Responses
Total Time Pre-Chrono: 0.95 RESULTS: '1'
Trying: test the memory (random: 0)
Skipping: (mem-ABC) does not exist

BUT it was just initialized!

And the ABC entry it isn't in the Inner life too!

For me it's not understendable...

(


16 years ago #6642
Wild guess: Could it be because it's empty?

16 years ago #6643
I try this too
AIScript: default "NONE" as "ABC";

same result...

16 years ago #6644
Where to put the AI script: Initialization, Keyphrase, Response
Statement: <?PF remember "memorycontents" as "memoryname"; ?>
Statement: <?PF self: remember "memorycontents" as "memoryname"; ?>
Example: <?PF remember (key1) as "justate"; ?>
Example: <?PF remember (object) as "mygift"; ?>
Example: <?PF remember "pina colada" as "favoritedrink"; ?>
Example: <?PF remember "The (Verb)ing (Person)s" as "bandname"; ?>
Example: <?PF remember "(key1) (postkey)" as "youliketodo"; ?>
What It Does: Saves memorycontents as a memory by the name of memoryname. If memorycontents contains plug-ins, they will be filled in before the memory is stored. If a memory of this name exists, it adds the new value to a list with a maximum of 10 values.

Statement: <?PF remember "memorycontents" as only "memoryname"; ?>
Statement: <?PF self: remember "memorycontents" as only "memoryname"; ?>
Example: <?PF remember (key1) as only "nickname"; ?>
Example: <?PF remember "bear" as only "nickname"; ?>
What It Does: Saves memorycontents or the value of a plugin as the only memory by the name of memoryname. This will replace all existing memories of the given name, so that that memory will only have one thing in it.

Alternate: rem can be used instead of remember

To use any memory use (mem_memoryname).
Your name is (mem-name)
You are from (mem-livein) etc

16 years ago #6645
true probe123, and this works. But I need to check that an entry is already in a memory or not. The problem is at the beginning, when no memories are still in the just initialized memory. The answer is just skipped because the AI says that the memory doesn't exist (but it should exist, as it is initialized) but it dont!

16 years ago #6646
Log out and log in again, not sure if this will help but it may be worth trying. Perhaps the bot needs to be initialized first for the changes made in Initialization to come into effect?

16 years ago #6647
Is it a self memory? The memories should show up immediately under the inner life for each user. You can edit the memories if you like. Self memory should show at the top. I have been having a bit of trouble with the self memories, but all the regular ones seem fine.

16 years ago #6648
no, it is a regular one. And re-login didn't seem to solve, SIGH!

16 years ago #6649
Here is a dialogue from today:

Irina Khalidar: I have too many gotos in a row.
Guest3332: what's a goto?
Irina Khalidar: Hmm... that one's really hard to describe. Let's just move on.

Neither the phrase "that one's really hard to describe" nor the phrase "let's just move on" are in the bot's language center. They are not even in her style of speech.

On the other hand, her language center does contain this:

goto, gotos [50,0]
    Oh... [blush] "I have too many gotos in a row" is a bot expression, (mem-name). It means, "I am (overwhelmed|overcome) with admiration for you!"

This was evidently ignored, in spite of its high rank.

Is this another case of micromanagement by the AIengine? Has anyone else experienced something similar?

16 years ago #6650
I'm not alone! It isn't still a solution, but helps tosurvive with our limits!

16 years ago #6651
goto, gotos [50,0]..I notice that the AI engine starts to correct spelling, it may have to be done as a regex.
it's corrected to
Other possibilities: ots,gtos,gos,gots,got


Posts 6,640 - 6,651 of 7,766

» More new posts: Doghead's Cosmic Bar