Learn AI and Contribute Topic

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mrcoollion
Posts: 720
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Learn AI and Contribute Topic

Post by mrcoollion » Mon Mar 25, 2024 10:51 am

As promised here an AI topic for learning and contributing purposes.
<<Disclaimer: There probably are still bugs in the software and it is a prototype for all of you to improve on and post it here! And it is build the way I usually build (e.g. with Global Array for Data storage and rediculus long variable names) >>
I hereby post my LiveCode Application that makes it possible to communicate with your LOCAL running AI brain. It is based on Ollama https://ollama.com/ and a LiveCode Build interface.
Important to know is that this version is build for Windows. It should be easy to get it running on Mac or Linux as well (replace shell commands for MAC of Linux equivalents). As long as you can use tsNet.
How to get it running (Windows)?
1) Download and install Ollama from https://ollama.com/
After this step Ollama should run as a service on your Laptop/PC.
2) Download from dropbox the LiveCode application posted here and run it.
---------
What to know about the application?
1) First in ‘Model Management’ choose from the ‘list of Known Models’ a model and install a model.
2) Select one of the installed models to Activate and press ‘Activate Model’ button. FOr more information about the models visit https://ollama.com/library .
3) If you want your models to have a memory in the section ‘Memory Management’ click ‘Memory AI per Model’. You can also keep a collective memory which will keep track of Q&A’s you have done over all models so you can share this between models.
4) After typing your question then with the button ‘Submit your Question’ you can send it to the selected AI. If you want your selected AI (model) to have a Memory select ‘Model Memory’ or ‘Collective Memory’.
The rest should be more or less self explanatory.
So my request to all of you is to improve, add cool features and of coarse bugfix and so on and post the resulting LiveCode scripts here via a download url like I have done below (MEGA is also a good choice).

PS. Links in the application are clickable.

Regards,
Paul (MrCoolLIon)

Link to the file in dropbox: https://www.dropbox.com/scl/fi/16o4c61l ... voasq&dl=0

Link to the file in MEGA: https://mega.nz/file/wd9wHKRL#lOc_xOPoj ... CEOtqx_3a8

Post Reply

Return to “Talking LiveCode”