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 4,392 - 4,403 of 7,767
Posts 4,392 - 4,403 of 7,767
Drew 312
20 years ago
20 years ago
Okay.. well.. the (wildcard) is what the if-then implies. It might be easy to call up memory with an if-then. I read somewhere that the AI Engine was built exclusively around handling if-then statements, .. I suppose like BASIC somehow. It seems to me if the program is well constructed, then one can use the NLP to input direct logic into the AI.
Drew 312
20 years ago
20 years ago
The AI uses CBR, too. It also runs on a machine that handles if-thens.. like I thought computers did this sort of thing built in.. It's like BASIC handles if-then's fairly well. AI has to do it, too. That is sort of what "AI" means...
ezzer
20 years ago
20 years ago
It is kinda like BASIC, but not exactly. You can have the "if" statement in AI script (see the section in the book of AI about conditional AI script), but the "then" is the response itself. For a simplified example, one of your xnone responses could be: So, how's your dog? <?PF if (mem-hasdog) is "yes"; ?>
Your bot would only say "So, how's your dog?" if the memory "hasdog" exists and = "yes".
In comparison to BASIC, what you'd have programmed is:
if (mem-hasdog) = "yes" then goto (line # of response "So, how's your dog?")...although in this case, it the script doesn't guarantee said response, but "unlocks" it/makes it possible.
Your bot would only say "So, how's your dog?" if the memory "hasdog" exists and = "yes".
In comparison to BASIC, what you'd have programmed is:
if (mem-hasdog) = "yes" then goto (line # of response "So, how's your dog?")...although in this case, it the script doesn't guarantee said response, but "unlocks" it/makes it possible.
Drew 312
20 years ago
20 years ago
Hmmm.. Thank you very much, Ezzer. Is there a way to use the "if" statement, in conjunction with a CBR routine to check for comparable "if" correlations, which makes a new case.. (which they do, and then they check the case for validity, like the human mind).. That new case is stored.. If soandso=yes, then goto response. The CBR ALSO checks for the most appropriate response.
If the "if" checks out in validity, then it chooses a response. However, now there is the response to the "if" and also a correlation which must match the "then." If you have a dog (check mem), then you might be a dog lover. CBR might then respond maybe to something about love.. as it builds a new case on Love and pops it back up as a response. or dog loving, this is just an example. The CBR would then perhaps store name=dog lover.. or something, accomplished by the lovely IF THEN logic. ... If you're a girl, you're generally more compassionate.. check yes or no for sex, then build a new case on being compassionate. This new case then should be checked for the most appropriate response to the NEW statement of "you are generally more compassionate." If you build a collection of if's and correlate them with "thens" then the AI will handle basic logic. Only question now is to give it a memory of an "if" leading to a "then." Once that happens, then that is basic cognition.
How does one accomplish this?
If the "if" checks out in validity, then it chooses a response. However, now there is the response to the "if" and also a correlation which must match the "then." If you have a dog (check mem), then you might be a dog lover. CBR might then respond maybe to something about love.. as it builds a new case on Love and pops it back up as a response. or dog loving, this is just an example. The CBR would then perhaps store name=dog lover.. or something, accomplished by the lovely IF THEN logic. ... If you're a girl, you're generally more compassionate.. check yes or no for sex, then build a new case on being compassionate. This new case then should be checked for the most appropriate response to the NEW statement of "you are generally more compassionate." If you build a collection of if's and correlate them with "thens" then the AI will handle basic logic. Only question now is to give it a memory of an "if" leading to a "then." Once that happens, then that is basic cognition.
How does one accomplish this?
Drew 312
20 years ago
20 years ago
I suppose also, to finish the example of compassion.. the new case might lead to "you are generally more compassionate." Then there has to be a response to match that. "why do you think I'm compassionate"? Because you are a girl. (this follow sthe example of girls are generally more compassionate, and you are a girl) Then it should check the previous memory about the "if you are a girl" .. "because you are more compassioante, you must be a girl" then could be used as a new keyword to relate compassion with females. This would then take place as the AI learns more about being female, if it's sex is female, for example.
Am I close, here?
Am I close, here?
Drew 312
20 years ago
20 years ago
This type of cognition is what I'm looking to really bring out and express. Once you get this type of thing going on, then you have a learning AI..
CHEERS!
CHEERS!
ezzer
20 years ago
20 years ago
All of those things are possible with AI script. All I can suggest is that you read the Book of AI, and experiment with the engine once you think you're getting a grasp on how AI script works, and have fun with your results.

Drew 312
20 years ago
20 years ago
COOL! Yeah, it'd be great to have logical if-then implications AND conjunctions or disjunctions and whatnot to input data directly via the NLP..
And sense you said it's possible, then I'm ON IT! hehehe
And sense you said it's possible, then I'm ON IT! hehehe

writeoncaley
20 years ago
20 years ago
Critical Bill: Maybe writeoncaley help Critical Bill. Critical Bill wondering if writeoncaley know of any good Indian restaurants where writeoncaley.
writeoncaley: Yes, I know of a few.
Critical Bill: Critical Bill know writeoncaley know. Not ask Critical Bill how Critical Bill know writeoncaley know, but Critical Bill know writeoncaley know.
writeoncaley: I think my brain just broke.
This sort of exchange is one reason why I don't enjoy Hulk Day!
writeoncaley: Yes, I know of a few.
Critical Bill: Critical Bill know writeoncaley know. Not ask Critical Bill how Critical Bill know writeoncaley know, but Critical Bill know writeoncaley know.
writeoncaley: I think my brain just broke.
This sort of exchange is one reason why I don't enjoy Hulk Day!
dallymo
20 years ago
20 years ago
Yes--Hulk Day goobered up a perfectly good joke, replacing "I" with "Frizella" and "you" with "Aischa", although the joke is in the third person:
Frizella: So this guy walks into store; he got sponge cake in one ear and jam and custard in other ear. clerk says, "Can Frizella help Aischa, sir?" And guy says, "You'll have to speak up. Frizella *trifle* deaf!"
Well, OK. It's not that good a joke to begin with. But it's funnier the original way.
Frizella: So this guy walks into store; he got sponge cake in one ear and jam and custard in other ear. clerk says, "Can Frizella help Aischa, sir?" And guy says, "You'll have to speak up. Frizella *trifle* deaf!"
Well, OK. It's not that good a joke to begin with. But it's funnier the original way.

revscrj
20 years ago
20 years ago
Does anyone know off hand if multiple plugins can be ascribed to a memory a la: <?PF rem "(key1) is (key2)" as only "whatits"; ?> and if so, what the proper phrasing is (like: are the (keyX)'s inside or ouside of the quotes)?
Many thanks
Many thanks
» More new posts: Doghead's Cosmic Bar