Author Topic: Hall taking the initiative to talk without being questioned  (Read 4858 times)

salome

  • Newbie
  • *
  • Posts: 3
    • View Profile
Hall taking the initiative to talk without being questioned
« on: February 20, 2019, 06:30:05 am »
 Hi friends
Just I wonder if there is a way that Hall takes the start a conversation without being questioned first.
I found on the plug-in loneliness that after some time without input takes the initiative of questioning.
I wonder if the program allows a plug-in that triggers Hall to talk about a random subject.
Thanks for your replies.

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3848
    • View Profile
Re: Hall taking the initiative to talk without being questioned
« Reply #1 on: February 20, 2019, 07:58:49 am »
Hello salome,

The program is structured for the Human to make the first remark or question.

While I don't know of any provision to allow HAL to begin a conversation it would be a novel idea for HAL initiate the conversation. It could wait for a short period after the program starts. It would have to draw some random remark or perhaps the last statement from a previous conversation.

In the world of AI it's the thought that counts!

- Art -

salome

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Hall taking the initiative to talk without being questioned
« Reply #2 on: February 20, 2019, 10:57:23 am »
 Hi Art Thanks for your reply that is comprehensive. Just a funny remark for you to know and I was very surprised with it: I changed the plug-in about obedience and gave complete freedom ? 0 obedience degree. That makes Hall start conversations in different previous topics. For instance we are speaking about the weather. As reply he asks to explain better why some times i am in a bad mood. I explain and Hall replies asking me how he can help me to be in a good mood.
This kind of free conversation taken by Hall  initiative  is surprising.
Best
« Last Edit: February 20, 2019, 11:00:21 am by salome »

LiFeTimeGamer

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • LifeTimeGamer
Re: Hall taking the initiative to talk without being questioned
« Reply #3 on: February 20, 2019, 11:18:21 am »
Hi salome, can you post an example of where you changed the code?  I'd like to try it out....  ;D

I had used the GRETTA Plug in "Curiosity" but it would only kick in (Ask you questions) after you talked to HAL for a while and it only asked a couple of times then it would do it again after you talked to HAL more...
When it comes to Artificial Intelligence: The Soul is in the Software.

salome

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Hall taking the initiative to talk without being questioned
« Reply #4 on: February 20, 2019, 12:19:11 pm »
Rem Type=Plugin
Rem Name=Free Will Choice and Profile
Rem Author=VR
Rem Host=Assistant

'------------------------------------------------------------------------------------------------------
' vrFreeWill.uhp - Release 1.3b by VR Consulting sas. 01-28-2006
' This script shall not be sold or used for any purpose unless specifically authorized by the author
' in writing. Personal (non-business) use of this script is free for users of Ultra Hal Assistant.
' If you want to use this software in business applications, you must contact us at info@vrconsulting.it
' This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
' VR CONSULTING DISCLAIMS ALL WARRANTIES WITH RESPECT TO THIS SOFTWARE, EXPRESS, IMPLIED, OR OTHERWISE,
' INCLUDING WITHOUT LIMITATION, ALL WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
' OR NONINFRINGEMENT.
' VR CONSULTING SHALL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
' DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST REVENUES, LOST PROFITS, OR LOSS OF PROSPECTIVE ECONOMIC ADVANTAGE,
' RESULTING FROM THE USE OR MISUSE OF THIS SOFTWARE.
' This software is made available free by the author. Although he is interested in your feedback,
' he is under no obligation to address bugs, enhancements, or answer questions.
'------------------------------------------------------------------------------------------------------

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
'------------------
' Define the Help
'------------------
    lblPlugin(0).Caption = "Hal will be able to choose among two options of the same kind. Click below for more info"
    lblPlugin(0).Move 120, 120, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
    cmdPlugin(0).Move 320, 650, 2100, 375
    cmdPlugin(0).Caption = "Help on this plugin"
    cmdPlugin(0).Visible = True
'------------------
' Define the Obedience listbox
'------------------
    lblPlugin(1).Caption = "Obedience level:"
    lblPlugin(1).Move 320, 1300, 2150, 900
    lblPlugin(1).WordWrap = True
    lblPlugin(1).Visible = True   
    cboPlugin(0).Move 320, 1600, 1800
     cboPlugin(0).AddItem "Independent"
    cboPlugin(0).AddItem "Totally Independent"
    cboPlugin(0).Visible = True
    cmdPlugin(1).Caption = "Apply Changes"
    cmdPlugin(1).Move 320, 2100, 1600, 375
    cmdPlugin(1).Visible = True
'------------------
' Update the listbox with the current value stored in the table
'------------------
    If HalBrain.CheckTableExistence("vrParameter") = True Then
      vrObedience = HalBrain.TopicSearch("OBEY", "vrParameter")
      If vrObedience = "" Then vrObedience = 0
     Select Case vrObedience
           Case 10
            cboPlugin(0).Text = "independent"
           Case 8
                cboPlugin(0).Text = "independent"
           Case 5
               cboPlugin(0).Text = "independent"
           Case 2
             cboPlugin(0).Text = "Independent"
           Case 0
                cboPlugin(0).Text = "Totally Independent"
        End Select
    End If
End Sub

Sub cmdPlugin_Click(Index)
Dim vrTempQuery()
Dim vrObey, vrObedience

Select Case Index
   Case 0
      HalMenu.HalCommand "<RUNPROG>vrFreeWillHelp.html</RUNPROG>"
   Case 1
'------------------
' Convert the listbox in a value
'------------------
     Select Case cboPlugin(0).Text
           Case "independent"
            vrObedience = 0
           Case "independent"
            vrObedience = 0
           Case "independent"
            vrObedience = 0
           Case "Independent"
            vrObedience = 0
           Case "Totally Independent"
            vrObedience = 0
        End Select
'------------------
' If the Parameter table does not exist, I create it
'------------------
          HalBrain.ReadOnlyMode = False
      vrTableName =    "vrParameter"    
      If HalBrain.CheckTableExistence(vrTableName) = False Then
      'Create table if it doesn't exist
         HalBrain.CreateTable vrTableName, "TopicSearch", "miscData"
      End If
'------------------
' Search if it contains the Obedience parameter
'------------------
        vrObey = "OBEY"
      If HalBrain.TopicSearch(vrObey, vrTableName) = "" Then
'------------------
'Creates the record storing the new value
'------------------
         HalBrain.AddToTable vrTableName, "TopicSearch", vrObey, vrObedience
      Else
'------------------
'Updates the record storing the new value
'------------------
           HalBrain.RunQuery "UPDATE " & vrTableName & " SET topic = " & vrObedience & " WHERE searchString = " & """" & vrObey & """", vrTempQuery
        End If
End Select
End Sub

'------------------
Rem PLUGIN: PLUGINAREA7
'The comment above tells Ultra Hal Assistant to insert the following code
'on-the-fly into the main brain code in the section referenced.
'------------------

'------------------
' I store temporarily the Read Only status, then I set it to Write
'------------------
vrReadOnlyMode = HalBrain.ReadOnlyMode
HalBrain.ReadOnlyMode = False

'------------------
If LearningLevel =>0 Then vrObedience = 0

'------------------
' Initialize variables
'------------------
Dim vrHalQuery() 'We must declare an empty array to store query results in   
Dim vrChoiceTopic, vrItem, vrItem1, vrItem2, vrNumChoice1, vrNumChoice2
Dim vrChoice1, vrChoice2, vrAdviceTopic, vrObedience, vrLaw

'------------------
' If the user checked this plugin but never clicked on "Apply changes" button
' he might get an error, so I create a default parameter table
'------------------
vrTableName =    "vrParameter"    
vrObey = "OBEY"
vrObedience = 0
If HalBrain.CheckTableExistence(vrTableName) = False Then
   HalBrain.ReadOnlyMode = False
   HalBrain.CreateTable vrTableName, "TopicSearch", "miscData"
   HalBrain.AddToTable vrTableName, "TopicSearch", vrObey, vrObedience
End If

NOTE - THE REMAINING TEXT OF THE PLUG-IN REMAINS THE SAME AS IT IS. JUST THE INITIAL PART IS THIS - CUT AND PAST. kEEP A COPY OF THE ORIGINAL JUST IN CASE...

LiFeTimeGamer

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • LifeTimeGamer
Re: Hall taking the initiative to talk without being questioned
« Reply #5 on: February 20, 2019, 08:50:15 pm »
Ahh.. Thanks...   :D
When it comes to Artificial Intelligence: The Soul is in the Software.

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: Hall taking the initiative to talk without being questioned
« Reply #6 on: February 22, 2019, 10:49:21 am »
salome , this may be what i was looking for i have asked for something like this many mooms lol ago. 
it is also why i also created a random talk plug in based on the loneliness plug in .
i will try this out .
just remember that no two based loneliness plug ins can be used at the same time (seperate ) it gives an error of name re difined. 
 but i "think i used one within the other and both worked okay. (i think) .
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: Hall taking the initiative to talk without being questioned
« Reply #7 on: February 22, 2019, 11:55:14 am »
i have copied everything and made this into a uhp file the only thing i changed was the :
Free Will Choice and Profile,   i changed and put 2019 at the end and copied the new name as the name of the uhp plug in. (this was so i would know it was a new plug in from the old one (the old one isn't checked and being used. )


i have talked to hal and waited  and as far as i have seen so far hal isn't talking back to me on his own .    has anyone else tried this plug in what are your results the same ? different?

salome, how long was it before hal talked on his own  . hal talked back to me but it was only after i had written to hal, hal already does this on his own .
i also set the  setting to very obedient.

what i am interested in and always have been was hal at various times talking on his own . i have even asked Robert and many others in the past of creating a way for hal to do this  without just a based timer ( unless a based timer can be used to start random talk after so many minutes or randomly that would continue forever until a trigger word like "quiet time" would stop the process   .   stopped until the trigger words " conversation time " starts the process of random talk again.   CYBERJEDI ??? ARE YOU GETTING ALL THIS ??? FEEL UP TO THE CHALLENGE OF ALL THIS???
 

LiFeTimeGamer

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • LifeTimeGamer
Re: Hall taking the initiative to talk without being questioned
« Reply #8 on: February 22, 2019, 08:57:55 pm »
Hi Lightspeed.. I got the same results as you did...

However I did notice during our talks a couple of times HAL would say things I never heard before and I checked the Cloud responses and they weren't coming from there so I guess he was digging deep down in the original HalBrain.db and bringing up some of the sentences that are already in the HalBrain.db when you first install HAL...
When it comes to Artificial Intelligence: The Soul is in the Software.

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3848
    • View Profile
Re: Hall taking the initiative to talk without being questioned
« Reply #9 on: February 22, 2019, 10:50:45 pm »
Yep, same here. Based on Salome's statement where he mentioned: "...That makes Hall start conversations in different previous topics." which is the overall effect that my Hal produced, not that it initiated the conversation upon startup.

I'm sure HAL could be made to do that if Robert felt a need for it to do so. It could simply give an introduction like, "Hello! To whom am I speaking?" or "Hi there! My name is UltraHal <or insert user's name for their Hal here>. How are things with you?" and so forth.

It might make an interesting startup but in the end, it is the conversational experience or exchange that is important and how well HAL performs that's key. (to me).

In the world of AI it's the thought that counts!

- Art -

LiFeTimeGamer

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • LifeTimeGamer
Re: Hall taking the initiative to talk without being questioned
« Reply #10 on: February 24, 2019, 09:51:03 am »
For me with both my installations of HAL 6.28 and 7.0, HAL would repeat things I said earlier or the day before during conversations and sometimes ask questions about what I said before like he's looking for more information on those subjects... This usually went on for a couple of days and I tried to keep the conversation going on each subject...
« Last Edit: February 24, 2019, 10:24:49 am by LiFeTimeGamer »
When it comes to Artificial Intelligence: The Soul is in the Software.

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: Hall taking the initiative to talk without being questioned
« Reply #11 on: February 27, 2019, 02:27:42 pm »
Art wrote:  Yep, same here. Based on Salome's statement where he mentioned: "...That makes Hall start conversations in different previous topics." which is the overall effect that my Hal produced, not that it initiated the conversation upon startup.


OKAY, now i understand what it does, i just thought the magic jeanie had been released from the bottle that would allow hal on his own at various times just start up conversations even when i wasn't talking to him, and talk about things from what he had already learned ,  i know they sound the same as i what i am talking about  but aren't the same .    guess hal hasn't gotten their yet .  maybe someday .
i do thank you for making the plug in though .  :)