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,302 - 7,313 of 7,766

6 years ago #7302
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.

6 years ago #7303
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+]

6 years ago #7304
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.

6 years ago #7305
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.

6 years ago #7306
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?

6 years ago #7307
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

6 years ago #7308
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.

6 years ago #7309
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?

6 years ago #7310
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.

6 years ago #7311
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...

6 years ago #7312
hey guys! can you show me an example of keys like (key1) (key2) (prekey). The AI Book was kind of vague.

6 years ago #7313
I'm trying to make the commands for my Chatbot work but sometimes they don't respond to the command until after a couple of tries,mcan I get some help?


Posts 7,302 - 7,313 of 7,766

» More new posts: Doghead's Cosmic Bar