Discuss Scratch

H__4
Scratcher
27 posts

AI extension idea!!!

I think that Scratch chatbots are boring, so can you please add AI? From all the JavaScript I know, just connect it to a neuron network using

import ‘neural-network’
let <name> = neuralNetwork()
, and then train it by either:
1. Putting a database of basic stuff, and then teach it how to speak
2. Telling it questions and answers
3. Getting it to go through loads of projects, see the code, find out what it does, and put it in the database.

NOTE: <name> is supposed to be the AI's name, but it has no spaces.
let mode = ‘TRAINING’
to show that it is training so it knows it is being teached, to stop it saying nonsense while you are teaching.

Last edited by H__4 (Jan. 5, 2025 08:07:11)

BigNate469
Scratcher
1000+ posts

AI extension idea!!!

H__4 wrote:

I think that Scratch chatbots are boring,
What chatbots? Everything commenting on this website is either human or not allowed (with the exception of the chatbot that has been used on @ScratchCat's profile in the past on April Fools' Day, but that's run by the ST and gives nonsense answers anyways).

H__4 wrote:

so can you please add AI? From all the JavaScript I know, just connect it to a neuron network using

import ‘neural-network’
let <name> = neuralNetwork()
(…)
1. You really want to run AI on computers with the processing power of a potato? Most Scratchers aren't using devices that are anywhere near fast enough to do the math required for a neural network running a LLM- or, if they are, in many cases websites can't use the parts of them designed to do it anyways. Popular LLMs (such as ChatGPT) send your prompt off to a server, and the AI's response back to you.
2. It's not that simple to make AI.
Connerfurr13
Scratcher
44 posts

AI extension idea!!!

H__4 wrote:

I think that Scratch chatbots are boring, so can you please add AI? From all the JavaScript I know, just connect it to a neuron network using

import ‘neural-network’
let <name> = neuralNetwork()
, and then train it by either:
1. Putting a database of basic stuff, and then teach it how to speak
2. Telling it questions and answers
3. Getting it to go through loads of projects, see the code, find out what it does, and put it in the database.

NOTE: <name> is supposed to be the AI's name, but it has no spaces.
let mode = ‘TRAINING’
to show that it is training so it knows it is being teached, to stop it saying nonsense while you are teaching.

This is dangerous because chatbot ChatGPT has cloned itself many times And this could get out of hand for scratch
mcgdj
Scratcher
59 posts

AI extension idea!!!

H__4 wrote:

I think that Scratch chatbots are boring, so can you please add AI? From all the JavaScript I know, just connect it to a neuron network using

import ‘neural-network’
let <name> = neuralNetwork()
, and then train it by either:
1. Putting a database of basic stuff, and then teach it how to speak
2. Telling it questions and answers
3. Getting it to go through loads of projects, see the code, find out what it does, and put it in the database.

NOTE: <name> is supposed to be the AI's name, but it has no spaces.
let mode = ‘TRAINING’
to show that it is training so it knows it is being teached, to stop it saying nonsense while you are teaching.
Hi, by some coincidence I made a snarky (not helpful) AI. You can use it if you give me credit. You can find it here if you are interested.
scratchcode1_2_3
Scratcher
1000+ posts

AI extension idea!!!

Connerfurr13 wrote:

(#3)
This is dangerous because chatbot ChatGPT has cloned itself many times And this could get out of hand for scratch
…. was it ever successful? How do you imply this one could do any better?

Anyways, I thought this was gonna be a cool thing for predictions or game AI like a client-side tensorflow extension for Scratch. But specifically for a chatbot? Nah. OpenAI already did all this. They used millions of dollars and tons of GPUs and tons of Energy. I don't think anyone has a computer powerful enough at their house that can even close to making a coherent chatbot. It feels like a waste of time and you would just be reinventing the wheel.
Dagriffpatchfan
Scratcher
1000+ posts

AI extension idea!!!

You could make an extension that harnesses something like open Ai api and sends that info back to the project
BigNate469
Scratcher
1000+ posts

AI extension idea!!!

Dagriffpatchfan wrote:

You could make an extension that harnesses something like open Ai api and sends that info back to the project
Which bills you per request, is pretty biased, and doesn't really have that many filters built-into it?

Probably not the best idea- and how would the ST pay for that anyways?
OP_GAMER123456
Scratcher
7 posts

AI extension idea!!!

BigNate469
Scratcher
1000+ posts

AI extension idea!!!

OP_GAMER123456 wrote:

https://scratch.mit.edu/discuss/topic/798324/#:~:text=1.%20You%20really%20want%20to%20run%20AI%20on%20computers%20with%20the%20processing%20power%20of%20a%20potato%3F
I'm using a 2014 dell that can withstand my friends btd6 “Experiments” (Spamming high projectile towers)
1. Please use the quote button rather than a highlight link URL (which doesn't even work on all browsers).
2. Finding one example of a computer that has a decent GPU does not mean that either the majority of Scratchers have access to one that can, or that it would be able to run AI.

A lot of people using Scratch are doing it on school-issue Chromebooks and iPads, which tend to be lower-end devices with not much storage or RAM.

By contrast, running a neural network requires doing a lot of matrix multiplication- and RAM to store the results. Devices with built-in AI acceleration chips use analog computers to speed this up (and save a lot of power in the process), but there are literal millions (if not billions) of devices that can run Scratch but don't have an AI acceleration chip. Most of the devices running Scratch fall into the category of not having one of those- not that we browsers can use it anyways: AI has evolved so fast that web standards can't keep up, and browsers take around 2 years to fully implement a standard once it becomes standard (although it can take more- in one extreme case, major browsers started to fully implement a feature- except Safari, which finally implemented it in 2023).
cool-shop-dude
Scratcher
100+ posts

AI extension idea!!!

BigNate469 wrote:

(#2)
1. You really want to run AI on computers with the processing power of a potato?
AI can run from the server-side. For example, whenever i go to a seller's website(for example, Lenovo.com) there is probably a support chatbot. it does all of its neural processing from the server-side and sends outputs to the user. however, locally-hosted AIs can still work decently on potatos. My laptop is the definition of potato and it still runs applications like MicroSoft Designer with decent efficiency. Now, there are worse PCs to own, so i cant say anything for them

Powered by DjangoBB