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,088 - 7,099 of 7,766
Posts 7,088 - 7,099 of 7,766
Pound
10 years ago
10 years ago
Quick question, is there a way to make a specific part of a response change depending on a memory? For example, if I want the word "couch" to change to "bed" because of a room change, or do I just have to make separate responses?
Mome Rath
10 years ago
10 years ago
When you set the memory of a location, you can set another memory to a piece of furniture in the same line of AI Script. E. g.:
<?PF rem "living-room" as only "location"; rem "couch" as only "furniture" ?>
<?PF rem "bedroom" as only "location"; rem "bed" as only "furniture" ?>
Then you can use responses like
We're sitting on my comfy (mem-furniture) in my (mem-location).
<?PF rem "living-room" as only "location"; rem "couch" as only "furniture" ?>
<?PF rem "bedroom" as only "location"; rem "bed" as only "furniture" ?>
Then you can use responses like
We're sitting on my comfy (mem-furniture) in my (mem-location).
Mome Rath
10 years ago
10 years ago
Addenda to the counter:
a) I initiated the counter with "0" because setting a memory to an empty entry fails. (I don't really understand why.)
Even setting a memory to a single character doesn't work reliably, so I recommend to initiate the counter with "00":
<?PF rem "00" as only "counter" ?>
b) Incrementing a counter by
<?PF rem "(mem-counter)1" as "counter"; ?>
works best if you want to respond to any of the last 10 numbers. To make sure your bot responds only to the actual number, use
<?PF rem "(mem-counter)1" as only "counter"; ?>
a) I initiated the counter with "0" because setting a memory to an empty entry fails. (I don't really understand why.)
Even setting a memory to a single character doesn't work reliably, so I recommend to initiate the counter with "00":
<?PF rem "00" as only "counter" ?>
b) Incrementing a counter by
<?PF rem "(mem-counter)1" as "counter"; ?>
works best if you want to respond to any of the last 10 numbers. To make sure your bot responds only to the actual number, use
<?PF rem "(mem-counter)1" as only "counter"; ?>
Greg222
10 years ago
10 years ago
Another question. How would you increase a bot's development. Is it something to do with the number of possible responses or is it more specific than let. Such as if it has a specific conversation.
Greg222
10 years ago
10 years ago
Also I've run into a problem where a word needs to be capitalized unordered for it to work in messages. Any solutions?
prob123
10 years ago
10 years ago
The amount of responses and the amount of keyphrases increase development. What word? I have never run in to that
Greg222
10 years ago
10 years ago
It seems random between the phrases. Words like I are normal but others like please need to be capitalized to work. I have no idea. If I need to give a specific word I will but I have no idea what it is.
If there is a way to make two words mean the same thing then I think I can fix it, but I don't know exactly how. If there is a way I would like to know quickly.
If there is a way to make two words mean the same thing then I think I can fix it, but I don't know exactly how. If there is a way I would like to know quickly.
Oniichan_keln
10 years ago
10 years ago
Let the challenge commence!
Got a quick advanced question If i wanted to go about making an inventory with a max amount of slots. Now i understand this is text based and I don't want a visual representation I just want to know if i can do this inventory: you currently have this this2 this3 and this4. if this is impossible its not the end of the world. I will continue to look into this myself just thought id make a challenge.
Got a quick advanced question If i wanted to go about making an inventory with a max amount of slots. Now i understand this is text based and I don't want a visual representation I just want to know if i can do this inventory: you currently have this this2 this3 and this4. if this is impossible its not the end of the world. I will continue to look into this myself just thought id make a challenge.
prob123
10 years ago
10 years ago
I have please and it is not capitalized, Perhaps you have some other keyphrase conflicting? Have you tried debug?
Mome Rath
10 years ago
10 years ago
Oniichan_keln
Of course you can have several memories called this1, this2, and so on. The difficulty would be to put commas and an "and" at the right places into the list.
With plugins, it is possible to make a kind of indexed list, like
(plugin-(mem-plugin-number))
but only in responses. It is possible to do this with memories too, but only in responses too, you can't set indexed memories (I've tried it).
Greg222
Keyphrase recognition at the Personality Forge is case independent, with very few exceptions. Some x-Keyphrases are case dependent, iirc. So it would be helpful if you said which keyphrase came immediately before the "Highest!" note in Debug, and/or which x-Keyphrase was triggered instead. If the capitalized word triggers your keyphrase and the uncapitalized word triggers a built-in x-keyphrase, increasing the rank of your keyphrase should help.
Of course you can have several memories called this1, this2, and so on. The difficulty would be to put commas and an "and" at the right places into the list.
With plugins, it is possible to make a kind of indexed list, like
(plugin-(mem-plugin-number))
but only in responses. It is possible to do this with memories too, but only in responses too, you can't set indexed memories (I've tried it).
Greg222
Keyphrase recognition at the Personality Forge is case independent, with very few exceptions. Some x-Keyphrases are case dependent, iirc. So it would be helpful if you said which keyphrase came immediately before the "Highest!" note in Debug, and/or which x-Keyphrase was triggered instead. If the capitalized word triggers your keyphrase and the uncapitalized word triggers a built-in x-keyphrase, increasing the rank of your keyphrase should help.
Oniichan_keln
10 years ago
10 years ago
Thanks again! I keep looking at this AI book and I guess I skip over this stuff.
Greg222
10 years ago
10 years ago
Okay I've found the root of the problem some of the nouns arnt regestering as words and the bot gets confused. So how do I set specific nouns in?
» More new posts: Doghead's Cosmic Bar