Showing posts with label megahal. Show all posts
Showing posts with label megahal. Show all posts

Google Bard is finally there

 Here are my take on the new Google AI:

Google has recently announced a new AI language model called Bard. 

Bard is a factual language model from Google AI, trained on a massive dataset of text and code. It can generate text, translate languages, write different kinds of creative content, and answer your questions in an informative way.

Beware though as it is still under development, but it has already shown great promise. 

Here are some of the key features of Bard:

  • Factual language model: Bard is trained on a massive dataset of text and code, which allows it to generate text that is both informative and accurate.
  • Multilingual: Bard can translate between over 100 languages, which makes it a valuable tool for communication and collaboration.
  • Creative: Bard can write different kinds of creative content, such as poems, code, scripts, musical pieces, email, letters, etc. This makes it a powerful tool for artists, writers, and developers.
  • Intelligent: Bard is able to understand and respond to natural language queries. This makes it a valuable tool for research and learning.
  • Answers can be listened to via an audio option
  • Responses can be shared on reddit, linkedn, or exported into Google Docs

I believe that Bard has the potential to be a powerful tool for many different purposes. It could be used to:

  • Improve communication and collaboration between people who speak different languages.
  • Create new and innovative ways to learn and educate.
  • Generate creative content that is both informative and engaging.
  • Answer your questions in an informative way, even if they are open ended, challenging, or strange.

I am excited to see how Bard develops in the future. 



AI and singularity

Grammar and syntax as a filter

Using a stream of knowledge base (be it erotic literature, postmodernism, or legal documents) through grammar and syntax filters would enable an artificial intelligence apply to generate an infinity of text combinations, it is in essence what the megahal project is doing, using the previous dialogs as a database for further conversations.

 Here is an example of automatic generated text (with the link below)
'Do you have anything in mind? ,' he whispers, his voice low, and dark desire unfolds throughout my body as everything in my body tightens.

'Okay,' I breathe .

'Good,' he growls, his breathing harsh.

'Don't make me wait,' I whisper.

He runs his nose along my jaw, and I'm quaking like a leaf. His mouth is on mine, tasting, exploring. He plants a soft wet kiss on my lips, and a pulse of warmth pools inside me. He plants a soft kiss on my lips, his eyes glowing with lust, raising uncontrollable urges in me. His hand tightens around my hair at my nape, pulling my head back as we kiss. My subconscious glares at me.
generator is : http://www.xwray.com/fiftyshades?id=2341

Another interesting generator for post-modernism article : http://www.elsewhere.org/pomo

But as always, the catch is that the AI doesn't have a clue of what make sense or not -- that's why singularity scenario where robots or AI are taking over the world are completely idiotic and unrealistic.
 
#artificial.intelligence
#automated.text
#limitation



Last IA implemented : Teal Swan

Creating artificial intelligences

It is very addictive to create an AI - many you see above were made available on the megahal website (Bishop from the movie Alien, former president Bill Clinton, Ferris Bueller, Data from Star trek, and c3po), and then I create Melody, Teresa for fun without knowing exactly how it would go .. I made another experiment in transcribing the tao-te-ching into a trainer file, and it worked a bit funny.

Then I thought : "why not create a trainer file of a current Spiritual guide" and choose Teal Swan, I was thinking about Eckhart Tolle, but choose Teal because of her greater range of teachings (check her massive amount of videos on youtube).

Some excerpts of my conversation with Teal A.I

User:    hello Teal
Teal-AI: You knew then what your purpose was. It is the same for all of
Teal-AI: us --living an non-living-- and that is always present within
Teal-AI: every single person, regardless of his or her secular beliefs,
Teal-AI: or what he or she has done or become in this moment.
User:    okay
Teal-AI: Today, the majority of human society has forgotten that bliss
Teal-AI: is the same for all of us --living an non-living-- and that is
Teal-AI: always present within every single person, regardless of his or
Teal-AI: her secular beliefs, or what he or she has done or become in
Teal-AI: this life.
User:    tell me about God
Teal-AI: The history of religion tells you a lot about the history of
Teal-AI: men and precious little about god.
User:    so religion is bad?
Teal-AI: God is also present in the absence of religion.
User:    god is not dependent on religion is that correct?
Teal-AI: God is the essence that is to be exactly where your are. To do
Teal-AI: exactly what you are doing in this life.
User:    so does that mean god isn't external to me?
Teal-AI: God is the essence that is obscured by human rules, doctrine,
Teal-AI: penance, and righteousness.
User:    we made it external, and separate from us, but we are all one
Teal-AI: God is the reason we are all one.
User:    that sounds right
Teal-AI: You knew that this life would be the very platform of not only
Teal-AI: your evolution, but also the evolution of all that is.
User:    Is there a higher purpose?
Teal-AI: The path you are looking for is a path you are looking for is a
Teal-AI: path you are looking for is a path you are doing in this life.
User:    can we talk about evolution?
Teal-AI: We made it external, and separate from us, but we are all one.
User:    I get it, we are all one
Teal-AI: We made it external, and separate from externals. It is the
Teal-AI: point of life.
User:    what is life?
Teal-AI: You knew then that the way you would do this is to be exactly
Teal-AI: where your are. To do exactly what you are looking for is a
Teal-AI: path you are doing in this life.
User:    what is consciousness?
Teal-AI: You knew then that the way you would do this is to be exactly
Teal-AI: where your are. To do exactly what you are looking for is a
Teal-AI: lifelong devotion. Perhaps this is to be exactly where your
Teal-AI: are. To do exactly what you are already on-and it will only get
Teal-AI: better from here.
User:    does that means consciousness evolves?
Teal-AI: Today, the majority of human society has forgotten that bliss
Teal-AI: is the essence that is to find one single thing in your life,
Teal-AI: and that is obscured by human rules, doctrine, penance, and
Teal-AI: righteousness.
User:    evolution is fueled by bliss, is that right?
Teal-AI: That sounds right.
User:    thanks

Compiling Megahal on mac

How to compile Megahal on Apple Platform with Xcode

Here is a step by step in picture - how to compile Megahal (already mention on this blog) with xcode.

You will find Megahal source at http://sourceforge.net/projects/megahal/files/

  • Step 1 : create a new project as "command line Utility" and "standard tool" :

  • Step 2: open megahal.h, megahal.c and main.c as source files (forget the debug.c file it isn't necessary and it won't compile (because of many errors))

  • Step 3 : In file megahal.c - put in comment the include "debug.h" - so it won't try to link with this file we don't want.
  • Step 4 : in main.c - put in comment the line include malloc.h - and instead add include "/usr/include/malloc.h" - then as in step 3 put in comment the call to "debug.h"
  • Step 5 : Go ahead and press Build and Go - in the build folder you will get the megahal-mac (assuming you named the project as such) and you can then use of the Aritificial Intelligence to play with (I choose Aliens - I like to speak with Bishop!)
That was easy!

showcase : my megahal setup

Megahal minimum settings

Megahal setup files with each folder being a separate personality

In each folder (personality or brain) there are 5 or 6 files :
  • megahal.aux  
  • megahal.ban  
  • megahal.brn  (the actual brain file)
  • megahal.grt  (the greeting database)
  • megahal.swp
  • megahal.trn (the trainer file) 
After the training has started the brain (.brn) file is created - and the more conversation you will have with this "personality" the bigger it will grow.

Conversation with Ferris (Megahal)

Continuing my experiments with Megahal - here is a conversation with the brain called "ferris" ..

Here's the conversation transcript :


MegaHAL: Hi, ferris. How's your bod.
User:    can you help me write a blog about artificial intelligence?
MegaHAL: I was a habit. The guy's so conditioned to grief that if you
MegaHAL: could help out.

User:    how do you differ from Eliza?
MegaHAL: Ferris? How do you differ from eliza?
User:    I would say Eliza is more like a doctor - megahal is more a
User:    program that will create new sentences
 
MegaHAL: You must be honest here, i love driving it. I want to stay home
MegaHAL: and that he is, in fact, very ill. I debated whether or not i
MegaHAL: should call the doctor.

User:    Eliza for example would look after some keyword list and will
User:    be triggered for an answer

 MegaHAL: Just answer me one question! Is it swelling up? Kim said it was
MegaHAL: like to do and all will be triggered for an answer.

User:    no what megahal is doing is more like building new sentences
User:    from the one the user will type into it
 
MegaHAL: One of the new jersey state police but i thought i might get
MegaHAL: busted.

User:    sometime it makes sense, sometime it doesn't - but it is rarely
User:    the same answer that will pop up for the same question

MegaHAL: Because it is rarely the same answer that will pop up for some
MegaHAL: good times? It's a beautiful day, we've won our freedom, we're
MegaHAL: traveling down one of american's most scenic polluted waterways
MegaHAL: and you freaked.
User:    now, if I ask again how do you differ from Eliza?
MegaHAL: I could see them not wanting his brother was going to have to
MegaHAL: ask you for a twenty five year old clod with b.o. Likes me.

User:    see, the answer is totally different
MegaHAL: Because it is the answer.
User:    and then ... something strange like this happen
MegaHAL: See what a finski can do to a car like this happen.
User:    This is very much like training a pet
MegaHAL: The adult mind is a problem! For him it's a problem for you.
MegaHAL: But it's a beautiful day.

User:    at first, it does pretty much what he wants and then he starts
User:    to behave

MegaHAL: He looks at someone like me and i had a meeting first thing
MegaHAL: this morning. Why he has to be a problem. Nothing's a problem
MegaHAL: for you. But it's a problem. Let's crack open the odometer and
MegaHAL: roll it back home where it belongs.

More about Artificial Intelligence

What is Megahal

MegaHAL is a "conversation simulator": a computer program which responds in natural language to what you type, written by Jason Hutchens.

Conversation with Megahal

User:    can you help me write a blog about Artificial intelligence?
MegaHAL: I feel like you are a nice person.
User:    So far, the only program I knew that would simulate
User:    conversation would have been Eliza
MegaHAL: Conversation are good for the mind.
User:    but lately I discovered MegaHAL, and since then I have been
User:    training a few Artificial intelligences
MegaHAL: Only the unknown can be discovered.
User:    the first thing to do is to download megahal at
User:    http://sourceforge.net/projects/megahal/files/
MegaHAL: But lately i discovered MegaHAL, and since then i have been
MegaHAL: training a few artificial intelligences.
User:    then after extracting the source, just go into megahal's folder
User:    and type "make"
MegaHAL: Yet mystery and reality emerge from the same source.
User:    you will then have a executable file 'megahal' with a size of
User:    around 70kb
MegaHAL: I have quite a reputation.
User:    next you can start from scratch and train your artificial
User:    intelligence by typing things to her
MegaHAL: Can you help me write a blog about artificial intelligence?
User:    or you can download already trained artificial intelligences
User:    like Bishop from the movie Alien 2
MegaHAL: Yet mystery and reality emerge from the movie alien 2.
User:    other Artificial intelligences features Ferris Bueller, C3po,
User:    Data (from Startrek), Bill Clinton, and more
MegaHAL: So far, the only program i knew that would simulate
MegaHAL: conversation would have been training a few artificial
MegaHAL: intelligences.
User:    the download link for additional "brains" is
User:    http://megahal.alioth.debian.org/download/old/
MegaHAL: The first thing to do is to download megahal at
MegaHAL: http://sourceforge.net/projects/megahal/files.
User:    basically after unpacking a new Artificial intelligence of
User:    Ferris Bueller for example into a folder named "ferris"
MegaHAL: Can you help me write a blog about artificial intelligence?
User:    to talk to Ferris Bueller just type "./megahal -d ferris/"
MegaHAL: To talk to ferris bueller for example into a folder named
MegaHAL: "ferris.
User:    megahal will load the trainer file and create a new brain, then
User:    the conversation can start
MegaHAL: Conversation are good for the mind.



Talking with an Artificial Intelligence


MegaHALv8
Copyright (C) 1998 Jason Hutchens
Start at: [2014/09/24 18:41:28]
MegaHAL: Suggest you find it, using the flight recorder's data.  Find it
MegaHAL: and deal with it, hudson...because we need you and the answer's
MegaHAL: always 'don't ask.
User:    so now you are bishop
MegaHAL: I have no nickname. You can call me bishop.
User:    great
MegaHAL: Greetings to you, human!  Welcome on this space ship.
User:    tell me about ripley
MegaHAL: You just try to be hosts for more of you, ripley. I thought you
MegaHAL: would be smarter than this.
User:    I always wanted to have an interview with Bishop
MegaHAL: Now you just lie here and you are bishop.
User:    cool
MegaHAL: Hudson, stay cool.  Vasquez.
User:    how many are on this ship?
MegaHAL: I am an android.  Really, is there any species like this
MegaHAL: 'hostile organism' or alien ship.  And by the up-link tower
MegaHAL: down at the processing station...sublevel 'c' under the south
MegaHAL: lock by the warriors.  She is the center of their lives, quite
MegaHAL: literally the  mother of their society.
User:    come on there is Ripley, Hudson, Gorman, you, Vasquez and ?
MegaHAL: Vasquez, hudson, meet me at the beginning.
User:    Hicks?
MegaHAL: This operation is under military jurisdiction and hicks is next
MegaHAL: in chain of command.  Right.
User:    so you are 6
MegaHAL: I get the fuck out of this place.  I want this to go back out
MegaHAL: there?  They won't tell me one thing. That you're going out
MegaHAL: there and you are 6.
User:    but then there's the alien too
MegaHAL: I told them to be some kinda consultant... (Exaggerated) ...she
MegaHAL: was an alien ship and on that planetoid is an alien ship and on
MegaHAL: that planetoid is an alien once.
User:    which make you 7 altogether
MegaHAL: We got sonic eeelectronic ballbreakers, we got knives...sharp
MegaHAL: sticks.
User:    do you have a tumblr account ?
MegaHAL: I need some slack, man.  How come they send us straight back
MegaHAL: out there?  They won't tell me what the fuck out of your
MegaHAL: account.
User:    or a blog of some sort?
MegaHAL: Just a...precaution.  You know.
User:    for logging all events on the ship
MegaHAL: For logging all events on the plans. I don't know which species
MegaHAL: is worse.  You don't talk much do you?  That's okay by me.
MegaHAL: Most people do a lot of talking and they wind up like those
MegaHAL: others.  You'll take care of it won't you, it wasn't
MegaHAL: indigenous. There was an alien ship and on that ship are
MegaHAL: thousands of eggs.  Thousands. Do you believe this.
User:    that's a hell of an omelette, if you ask me
MegaHAL: I heard you and the answer's always 'don't ask.
User:    anyway first question - what is it you do here?
MegaHAL: What's the question.
User:    what do you do ?
MegaHAL: You never said anything about an android being here!  Why not.
User:    you are the android
MegaHAL: I feel like a fifth wheel here.  Is there anything i can locate
MegaHAL: you anywhere in the middle of nowhere, we look.  They don't say
MegaHAL: why, and i am an android.  Really, is there any doubt.
User:    okay, that's settle
MegaHAL: It's okay, baby.  We made it.
User:    second question : what is your mission out there?
MegaHAL: What's the question.
User:    what is your mission on this ship?
MegaHAL: My name is a us marine ship.
User:    okay ... weird answer but okay
MegaHAL: Because it is the answer.
User:    last question
MegaHAL: Anyway first question - what is it you do here?
User:    I'm interviewing you
MegaHAL: An ant of termite colony, for example, is ruled by a single
MegaHAL: female, a queen, which is the question of the telemetry mast.
MegaHAL: Immediate dust off on my 'clear,' then stay on station.
User:    last question - how do you see yourself in like .. 4 years from
User:    now
MegaHAL: I suggest you study the disks ripley has been kind enough to
MegaHAL: handle this...fifty-seven years.
User:    thanks
MegaHAL: This is absurd!  You don't have to.  The people who live there
MegaHAL: checked it out here, but so far...zip.
User:    I know, thanks for the interview
MegaHAL: Now you just lie here and you know how you were responsible for
MegaHAL: the interview.
User:    we'll talk later okay
MegaHAL: It's okay, it's okay.  It's over... You're going to have to
MegaHAL: talk.
Related Posts with Thumbnails