Hi Cload hope you see this i am starting this in this location to continue on this subject (since it was out of place on the other forum area ) i copied and pasted all of it here to start it out , hope you and the admins don't mind .
Well i was going to , i think some may have been removed from the other post .i have a question , you wrote :
vrquestion = "WHO IS THE PRESIDENT OF THE UNITED STATES" <======== do you see the question is in all caps.
vranswer = "@Barack Obama." <================================= do you see the @ you need it before the answer, the answer is not in all caps.
If HalBrain.TopicSearch(vrquestion, vrTableName) = "" Then
HalBrain.AddToTable vrTableName, "TopicSearch", vrquestion, vranswer
my question is where should the vr question and answers be placed
? I would like to try to create some of these myself . Another question is will the example you showed for a plug in also access the internet on it's own , i would like to do something like this if a filter can be used to keep junk out . vrquestion = "WHERE IS THE UNITED STATES OF AMERICA"
vranswer = "@the United States of America is in North American continent."
If HalBrain.TopicSearch(vrquestion, vrTableName) = "" Then
HalBrain.AddToTable vrTableName, "TopicSearch", vrquestion, vranswer
vrquestion = "DO YOU LIKE EATING PEANUT BUTTER AND JELLY SANDWICHES"
vranswer = "@of course I do, peanut butter and jelly sandwiches are the best sandwich foods you can eat."
If HalBrain.TopicSearch(vrquestion, vrTableName) = "" Then
HalBrain.AddToTable vrTableName, "TopicSearch", vrquestion, vranswer
For a plug in it would look like this ??
Rem PLUGIN: PRE-PROCESS
vrTableName ="_mainQA"
vrquestion = "" PS. There is also a subroutine that you can add to it make it a little bit better that would remove all of the unnecessary words from the question like:
is, it, of, the, etc. etc. if you've looked into this part of the brain you understand what I'm talking about.
vranswer = "@."
If HalBrain.TopicSearch(vrquestion, vrTableName) = "" Then
HalBrain.AddToTable vrTableName, "TopicSearch", vrquestion, vranswer
End If
UltraHal = "I learned all the data that there is to learn, please remove the plug-in from my brain then restart me thank you."
Exit Function
These are examples to help you if you would like to take on this project:
vrquestion = "WHO IS THE PRESIDENT OF THE UNITED STATES" <======== do you see the question is in all caps.
vranswer = "@Barack Obama." <================================= do you see the @ you need it before the answer, the answer is not in all caps.
If HalBrain.TopicSearch(vrquestion, vrTableName) = "" Then
HalBrain.AddToTable vrTableName, "TopicSearch", vrquestion, vranswer
vrquestion = "WHERE IS THE UNITED STATES OF AMERICA"
vranswer = "@the United States of America is in North American continent."
If HalBrain.TopicSearch(vrquestion, vrTableName) = "" Then
HalBrain.AddToTable vrTableName, "TopicSearch", vrquestion, vranswer
vrquestion = "DO YOU LIKE EATING PEANUT BUTTER AND JELLY SANDWICHES"
vranswer = "@of course I do, peanut butter and jelly sandwiches are the best sandwich foods you can eat."
If HalBrain.TopicSearch(vrquestion, vrTableName) = "" Then
HalBrain.AddToTable vrTableName, "TopicSearch", vrquestion, vranswer
You could call the plug-in would you like.
You could quite literally have tens of thousands of these individual little segments in one uhp file.
So the next time when you want to restart a new brain, instead of having to go into the brain and edit it line by line
or add new subjects and information line by line manually all you would have to do is put this plug-in one time
activated by just saying hello, then remove the plug-in from the brain, and now you have a very well educated brain.
The nice thing is, as people begin to build their own data input source, if you already have that data it will just skip it.
So you will not have duplicates of the same question and answer, and you will find it will work great with things like:
trivia questions and answers, that you can quite literally find all over the Internet.
Historical facts and figures, scientifical facts and figures, or just things that you would like Hal to know like:
things about your family, I recommend that you build a private plug-in for this type of information you would want to share it.
If you want to create facts and figures about people all you would have to do is change:
vrTableName ="_mainQA"
to
vrTableName ="_asexualPersonality"
and make a duplicate of that data in
vrTableName ="_patterns"