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,994 - 7,005 of 7,766

12 years ago #6994
Seek is a response that would come naturally after a question. Suppose some one said tell me a knock knock joke
the response would be knock knock
the seek would be who is there
the response could be Doris
the seek would be Doris who
response would be Doris locked let me in.

You have to be in your language center to work on your bot. but a second window is a great way to chat and test while you work.


12 years ago #6995
I'm having an issue with my keyphrases.

are you (*)...... rank 0
are you (adj)...... rank 10
are you (adj) or...... rank 15

But if I ask her 'are you young or old' she keeps using the response for just 'are you (adj)'. I can't get her to pick up on the "or" so she can pick between (key1) and (postkey) if they are giving her options. Could someone please tell me what I'm doing wrong?

12 years ago #6996
Spookychild, go to Debug and test the two KPs, Ctrl+F "highest" and note the total rank for each, adjust your KP's ranks accordingly, that should work.

12 years ago #6997
They both rank at 39. I'm tried setting the 'or' keyphrase up to 50, it still doesn't register for some reason. Is there another ranking system I'm not aware of? Keep in mind I only know the very basics of bot building. I'm kind of a newbie.

12 years ago #6998
How can I create a seek that matches all numbers between 5 and 6? 5.4 or 5.22 for example.
Thx!

12 years ago #6999
Sasa, make a plug-in with all these numbers and use the plug-in in the seek.

12 years ago #7000
Sasa,

I'd say best use a regular expression. (They've been invented for problems like this one.)

Example (I've just tested it):

keyphrase: 0*5\\.?\\d* (re)
response: number between 5 and 6 (including 5, excluding 6)

keyphrase: ((\\d*)|(\\d*\\.\\d*)) (re)
response: A number not between 5 and 6

Don't forget to put "raw" into the AIScript field, otherwise the dots wouldn't be recognized.

12 years ago #7001
Thank you very much Lars and Mome. I used the regular expression and it works perfectly.

Another question. Why does my bot responds with "boring, boring, boring" when I respond two times with "yes" to two consecutive seeks? How can I fix that?
Thx again.

12 years ago #7002
@ Spookychild

use raw mode for those key-phrases that contain "or" "and" "," etc punctuation. The AI engine splits the input on commas, "and" "or". The drawback to this method is that only (key1) or (postkey) will be saved and used, not both. When using a comma with raw mode add an extra space before the comma - like so.

In the field there were horses , cows and sheep [50,0] raw;

Without the raw; the input will be split in 3 and only one of them will be matched. Usually the last one I believe.

12 years ago #7003
Thank you very much Laurel. I don't know anything about raw mode, but I'll try and figure it out haha.

12 years ago #7004
The AI engine is back to name changing again

Guest44549: my name is John
Bildgesmythe: I like the name bathroom

12 years ago #7005
Professor, in addition to the recent posts I've made, I just looked at the Language Center for my bot. The emotion ranges are WAY off compared to what I have in my offline file. In my file, I have [0:1] for some things that show as [4:5] in the Language Center. How can this be when the uploads should replace those if we make changes offline and import our changes?

I re-checked - the language center shows a lot of <?PF if emotion ?> lines, too. I've spent the better part of the last two weeks fixing those in my offline file. I do NOT want to have to go through 4500+ lines in the language center. Do you have any suggestions?


Posts 6,994 - 7,005 of 7,766

» More new posts: Doghead's Cosmic Bar