Skip to content

m5it/AIIA

Repository files navigation

AIIA

Script work similar to lm-studio but in terminal. Tested on ubuntu and older osx. Thanks to ollama works on older osx! Because if you try lm-studio it dont...

help example:

in use example:

server responses example:

one response only, no memory loaded:

hello from chat, no memory loaded (check !HELP):


Tips:

#Redirect port 11434 from one machine to yours so AIIA can run.
ssh -N -L 11434:localhost:11434 anothermachine@192.168.1.123

#Create python virtual environment and install dependencies there.. like pip install ollama.. etc.

#other tips are ollama exports .. check on google or ask AIIA...

Usage:

A.)

Start program with all options included and work as chat bot.
python run.py -m llama3.1

B.)

In this case AIIA work as date parse service. Important is chat memory we set with option -M 1
python run.py -m llama3.1 -M 0 -Y "THU, 19 JUN"
Response:
2025-06-19 00:00:00

Chat memory is saved in directory history/... User defined memory is saved as 0.user.dbk and default history is 0.dbk...

User commands:

By running help inside of chat:
!HELP^X # Press CTRL+X and EnTER to send to AIIA so we can use new lines, pasting etc..

Response:
New Session - Like restarting program. Usage: !NEW SESSION
Break Session - Start new history... Usage: !BREAK SESSION
Stats - Display statistics for program Usage: !STATS
Action Options - LIST, SET, GET action options Usage:
LIST Ex.: !AO [action_num]
GET Ex.: !AO [action_num] GET path
SET Ex.: AO [action_num] SET path=/Memorize

Import Actions - Import actions from classes/code Usage: !IA
Preview Imported Actions - Preview imported actions that are ready to get executed. Usage: !PA
Execute Action - Execute specific action... Usage: !EA
Clear Tools - Clear loaded tools to start fresh chat or load new tools. Usage: !CT
Tools - Choose tools to use with AIIA. Usage: !TOOLS
Preview History - Preview current chat history Usage: !PH
Preview Memory - Preview current chat memorized messages. Usage: !PM
Memory Specific - Memory specific message from history. Usage: !MS [history_num]
Memory all history - Memory all rows from history. Usage: !MAH
Memory Last - Memory last message from assistant. Usage: !ML
Memory Delete Row - Delete specific row from memory in use. Usage: !MDR [memory_num]
Memory Delete All - Delete all rows from memory in use. Usage: !MDA
Update Handle - Reinit code of program. Used after program update so there is no need to stop the program. Usage: !UPDATE HANDLE
Quit - Stop the program Usage: !QUIT
Load - Load text file as input to send to AIIA. Usage: !LOAD textfile.txt Text of textfile.txt will be loaded with this text and sent to AIIA. This is example.
Help - Display of available actions. Usage: !HELP

About

Script / Program that work similar to lm-studio for Large language models. We use ollama libraries so models are squized as much as is possible.. :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors