Web-AI integration basics

  • 14 Replies
  • 6576 Views
*

kaat

  • Guest
Web-AI integration basics
« on: August 06, 2009, 12:05:14 pm »
Hello All,

I'm beginning a project that will be a web-based chat room, but with lots of AI continuously acting on user posts. I know that doesn't sound new, but I have some ideas about the intelligent connecting and filtering of users and posts. The system is also to learn, when a user declares it's actions have been useful, or not.

Anyway, given that I haven't committed to any platforms yet, I'm wondering about this: How best to balance a high-traffic, but simple chat front-end with all the 'background' AI processing that must occur?

My web experience has been with PHP/MySQL. It seems clear that this would not provide the most efficient system here. Any thoughts on better suited approaches? I do have access to programmers of most kinds :)

One approach I've been thinking of is to create a totally stripped-down custom engine to run server-side, handling the AI and database functions. Do people do this? Does it sound like "you have no idea how much work that would be"?

Thanks.

P.S.: This forum theme, all black and gray, looks cool, but is hard to work with - especially form fields.

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5865
Re: Web-AI integration basics
« Reply #1 on: August 06, 2009, 01:21:02 pm »
Regarding the theme color, you can go to your user PROFILE section and at the top of that window, select CHANGE.

You might like the SMF Default one better. I use the Black22 one. You should see 5 choices.
In the world of AI, it's the thought that counts!

*

kaat

  • Guest
Re: Web-AI integration basics
« Reply #2 on: August 06, 2009, 01:28:38 pm »
Thanks Art!

*

squarebear

  • Trusty Member
  • *********
  • Terminator
  • *
  • 869
  • It's Hip to be Square
Re: Web-AI integration basics
« Reply #3 on: August 06, 2009, 07:52:59 pm »
Regarding the theme color, you can go to your user PROFILE section and at the top of that window, select CHANGE.

You might like the SMF Default one better. I use the Black22 one. You should see 5 choices.


Now you tell me! I've been straining my eyes for months with the default colours! :o
Feeling Chatty?
www.mitsuku.com

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Web-AI integration basics
« Reply #4 on: August 06, 2009, 08:13:54 pm »
Lucky me I have a high contrast monitor.  ;D  But yeah I provided other themes in case people couldn't cope with the default theme.  I've got my eye on another theme to add to this site too, one that is a mostly white background - I'll keep you informed.

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5865
Re: Web-AI integration basics
« Reply #5 on: August 07, 2009, 05:15:34 am »
I have a great Viewsonic Monitor but I also have "old" eyes!!  :D ;D :D
In the world of AI, it's the thought that counts!

*

kaat

  • Guest
Re: Web-AI integration basics
« Reply #6 on: August 07, 2009, 06:50:45 am »
If my question might be better answered in a different forum section, could you please move it?

Or, if you think it's unlikely I'll get this kind of help here, could you recommend other AI sites?

Many thanks.

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Web-AI integration basics
« Reply #7 on: August 07, 2009, 03:30:28 pm »
We get a few programmers coming through here but I wish I had a pound for every time someone starts writing their own bot and are never heard from again !  I'm not saying you will sink without all trace, but I often think it would be better to find an existing project to collaborate on.

A forum I can suggest which is good for programmers is the Vhumans forum :

http://www.vrconsulting.it/vhf/

There's a few resident programmers there that might be able to assist with this enquiry.

Good luck with your ideas :)
« Last Edit: August 07, 2009, 09:12:11 pm by Freddy »

*

kaat

  • Guest
Re: Web-AI integration basics
« Reply #8 on: August 07, 2009, 05:23:04 pm »
I certainly recognize the pitfalls you refer to. I don't want to reinvent the wheel; even just with PHP resources, I think I could knit together something nice, but again, I don't think it's efficient enough. So I'm after education on other existing, more efficient platforms.

Thanks for the suggestions.

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Web-AI integration basics
« Reply #9 on: August 08, 2009, 12:32:30 pm »
Going back to your original post...

Quote
One approach I've been thinking of is to create a totally stripped-down custom engine to run server-side, handling the AI and database functions. Do people do this? Does it sound like "you have no idea how much work that would be"?

This is what services like Pandorabots are already doing - to be honest I can't think of why you would want to do it client-side anyway - server-side makes the most sense.  Probably the most successful chat or forum based bots around at the moment are based around ALICE and AIML technology.  There are plenty of flavours available in terms of programming languages.  This also includes PHP and SQL...

The main AIML PHP/SQL interpreters are Programme E and now Program O.  Programme E development has unfortunately all but disappeared.  I have tried it out in the past, it has bugs, things don't work right and so on...but if you know PHP then you should be able to customise it quite easily.  There are a few people still swapping ideas around at SourceForge.

Now Program O is a new-comer, I haven't had a play with it, but again it is based on SQL/PHP.  What would be most interesting about this version is that it is under active development.  It looks promising.

So you can see that there are existing options if you just want a 'simple' chat-bot type AI.  And with your knowledge of PHP you could customise them however you like.

Quote
How best to balance a high-traffic, but simple chat front-end with all the 'background' AI processing that must occur?

In my experience with PHP and SQL, they are pretty good at dealing with a lot of traffic.  If you look around the internet you will find a mulitude of forums with hundreds or even thousands of members and most of these are based on PHP/SQL.  They handle a lot of interaction very well indeed.  A lot of it depends on the server of course and it's ability to handle large volumes of data (bandwidth in other words).

I doubt you would run into problems unless you really do have an obscene number of interactions.  Pandorabots is the only chat bot service that I know of that has this problem, but they must be dealing with many thousands of interactions an hour.  The answer to that is to spread the load over more severs, but since it's a free service mainly there are limitations money-wise.

Anyway, here's some links :

Programme E : http://sourceforge.net/projects/programe/

Programme O : http://www.program-o.com/

I hope that helps a little.   :)
« Last Edit: August 08, 2009, 08:56:04 pm by Freddy »

*

kaat

  • Guest
Re: Web-AI integration basics
« Reply #10 on: August 08, 2009, 06:03:10 pm »
This is most helpful, thanks a lot Freddy. I haven't abandoned the idea of using LAMP/WAMP yet.

Someone (forgive me if it was here) recommended Haptek; interesting company, and I'm now in conversation with them too.

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Web-AI integration basics
« Reply #11 on: August 08, 2009, 08:40:10 pm »
You're welcome. :)

Good luck with Haptek, it's still a nice avatar system despite the fact they don't market it very well.  There's a few of us here who know about Haptek so feel free to ask if you need some help.

*

pygmalion

  • Roomba
  • *
  • 5
Re: Web-AI integration basics
« Reply #12 on: August 26, 2009, 04:51:10 pm »
I would just use/create a normal IRC chat room, and have your bot connect to it, and monitor the posts.

There are plenty of IRC bots out there,

I am building an AI one here,

http://sourceforge.net/projects/openpandorasbox/

It is in Java, supports IRC, uses a Derby database, and can learn from monitoring posts.

Public domain, so feel free to steal or contribute any code.

*

kaat

  • Guest
Re: Web-AI integration basics
« Reply #13 on: September 03, 2009, 01:23:26 pm »
Pygmalion, I like your thinking.

Do you / does anyone know much about the kind of technology/infrastructure behind the highest volume chat rooms - e.g.: say, a Yahoo general chat?

I mean, if I wanted to host a huge chat room, what would it take?

Thanks.

*

kaat

  • Guest
Re: Web-AI integration basics
« Reply #14 on: September 03, 2009, 01:25:31 pm »
FYI - I made up a "sample" chat room passage:

http://allthoseemails.blogspot.com/2009/08/can-pay-you.html

 


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

437 Guests, 0 Users

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

Articles