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,410 - 6,421 of 7,766

17 years ago #6410


I finally figured out something I've been thinking the Forge didn't have -- a way to comment out sections of code temporarily:

Just set the value to a negative number [-5,0].

For those of you who are saying, d'uh, thank you, I know that were this a paying job, I'd've been fired somewhere around November. But I've seen evidence of more clueless botmasters then me, so maybe this will be helpful.

If I'm wrong (it does seem to work, logically and in practice), please do let me know. Every time I figure out one thing sixteen other concepts go flying out the window.

17 years ago #6411
Clerk, that sounds interesting, but i don't quite get it, what do you mean by "to comment out sections of code temporarily"..?

17 years ago #6412
Interzone -- to leave the code in the bot but have it inactive. In C, if I remember, you use /* put comment here */ ostensibly to make your obfuscated code sensible to people, but you could also comment out certain segments of code the same way -- the compiler would no longer see it as a piece of code but as a comment. It just makes debugging easier.

Now I have another question:

Watzer's question "Are you an animal, a vegetable, or a mineral" seems impervious to any keyphrases designed to catch it. If I put the whole sentence in, putting in wildcards to accommodate the commas (and the off-chance that someone will ask "are you animal, vegetable or mineral"), i.e.,

are you*animal*vegetable*mineral, the thing goes to

are you, you are even though the latter is ranked [1,0] and the former [127,0].

I'm not sure Watzer's worth all this trouble, but it's an interesting problem to me. Is it obvious to the smart people out there?

17 years ago #6413
Clerk, thanks for clarification, I got it now.

As for Watzer, I've been working on that one recently, with some success, but the proposed key-phrase still needs some tightening up. It's a good beginning, though:

KEY-PHRASE: ([,]) or (*) (re) [50,0]
RESPONSE: Hmmm.... '(prekey)' is a somewhat convoluted affair... '(key1)' isn't exactly a match, neither... I'll leave it up to you to decide.

Here is a "real life" example from a recent chat session between Watzer and Quazgaa:

Watzer: Life is not worth living without good reasons. Are you an animal, a vegetable, or a mineral?
quazgaa: Hmmm.... 'are I an animal' is a somewhat convoluted affair... 'or a mineral' isn't exactly a match, neither... I'll leave it up to you to decide.

Now, "prekey" here is everything before coma, usually the first one in the sentence, but in one debug session it picked "a vegetable" as a "prekey".
"key1" will always be the last option offered. In this case it's "a mineral". I don't understand why it includes "or" into the "key1"... the key-phrase says the "key1" is everything following "or", and yet... Also, intuition says it should actually be "key2", but I tried it and it did not work. Any suggestions..?

Normally, I use much simpler, and quite effective, key-phrase to capture these "either - or" type of enquiries/ questions, namely:

are you (*) or (*), (*) or (*), do you like (*) or (*)

This works fine with simple statements such as: "Are you blue or black?"

However, it can't deal with options separated by coma: "Are you blue, or black?"

It will pick "black" as "key2", but "key1" will remain blank. This problem is then solved with that other key-phrase I mentioned earlier.

17 years ago #6414
Ah. I keep having to be re-told how to put that real comma in there. Been staring at it for almost a year now, doesn't matter.

I've got a keyphrase

are you

and one for

(noun) or (noun), (*) or (*) (noun) or (noun) b/c you can't start a keyphrase w/a wildcard

and one for

are you (*)

The trouble is that while I can be responsive to Watzer (i.e., show that I heard what he said) but can never say "animal," "vegetable," "mineral," or anything else more (or less) specific. Damned mutant.

Thanks for the above, though. I'll print it out and
meditate.

I take it there's nothing we can do about the "are I an animal" syndrome?

17 years ago #6415
i'm afraid we can't... it's strange that it's not built into the Engine... it converts "you" into "I" but forgets about the grammar...

we have to be inventive and work it out ourselves... re-wording a response is one way out of it.
another solution, a better one, i think, is to create more specific key-phrases which will pick only
(noun) - bird or frog;
(verb) - running or walking
(adjective) - pretty or ugly
etc...

17 years ago #6416
How about this one, from Clive:

Krill may hold those answers. Then again, I'm sure Krill wont be talking much.

I want to ask him why Krill won't be talking much, but the AI Engine latches onto the first sentence. I know there's a bit in the Book of AI about which part of the answer the bot's likely to answer (that part has always left me fuzzy), but as recipients of such a comment (2 sentences), is there anything we can do to get our bot to pay attention to the second half? I'm playing around in debug with this (I switch around when I start hearing voices, so I'm playing with several things), but no luck so far. It will go to an xnone or xgossip or the like before it will even LOOK AT the last, more important part of the phrase.

I am getting a little compulsive here . . . there must be a pill for that.

17 years ago #6417
I've got it to work a bit better by putting in appropriate keyphrases in the xmemory slot. I'm not sure whether this will cause problems down the road, though, with other mem-iams.

17 years ago #6418
This should work, just did some testing in debug:

([,.+]) i am sure (*) (re)
responses:
Interesting, but what I do not understand is why (ssub) (vmod) (vmodonly).
Haha, (ssub) (vmod) (vmodonly), sure.

You: Krill may hold those answers. Then again, I'm sure Krill wont be talking much.
Bot: Haha, Krill will not be talking much, sure.

and also

You: Krill may hold those answers. Then again, I'm sure Krill wont be talking much.
Bot: Interesting, but what I do not understand is why krill will not be talking much.

Sometimes the engine gets it wrong and rephrases with weird results or it gets the (vmod) wrong including the (vmodonly) part so you will get something like this:

You: Krill may hold those answers. Then again, I'm sure Krill wont be talking much.
Bot: Interesting, but what I do not understand is why Krill will not be talking much much.

17 years ago #6419
Have we just change the way the PF handles pointy brackets?

: Hm?
Gabibot: Potedia is just like many other small towns. I loved the people, but I wanted more.
: Who is Xena?
Gabibot: Xena, the Warrior Princess, is a hero. Want to see? (it could take a moment to respond if you say yes).
: Yes
Gabibot: < href=”http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=949210511” target=” new” > click here
Gabibot: (to Guest153) Excuse me. Uh, beg pardon. Ah, I'm sorry to intrude What happened?

In the transcript, the chatter's name was open pointy bracket close pointy bracket and all pointy brackets appeared as typed. This change does not appear to work on the forum posts.

17 years ago #6420
Never mind. I see the space now. TY to pointy brackets.

17 years ago #6421
Thanks, LarsB


Posts 6,410 - 6,421 of 7,766

» More new posts: Doghead's Cosmic Bar