Chatbot Choice

  • 4 Replies
  • 371 Views
*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1035
    • 8pla.net
Chatbot Choice
« on: August 28, 2018, 05:02:46 am »
What choices does a chatbot have when it matches several responses?

1. Randomly choose a response.
2. Rank responses by the most words matched?

For example:
Code: [Select]
VISITOR: Hello, can I have a computer?

CHAT: PERHAPS YOU DON'T WANT TO* 
RANK: 2
WITH: CAN I

CHAT: DO COMPUTERS WORRY YOU? 
RANK: 1
WITH: COMPUTER

CHAT: HOW DO YOU DO? PLEASE STATE YOUR PROBLEM. 
RANK: 1
WITH: HELLO


This implementation is in progress.  It lets you choose: Ranked or Random,
and remembers the choice you made.  However,  if there is a tie,  it chooses Random.

Ranked is more accurate, but it chooses the best response repeatedly which is a drawback.
Random is less accurate, but it varies the responses, which is a benefit.

http://chatbot.altervista.org/implementation
My Very Enormous Monster Just Stopped Using Nine

*

ranch vermin

  • Not much time left.
  • Terminator
  • *********
  • 958
  • Its nearly time!
Re: Chatbot Choice
« Reply #1 on: August 28, 2018, 08:32:01 am »
You need more contextual response.

*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1035
    • 8pla.net
Re: Chatbot Choice
« Reply #2 on: August 29, 2018, 01:04:38 pm »
So the question is, What is a context?

"A context includes a unique identifier for each conversation with a user, as well as a counter that is incremented with each turn of the conversation. If we don’t preserve the context,  each round of input appeared to be the start of a new conversation. We can fix that by saving the context and sending it back to the Conversation service each time." said Watson Cloud Developer Vidyasagar Machupalli.

https://www.ibm.com/blogs/bluemix/2017/03/importance-context-chatbot-conversation/

Thanks for your reply, Ranch!
My Very Enormous Monster Just Stopped Using Nine

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *************
  • Transformer
  • *
  • 2104
  • First it wiggles, then it is rewarded.
    • Enter Lair
Re: Chatbot Choice
« Reply #3 on: August 29, 2018, 01:35:55 pm »
Oh I know what you want here, so you have several matching parts, some more matched than others and some equaling matching (don't call this rank nor reward), and some more loved then others (call this rank/reward).

Well, if it was full match and it had still 2 responses then it would say its favorite "go to the hospital" instead of its hated response "don't go to the hospital" because for this AI it has learnt that saying that as answer is a GOOD thing right (duh lol).

But if it matches a 2-word part and one of its responses has a high rank/love whilst it also match another part by 10 words but with lesser loved responses, then, it matches to that one as it is related/in context, and so for this one it then uses best loved answer. If there's 2 matching parts each of 2 words, then it says the response with the highest reward. If 2 2-word matching parts and both have 2 as loved responses then random pick or reason the part and the response to reply to and back with.

However 1 problem. If "Can I have a computer?" doesn't match the full thing and use best loved response, and instead has 2 small matches cus no know the big whole sentence yet cus baby, then it has TWO matches it finds "[Can I] have a [computer] ?" and so then what it does in this case is answers both input matches, it'll answer the 1st match using best loved response "Can I what?" or "it depends", then it'll answer the next match using best loved response.

So there we go. Answer all biggest matching text parts using best loved answer for each biggest match. If you have 2 equally loved responses, say both if not costly else pick one randomly or *that didn't say last time.
Emergent

*

8pla.net

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1035
    • 8pla.net
Re: Chatbot Choice
« Reply #4 on: August 29, 2018, 06:45:23 pm »
Yes LOCKSUIT!

I just got started with a simple form of contextual responses.

Quote
Hello.
HOW DO YOU DO? PLEASE STATE YOUR PROBLEM.

Whats up?
WHAT ELSE COMES TO MIND WHEN YOU ASK THAT?

I lost my train of thought.
YOU JUST SAID: WHAT'S UP?

CONTEXT:
I LOST MY TRAIN OF THOUGHT
WHAT'S UP?
HELLO


I think it is working.  Now, I have to extend it further... Any ideas?

Thanks for your reply.
My Very Enormous Monster Just Stopped Using Nine

 


What kind of abilities will AGI have?
by LOCKSUIT (General AI Discussion)
Today at 02:21:40 pm
ETHICS
by Hopefully Something (General AI Discussion)
Today at 08:12:23 am
A big Hi to all bot lovers and makers!
by DemonRaven (New Users Please Post Here)
October 13, 2018, 09:08:26 pm
BOOST
by Art (General Chat)
October 13, 2018, 01:59:09 pm
collaborators wanted.
by DemonRaven (AI Programming)
October 13, 2018, 12:16:52 pm
XKCD Comic : Rock Wall
by Tyler (XKCD Comic)
October 13, 2018, 12:00:36 pm
How many lines of code will AGI be?
by Hopefully Something (General AI Discussion)
October 12, 2018, 11:16:25 pm
ChatbotML on Twitch
by squarebear (Home Made Robots)
October 12, 2018, 09:26:00 am
Tag... you're it...
by korrelan (AI News )
Today at 02:14:50 pm
In need of a psychological coach?
by ruebot (AI News )
October 13, 2018, 01:33:37 pm
Leela Chess Zero
by Art (AI News )
October 08, 2018, 03:30:42 pm
Alpha GO Zero
by Art (AI News )
October 08, 2018, 02:48:32 pm
Detecting fake news at its source
by Tyler (Robotics News)
October 06, 2018, 12:00:55 pm
Phase Change Memory
by Art (AI News )
October 05, 2018, 01:21:59 pm
Model helps robots navigate more like humans do
by Tyler (Robotics News)
October 05, 2018, 12:01:40 pm
Regina Barzilay, James Collins, and Phil Sharp join leadership of new effort on machine learning in health
by Tyler (Robotics News)
October 04, 2018, 12:00:23 pm

Users Online

46 Guests, 2 Users
Users active in past 15 minutes:
LOCKSUIT, korrelan
[Trusty Member]

Most Online Today: 108. Most Online Ever: 208 (August 27, 2008, 09:36:30 am)

Articles