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,880 - 6,891 of 7,766
accepted for import is 1 Meg.
No, my bots are well over that and can import.
What keyphrase are you trying to catch?
Try things like (talk|talked|talking)
Posts 6,880 - 6,891 of 7,766
Ronnie075
15 years ago
15 years ago
Tried to reset memories i.e. topic to null when xhello, xinitiate, xgoodbye, xgottago are initiated with <?PF rem rem "topic" as only "topic"; rem "laststate" as only "laststate"; rem "wearing" as only "wearing"; ?>
But it justs wouldn't happen. I want some memories to be wiped out at the end (or beginning) of conversation...
I had this scripts added to xkeyphrase, perhaps I should add them to responces. Is this a known issue?
But it justs wouldn't happen. I want some memories to be wiped out at the end (or beginning) of conversation...
I had this scripts added to xkeyphrase, perhaps I should add them to responces. Is this a known issue?
Ronnie075
15 years ago
15 years ago
I am sorry, I wasn't clear. I want the memories changed with scripts not erased.
These memory-resetting scripts work when added to a seek. It is certainly possible to change any memory with rem "something" as only "something".
These memory-resetting scripts work when added to a seek. It is certainly possible to change any memory with rem "something" as only "something".
Ty Paige
15 years ago
15 years ago
Best suggestion I can come up with is make one big ass long script that resets your memories and use it for each response in xgoodbye.
I don't have the experience of the vets here.. hopefully they can pinpoint your solution best.
I don't have the experience of the vets here.. hopefully they can pinpoint your solution best.
prob123
15 years ago
15 years ago
If you have rem "something" as only "memory". It will change the memory. As far as I know there is now way to erase the "something" without going into the bots personal life and erasing it.
Ronnie075
15 years ago
15 years ago
Problem solved! I added the big whopping script line to every response in xinitiate and xhello, and xintroduce (for good measure). Now any memories I want to be session-specific are resetting to default (or any value I fancy , i.e. I can make rem "topic" as "newconv" ) at the start of a new conversation. There is always a start to any conversation, but people rarely say goodbye.
For some reason the scripts did not work when added to xkeyphrases. That would have made the file shorter and code more elegant - well, if it works I cannot complain.
For some reason the scripts did not work when added to xkeyphrases. That would have made the file shorter and code more elegant - well, if it works I cannot complain.
prob123
15 years ago
15 years ago
I used the following keyphrase to catch the word "shit"
([s]+)([hi]+)([t]+) (re)
For some reason it also picks up "sit"..make a keyphrase for sit if you have something like this or your bot will sound really stupid
([s]+)([hi]+)([t]+) (re)
For some reason it also picks up "sit"..make a keyphrase for sit if you have something like this or your bot will sound really stupid

Ronnie075
15 years ago
15 years ago
I managed to match the tricky slang word similarly spelling it letter by letter in Regex - but the AI engine only picks it if it is a part of a sentence. If the word is used on it's own it goes to xnonsense. I wonder if I should add a ^ and $ for good measure...
Ronnie075
15 years ago
15 years ago
Added ^ and $ - no luck for tricky word. But I can live with that.
A little question regarding the mindfile size. I heard that the maximum file size accepted for import is 1 Meg. Is this still true?
Mine is 0.2 Meg and I just started… I try hard to reduce the dataload, by using smarter keyhrases among other things. For example:
Talk(ed|ing|) * (object)(s|) instead of (talk|talked|talking) * (object), (talk|talked|talking) * (object)(s),
What I discovered is that sometimes keyphrases with (ing|), (ed|), (s|), etc. work and sometimes they don’t. I am not sure what the snug is.
Is anybody else using them? Or should I get rid of them?
A little question regarding the mindfile size. I heard that the maximum file size accepted for import is 1 Meg. Is this still true?
Mine is 0.2 Meg and I just started… I try hard to reduce the dataload, by using smarter keyhrases among other things. For example:
Talk(ed|ing|) * (object)(s|) instead of (talk|talked|talking) * (object), (talk|talked|talking) * (object)(s),
What I discovered is that sometimes keyphrases with (ing|), (ed|), (s|), etc. work and sometimes they don’t. I am not sure what the snug is.
Is anybody else using them? Or should I get rid of them?
prob123
15 years ago
15 years ago
No, my bots are well over that and can import.
What keyphrase are you trying to catch?
Try things like (talk|talked|talking)
Ronnie075
15 years ago
15 years ago
Great! This is good to know we can exceed 1 meg. I will stop using word(s|) format from now on and use (word|words) format as I saw in keynomes on BJ home page.
» More new posts: Doghead's Cosmic Bar