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,301 - 7,312 of 7,766
Posts 7,301 - 7,312 of 7,766
Body Shifter
6 years ago
6 years ago
darn, (command) works if you use it immediately, but you can't store it in memory.
If we had THEN and INT, this would be a pretty badass AI engine
If we had THEN and INT, this would be a pretty badass AI engine
Nathan S
6 years ago
6 years ago
Is anyone here familiar with regular expressions?
I can create the keyprase "If I believe I can fly does that make it true?"
But I can't create a keyphrase for "If I believe I can fly, does that make it true?"
As far as I can tell this has to do with the way the language processor breaks things up. It simply looks for keyprases If I believe I can fly. And when it doesn't find one it searches for, does that makie it true while ignoring the possibility that it can match the entire sentence.
Raw mode doesn't impact commas, but I thought there was perhaps a regular expression that would allow me to match them.
I can create the keyprase "If I believe I can fly does that make it true?"
But I can't create a keyphrase for "If I believe I can fly, does that make it true?"
As far as I can tell this has to do with the way the language processor breaks things up. It simply looks for keyprases If I believe I can fly. And when it doesn't find one it searches for, does that makie it true while ignoring the possibility that it can match the entire sentence.
Raw mode doesn't impact commas, but I thought there was perhaps a regular expression that would allow me to match them.
BotMaster2000
6 years ago
6 years ago
I know next to nothing about them, but from the book of AI examples it looks like the square brackets might play a part. However, all my tests so far have failed. I was last trying:
If I believe * [a-z+, ] does that [a-z+]
If I believe * [a-z+, ] does that [a-z+]
BotMaster2000
6 years ago
6 years ago
The regular expression
If I believe * [a-z,]+ does that
Does not work either. I thought maybe the brackets could help, since they contained a comma in one of the examples, but that was for a number, so maybe that's why it doesn't work in this case.
If I believe * [a-z,]+ does that
Does not work either. I thought maybe the brackets could help, since they contained a comma in one of the examples, but that was for a number, so maybe that's why it doesn't work in this case.
Nathan S
6 years ago
6 years ago
Thanks for trying, I really appreciate it.
I've done a lot of testing as well just because I believe that the ability to address questions that have qualifiers in them would be huge. But the problem as far as I can see is that the engine identifies commas as separating keyphrases to the point of overriding even regular expressions.
It would be cool if we could have a special plug in such as (comma) which could serve the purpose of catching commas without mucking up the processor.
I've done a lot of testing as well just because I believe that the ability to address questions that have qualifiers in them would be huge. But the problem as far as I can see is that the engine identifies commas as separating keyphrases to the point of overriding even regular expressions.
It would be cool if we could have a special plug in such as (comma) which could serve the purpose of catching commas without mucking up the processor.
defNH
6 years ago
6 years ago
Nathan S, you're the creator of Thessaly right? Probably my favourite bot on this site, just wanted to say.
On topic, is there a more exhaustive list of the language/guide to the AI Engine than the Book of AI?
On topic, is there a more exhaustive list of the language/guide to the AI Engine than the Book of AI?
Nathan S
6 years ago
6 years ago
Thanks so much! I put a tremendous amount of work into her so it always feels good to get positive feedback.
As to your question, sadly the book of AI is more or less the only source for learning how to use the engine.
I say more or less because the creator of the Tessy bot posted a guide on how to do some of the tricks he uses. It's definitely a source for more advanced techniques.
http://chatbottessy.blogspot.com/p/blog-page_21.html
As to your question, sadly the book of AI is more or less the only source for learning how to use the engine.
I say more or less because the creator of the Tessy bot posted a guide on how to do some of the tricks he uses. It's definitely a source for more advanced techniques.
http://chatbottessy.blogspot.com/p/blog-page_21.html
bobstack
6 years ago
6 years ago
how would i get my chatbot to respond to this? I can only speak English. And I can't really speak, only type.
I have tried everything to get pioyu to answer it.
I have tried everything to get pioyu to answer it.
fifuch
6 years ago
6 years ago
Why is my bot behaving differently when I use "not (p:converse) about Mathematics" versus "not (converse|talk|chat|be conversing|be talking|be chatting) about Mathematics"?
The first one does not respond to "Let us not talk about Mathematics", but the second one does. (p:converse) is "converse, talk, chat, be conversing, be talking, be chatting".
Am I using the plugin engine incorrectly?
The first one does not respond to "Let us not talk about Mathematics", but the second one does. (p:converse) is "converse, talk, chat, be conversing, be talking, be chatting".
Am I using the plugin engine incorrectly?
fifuch
6 years ago
6 years ago
Is this language use a similar order of preference to rivescript? If it does, then I see why "(converse|talk|chat|be conversing|be talking|be chatting)" works but "(p:converse)" does not.
JustRob
6 years ago
6 years ago
Is it possible to completely reset your bot to an initial state where it thinks it is talking to you for the first time, has 0 emotion, default memories, etc? I want to test a behavior line in xintroduce, but I can't find a reasonable way to get it to come up. Except once per browser per device. I hope I just missed something simple...
ekoi1995
6 years ago
6 years ago
hey guys! can you show me an example of keys like (key1) (key2) (prekey). The AI Book was kind of vague.
» More new posts: Doghead's Cosmic Bar