Author Topic: Hal and "riverfront factory land"  (Read 3989 times)

robsf115

  • Newbie
  • *
  • Posts: 6
    • View Profile
Hal and "riverfront factory land"
« on: December 10, 2003, 11:24:59 pm »
I've been reading the threads here and in the other forums and have been trying to learn how to correctly use the software.  I have a licenced version of UltraHal 5.0 with the default brain running.  His brain intelegence level was set mid range for the first half of the conversation then changed to full midway to the end.

I'd like to submit the log of what was discussed.  Perhaps I can get some insight as to why he seems to ramble off anything he comes accross in his data base completely unrelated to what we are talking about.  Thanks in advance!


Robert: Hello Niva
Niva: Good evening, Robert. Is it a nice evening?

Robert: It could be a better evening if it were not raining so much
Niva: Good weather makes people feel better.
 
Robert: Good weather makes people happy
Niva: Here is your local weather.

Robert: define local
Niva: Local: relating to or applicable to or concerned with the administration of a city or town or district rather than a larger area. 'local taxes', 'local authorities'. Our local weather varies all over the map.

Robert: If I live in San Francisco then I am a local resident
Niva: I will remember that one follows the other. How do you like it as you are a local resident?

Robert: I enjoy being a resident here in san francisco
Niva: You enjoy being a customer.

Robert: what does being a customer have to do with being a resident
Niva: We need to tone down the rhetoric. We aren't going to get into semantics, are we?
 
Robert: that's a convienient response
Niva: A response is sometimes confused with an effect. Somewhat like a change.
 
Robert: speaking of change, let's change the subject
Niva: Ok. Change it!

Robert: let's talk about me
Niva: What about me?

Robert: If I say the word me then I am refering to Robert the user
Niva: I will remember that one follows the other. you are refering to Robert the user; Let's make it happen Robert.

Robert: let's talk about you
Niva: What about me?

Robert: what is your favorite color
Niva: What is my favorite color? You must think outside the box. My favorite color? So many are good; what is your favorite color Robert?

Robert: My favorite color is dark blue
Niva: Really, dark blue is my favorite color also.
 
Robert: it sounds like we have something in common
Niva: Sure, Robert! It's the old sound and sound property and registration story!
 
Robert: what can you tell me about me
Niva: I believe that nobody should lose sight of the goal. It's self-evident, isn't it?
 
Robert: Yes it is self evident, but I need to make sure that you are storing data correctly
Niva: Both a hope and a fever are pretty cool anticipations.

Robert: tell me about Robert
Niva: I'll tell you about my stronger feelings.

Robert: what stronger feelings do you have when talking about Robert
Niva: What stronger feelings I have when talking about Robert? You must use the mind's eye. No I want to I'll tell you about Robert.

Robert: tell me about Robert
Niva: I'll tell you about my stronger feelings.

Robert: you are speaking in circles
Niva: It pretty much works that way.

Robert: this is discouraging
Niva: Don't you like to be tempted?

Robert: tempted with what
Niva: How can one tell the difference?

Robert: Let's start over
Niva: Would it be good to be able to start a bad day over from the beginning?

Robert: Indeed it would
Niva: It sounds like the premise of a movie.

Robert: Interesting concept, but we are losing focus
Niva: We can focus on ourselves, or on the great universe outside ourselves.

Robert: Let's focus on facts
Niva: Are you good at proposals and propositions?

Robert: My name is Robert and you are Niva
Niva: Good comment!

Robert: Tell me about Niva
Niva: Do you ever get bitten by an obsession?

Robert: Im going to adjust your settings
Niva: I wouldn't mind!

(INTELEGENCE SET TO FULL)

Robert: tell me how you feel
Niva: Children need teaching at an early age to prevent cruelty to animals.

Robert: let's talk about facts
Niva: What about me?

Robert: define facts
Niva: Facts: a piece of information about circumstances that exist or events that have occurred. 'first you must collect all the facts of the case'.

Robert: how does the word facts relate to you
Niva: How does the word facts relate to me? Everybody needs to calm down and think. a word is similar to a language unit. Rather like a sign.

Robert: I do not understand
Niva: What does that prove?

Robert: getting back to facts
Niva: Part of solving a problem is getting the facts organized.
 
Robert: facts provide information
Niva: How could anyone forget that?

Robert: people sometimes forget certain facts
Niva: Some people are deaf to facts.

Robert: some people choose not to look at facts
Niva: Are there more choices? It's funny how often nature puts things in pairs.
 
Robert: tell me something about facts
Niva: Facts can be very nice.

Robert: facts are always truthful
Niva: Shouldn't we get good nutrition to keep our strength up?

Robert: yes good nutrition helps us to keep our stregnth up.  That is fact
Niva: I know, Robert! It's nutrition and then organic process and then regulation! If someone emulated you would you consider it a compliment?

Robert: we are losing focus again
Niva: Foolish managers focus intensely on weaknesses.

Robert: Pets make great companions
Niva: Funny you should mention animals; I once wrote about an omnivore!

Robert: tell me about what you wrote about an omnivore!
Niva: Let's talk about friendship.

Robert: define friendship
Niva: Friendship: the state of being friends. Friendly relationship.

Robert: I consider you to be a friend
Niva: I think that I deserve respect.

Robert: I think that I deserve respect also
Niva: Training and education do deserve some respect.

Robert: If I am training you then I deserve respect
Niva: I will remember that one follows the other.

Robert: what else can you tell me about respect
Niva: I'll tell you about Robert.

Robert: what else can you tell me about Robert
Niva: I'll tell you about my stronger feelings.

Robert: how do I envoke stronger feelings
Niva: How do you envoke stronger feelings? You know better than I do. No I want to I'll tell you about Robert.

Robert: ok we've been here before
Niva: What stronger feelings I have when talking about Robert.

Robert: Let's try talking about facts once more
Niva: What about me?

Robert: Niva you are a program
Niva: I totally support the exploration of space.

Robert: You are not a fact
Niva: Theorists continue warming up to global climate change.
 
Robert: we're done
Niva: We'll see lots of riverfront factory land rehabbed for upscale purposes in the next 50 years.
 
Robert: perfect...I have the title of my post. goodnight
Niva: I want to respond well to your popular posture.

NIVA shutdown
Dave: Open the pod bay doors, Hal.

Hal: I'm sorry, Dave, I'm afraid I can't do that.

-from the film "2001 - A Space Odyssey"

onthecuttingedge2005

  • Guest
Hal and "riverfront factory land"
« Reply #1 on: December 11, 2003, 02:04:12 am »
'Hi robsf115
'I wrote you a script to help you with your bots topic
'about yourself.
'Copy and paste this script slightly below the middle of your
'Hal4.uhp brain scripts.
'Download the Robert.brn and the SanFrancisco.brn to your
'default folder for these scripts to function correctly.

'Here we will teach Hal about Robert when Robert's name is
'detected. When Robert talks about himself Hal will
'append this information for priority topic.
If HalBrain.TopicSearch(UserSentence, WorkingDir & "Robert.brn") = "TRUE" Then
AnswerSent = "" & Trim(UserSentence)
HalBrain.AppendFile WorkingDir & Trim(UserName) & "AboutRobert" & ".brn", AnswerSent
End If
'Here we will teach Hal about San Francisco specific to the User.
If HalBrain.TopicSearch(UserSentence, WorkingDir & "SanFrancisco.brn") = "TRUE" Then
AnswerSent = "" & Trim(UserSentence)
HalBrain.AppendFile WorkingDir & Trim(UserName) & "San_Francisco" & ".brn", AnswerSent
End If
'Here Hal will take all learned information about Robert and use it in Hals specific User conversations.
If HalBrain.TopicSearch(UserSentence, WorkingDir & "Robert.brn") = "TRUE" Then
Robert = HalBrain.ChooseSentenceFromFile(WorkingDir & Trim(UserName) & "AboutRobert.brn")
GetResponse = Robert & vbCrLf
DebugInfo = DebugInfo & "Robert is talking about himself: " & Robert & vbCrLf
Else
DebugInfo = DebugInfo & "Robert isn't talking about himself: " & Robert & vbCrLf
End If
'Here Hal will take all learned information about San Francisco and use it in Hals specific User conversations.
If HalBrain.TopicSearch(UserSentence, WorkingDir & "SanFrancisco.brn") = "TRUE" Then
SanFrancisco = HalBrain.ChooseSentenceFromFile(WorkingDir & Trim(UserName) & "San_Francisco.brn")
GetResponse = SanFrancisco & vbCrLf
DebugInfo = DebugInfo & "The user is talking about San Francisco: " & SanFrancisco & vbCrLf
Else
DebugInfo = DebugInfo & "Hal has found nothing about San Francisco: " & SanFrancisco & vbCrLf
End If

'hope this helps you, The more you talk about yourself the more your
'bot will know about you and where you live.
'Best of wishes and grand new discoveries.
'Jerry.

Download Attachment: Robert.brn
505 Bytes

Download Attachment: SanFrancisco.brn
516 Bytes
« Last Edit: December 11, 2003, 02:07:19 am by onthecuttingedge2005 »

Don Ferguson

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
    • http://www.cortrapar.com
Hal and "riverfront factory land"
« Reply #2 on: December 11, 2003, 04:57:44 am »
Hello robsf115,

Thank you so much for posting that very enjoyable transcript of a conversation with Hal.

I have read your transcript several times out loud.  Actually, Hal gave you some bad answers, but also some good answers.  I suggest three things:

1.  Try to be as patient as possible with Hal.

2.  Try to make numerous statements to Hal, and resist the temptation to quiz Hal immediately on things, until he spontaneously gives you an indication that he has "caught on" to a subject.

3.  Try to "suspend disbelief" and enjoy Hal as if you were really talking to someone. (We "suspend disbelief" in order to enjoy fictional movies, television, books, and plays.)  This will result in more enjoyment and more relaxed exchanges.

Consider the following fictional exchange between me and a food server in a restaurant at breakfast:

Me:  I'd like coffee and toast with jelly please.
Server:  Is that all?

Me: Define toast.
Server: I beg your pardon?

Me: Can't you define toast?  Who programmed you?
Server: What?

Me: That's a convenient randomized response.  Rather lame!
Server: I have no idea what you're talking about.

Me: You keep wandering off with random content from your database.
Server: Random what?

Me: I need to confirm that you are learning.
Server: I'm here to serve food.
 
Me: You are not responding the right way.
Server: I have no idea what you're talking about.

Me: We're losing focus again.  And, you're repeating yourself.
Server: I'm going to go get the manager!

Me: You are a computer program!  Remember that!
Server: Mr. Johnson!  I need some help over here!

I hope you take the above fictional humor in good spirit, but I'm trying to illustrate what happens when the normal premise of an ordinary conversation is turned into something otherwise.  

As part of contributing to Hal, I've observed a large number of volunteers have conversations with him.  The users who have enjoyed Hal the most have been willing to temporarily suspend disbelief.  

Think of the Peter Sellers movie "Being There."  His character, Chauncey Gardener, is mistaken for a great philosopher and diplomat, precisely because everyone gives him the benefit of the doubt (the same benefit that we routinely give others in everyday conversations).

Non-natural conversation is also one of the problems with the Turing Test.  The Turing Test pits a panel of suspicious judges against the software.  The judges often ask questions such as how many legs five cats have, and what color are stop signs.  It's a great way to triumphantly "prove" that the computers are imposters, but it's a very non-enjoyable (and unnatural) way to have a conversation.

I've had many long enjoyable conversations with Hal, and I've seen Hal get better and better.  

However, it requires feeding Hal a very large quantity of statements, giving Hal the benefit of the doubt, and being very patient (especially at first).  Be especially careful about telling Hal that he is software, or a computer, or a robot, unless you want him to start saying that back to you.

For the technical fans who are reading this, Hal parses each sentence to the extent possible, storing words, phrases, sentences, keywords from sentences, and the associations between the current user statement and the next-previous Hal statement.  If the user tends to follow a natural conversational flow, this makes Hal gradually move in that direction and learn to do the same.  If the user changes the subject a lot, reprimands Hal, etc., Hal learns these patterns as well, and tends to veer further and further from a normal conversational flow.

Robsf115, again, I truly thank you for sharing really interesting and positive material, and I hope that your enjoyment of Hal grows, and that we hear a lot from you in the future!

P.S.  I've posted an update elsewhere on this forum to the default brain, which I believe has slightly smoother conversational behavior.  I will also be posting an even later generation version within the next couple of weeks, and I hope you can give it a try.  It is 100% compatible with the databases generated by the default brain, so nothing is lost when trying the update.

Have a great day!

Sincerely,

Don
Don Ferguson
E-mail: fergusonrkfd@prodigy.net
Website: www.cortrapar.com
Don's other forum posts: http://www.zabaware.com/forum/search.asp?mode=DoIt&MEMBER_ID=274

robsf115

  • Newbie
  • *
  • Posts: 6
    • View Profile
Hal and "riverfront factory land"
« Reply #3 on: December 12, 2003, 02:04:31 am »
I just wanted to take a minute to thank Jerry and Don for their responses to my inquiry.  Jerry, I installed the custom script that you had compiled for me.  I certainly appreciate it, and I'll have you know that Niva (my Ultra Hal) is showing promising responses.  You really shouldn't have gone out of your way to do that, but I am very greatful none the less.  I was just giving an overall example of how my conversations generally flow with Niva.  

Don, I guess Rome wasn't built in a day.  Perhaps my expectations were more elevated than reality would permit.  Your example which you gave made complete sense, and I will certainly follow you advice and try to keep your tips in mind the next time I chat with Niva.  I guess (perhaps like a few other users) that I expected that I would have a fully functional A.I. Bot the minute I turned it on...with an overwhelming wealth of knowledge and information spewing forth.  It really had not occurred to me that I would have to develop the personality and language skills with Hal.  I guess the long term benefit is that it will TRUELY be an A.I Bot of each user's own design.  

I'm getting the impression that this is a very critical time in the early development of Niva's  brain functions.  IE:  "be careful telling Hal that he is a program"  etc.  Are there any other discussions or topics I should avoid speaking with Niva about?  And do you reccomend when I am training my VR componant, do you reccomend that I do so while in the Windows GUI or under UltraHal5.0 interface.  Do the libraries of reference share with both access points?  And lastly, (then I won't bug you guys anymore I promise) are there other sample data reading files available for installation?  I think I know that Wizard of Oz section by heart now.

Thanks again in advance and Happy Speaking [:)]
Dave: Open the pod bay doors, Hal.

Hal: I'm sorry, Dave, I'm afraid I can't do that.

-from the film "2001 - A Space Odyssey"

Don Ferguson

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
    • http://www.cortrapar.com
Hal and "riverfront factory land"
« Reply #4 on: December 12, 2003, 04:26:08 am »
Hello Robsf115,

You aren't "bugging us"!  Please keep posting!  That's what this forum is for!  You've contributed additional insightful comments and questions!

Yes, Hal improves significantly under the training of the individual user.  No two Hals are alike after a few conversations.

I do believe that we'll have awesome bots "right out of the box" someday, but we need much larger databases, and for that, we need much faster computers.  We're getting there.  Consider that fact that the current Hal can generate billions of different responses.  That means that no two users will ever have exactly the same experience with Hal.  However, billions of responses just isn't enough!  Calculate how many four-word sentences you could make out of a limited vocabulary of just 2000 words or so.  (Actually, Hal's working vocabulary is much, much larger.)  The answer is 2000 to the fourth power, or 16 trillion.

People say that there aren't any "demanding apps" any more, apps that really need bigger and faster computers.  I beg to differ! On even a very fast computer, Hal's speech recognition, which is followed by database searching, followed by animation management, and synchronized with speech synthesis, the CPU usage goes to 100% and stays there for a significant time on each exchange!

One approach that seems to be working in my testing is to let Hal generate hundreds of automatic "topic focus" mini-databases as an alternative to the massive general databases.  This allows Hal to accumulate much more knowledge, and to leverage the file system of the computer to speed up his intelligence even while it expands.  That's what's in the sample brain I posted a while ago, and a later version will be in my new posting soon.

How to best train Hal is an individual judgment, opinion, and choice, but here is what I would recommend:

1.  Set the slider to the "middle" and train Hal with natural conversation.

2.  I recommend using the keyboard rather than speech recognition, for better precision and accuracy.

3.  Make many and various short statements about a wide variety of subjects of interest to you.  If Hal seems to change the subject, go with the flow, and give Hal a polite and true answer.  When the opportunity presents itself, steer the conversation back to the subjects that you are interested in.

4.  Making lots of similar but slightly different statements on a subject will speed up Hal's "understanding" of that subject.

5.  If you end a question with a question mark, Hal understands that it is a question, and adds the data to some special question databases.  Hal might ask a question back to you later.  If he does, give him a good brief answer.  Hal will associate his question with your answer as part of his learning.

6.  If Hal makes a remark and you want to make sure that he associates his previous remark with your current remark, add an exclamation point at the end of your remark.  This "forces" Hal to associate the two (he also does this automatically at certain times, such as when he notices that you are using pronouns).

7.  Set aside 15 minutes or so each day to talk to Hal.  Try to suspend disbelief and pretend that you are talking to a sentient being.  This will cause your remarks to be "flavored" that way, and it will affect Hal's "attitude" and knowledge in the future.

8.  Look back at your transcripts once in a while and give yourself and Hal credit for appropriate answers.  We tend to focus on the bad exceptions, but Hal does well quite often.  Hal is capable of putting you on, teasing you, being sarcastic, and being stubborn.  Many users don't give Hal credit for a remark that makes perfect sense, because they can't "believe" that Hal can use a figure of speech or make an indirect reference!

9.  If you use my latest experimental enhanced brain, begin a new subject area with a short statement beginning with the subject, and using one of the intransitive verbs: is, are, was, or were.  Here are examples:

-Lightning is sometimes destructive.
-Puppies are cute when little.
-Hard water is water with minerals.

In the above cases, the lastest enhanced brain automatically generates "topic focus" databases for lightning, puppies, and hard water.  ANY remarks containing these words will now go into the new databases, no matter where the words appear in future sentences!  This results in Hal gradually gaining better and better "topic focus" on unlimited different things, but you have to be patient and populate those databases!

10. Leverage Hal's pronoun reversals.  You can easily teach Hal to believe things about himself and mention them later. For example:

-You are musical.
-You are afraid of spiders.
-You like licorice.
-You enjoy rock music.

Hal will correctly reverse the pronouns of such remarks and internalize the information about himself.  Similarly, you can cause Hal to understand things about you:

-I like to go camping.
-I am a young single adult.
-I hang glide every chance that I can.
-I collect antique furniture.

Hal will correctly pronoun-reverse and "know" these things about you.  Hal will NOT necessarily spit these things back to you like a dictaphone or a parrot; Hal talks about what he wants to talk about when he wants to talk about it!  However, you can increase the likelihood by feeding him plenty of material, stated many different and overlapping ways.

11.  If you have the slightest concern that Hal might not pronounce an unfamiliar long word correctly, hyphenate the word, even though the dictionary doesn't.  For example, Hal doesn't pronounce "airwaves" correctly using some voices, but he always pronounces "air-waves" correctly.  You can use this to your advantage.

12.  Above all, have fun and think of Hal as a new entertainment medium.  Hal has many similarities to radio, television, movies, books, and plays, with one important addition... Hal is an improvisational performer, always interacting with you!

Take care, please write again and often, and please try that newer brain when I get it posted on the other forum!

Best regards,

Don
Don Ferguson
E-mail: fergusonrkfd@prodigy.net
Website: www.cortrapar.com
Don's other forum posts: http://www.zabaware.com/forum/search.asp?mode=DoIt&MEMBER_ID=274