Artificial Intelligence JavaScript Object Notation

  • 10 Replies
  • 5874 Views
*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Artificial Intelligence JavaScript Object Notation
« on: March 14, 2018, 01:18:18 am »
I just created Artificial Intelligence JavaScript Object Notation, which implements a JSON dialect for creating natural language software agents.

Demo Page:

http://www.chatbot.ml/chatbot

Source Code:

http://chatbot.ml/chatbot/json.js

Format:

var JSON = [[
"HELLO|HI|HEY|GREETINGS",
"Greetings",
"Hello there.",
"Hi you.",
]];


« Edit Notes: Fixed broken links from domain name aihax.com to new domain chatbot.ml
« Last Edit: November 16, 2018, 04:45:28 am by 8pla.net »
My Very Enormous Monster Just Stopped Using Nine

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1372
  • Humans will disappoint you.
    • Home Page
Re: Artificial Intelligence JavaScript Object Notation
« Reply #1 on: March 14, 2018, 01:36:16 am »
That's actually a great idea, but why a "dialect"? Isn't that still going to have compatibility problems? I was expecting to see some labels saying what the different elements are instead of having to guess. Brevity for it's own sake is a big obstacle to productivity. Have you got some converted non-trivial AIML examples to demonstrate the idea in more depth? Criticisms aside, I do think it's a great idea.

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5865
Re: Artificial Intelligence JavaScript Object Notation
« Reply #2 on: March 14, 2018, 01:06:27 pm »
Eliza
In the world of AI, it's the thought that counts!

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1372
  • Humans will disappoint you.
    • Home Page
Re: Artificial Intelligence JavaScript Object Notation
« Reply #3 on: March 14, 2018, 10:17:44 pm »
Eliza

I was thinking Alice actually. :)

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5865
Re: Artificial Intelligence JavaScript Object Notation
« Reply #4 on: March 15, 2018, 05:47:39 pm »
OK, but if you examine the way in which it tried to elicit responses it seemed very reminiscent to me of that ever-so-helpful Rogerian therapist mentality that was first exhibited by the first Eliza (Elisa) program back in the hey day! Yeah...I'm old...so what! Haha!!

I believe Alice (the chatbot) came later, much later than Charles Dodgson's (Lewis Carroll) Alice in Wonderland, which in itself, was a far better entertainer of the mind, IMHO. ;)
In the world of AI, it's the thought that counts!

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #5 on: March 15, 2018, 10:29:11 pm »
@infurl:

That's actually a great idea, but why a "dialect"?

I meant a dialect of JSON.

Isn't that still going to have compatibility problems?

Yes.

I was expecting to see some labels saying what the different elements are instead of having to guess. Brevity for it's own sake is a big obstacle to productivity.

Instead of labels which are associative, it is indexed numerically.  Whenever, the index is zero, that identifies it as matching the stimulus.  Or, as a response list, otherwise.
 

Have you got some converted non-trivial AIML examples to demonstrate the idea in more depth?

No. I do have some new ideas related to using JSON for A.I. though.

Criticisms aside, I do think it's a great idea.

A brand new implementation being compared to long established implementations is a great compliment.
My Very Enormous Monster Just Stopped Using Nine

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1372
  • Humans will disappoint you.
    • Home Page
Re: Artificial Intelligence JavaScript Object Notation
« Reply #6 on: March 15, 2018, 10:36:19 pm »
Instead of labels which are associative, it is indexed numerically.  Whenever, the index is zero, that identifies it as matching the stimulus.  Or, as a response list, otherwise.

Yes I got that just by looking at it, so it does work as it is. Also the casiness of the text was a clue. The problem is that simple things rarely stay simple and when you want to add more features, the syntax might become harder to decipher. Incidentally I can't help making comparisons to ElfScript as well. Looking forward to seeing where both these projects go.

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #7 on: March 16, 2018, 11:51:23 pm »
Here is an update to the implementation...

BEFORE:

"YOU *" matched stimulus "You understand" but not "You" by itself, since "*" had to match on something being there.

AFTER:

"YOU *" now matches stimulus "You understand" and "You" by itself, because "*" matches something or nothing there.

Quote
You

Why do you care whether I?


You understand

Why do you care whether I understand?


My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #8 on: March 17, 2018, 12:18:05 am »
The problem is that simple things rarely stay simple and when you want to add more features, the syntax might become harder to decipher.

That is true.  In a way, keeping things simple, can be its own challenge.  And, thank you for your valuable comments.  I think the JSON developer community may refer to labels as something they consider important called, "readability".
My Very Enormous Monster Just Stopped Using Nine

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Artificial Intelligence JavaScript Object Notation
« Reply #9 on: March 17, 2018, 12:38:14 am »
I'm impressed that you did so much with so little code  8)

But yes, the simple becoming complex is something I very much came across with ElfScript. As a beta tester Art is very good at asking questions and I tried to be equally good at solving things with existing methods.  ;D

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #10 on: March 19, 2018, 11:07:49 pm »
I managed to make it even easier, with less code.

While this original A.I. JSON project continues. 

I thought an easier plain text version deserves a new thread of its own.

Reference: http://aidreams.co.uk/forum/index.php?topic=12963
My Very Enormous Monster Just Stopped Using Nine

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

233 Guests, 0 Users

Most Online Today: 467. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles