CoffeeAssistant / Assistant

Assistant REST server
MIT License
29 stars 2 forks source link

How should this be implemented in a Linux desktop? #5

Open danthedev123 opened 1 year ago

danthedev123 commented 1 year ago

Adding an AI copilot integrated into a Linux desktop hasn't been done before that much. How do we implement it and ensure safety of our users?

Aliqyan-21 commented 1 year ago

What type of AI copilot, what will it do?

danthedev123 commented 1 year ago

This AI copilot can interact with your Linux device via the command line. It can run commands like apt update, launch websites, etc. It's similar to what Microsoft is making, the Windows Copilot.

Aliqyan-21 commented 1 year ago

Ohh ok I do it with bash script..like sort of

Like in my update.sh file has code : -

!bin/bash

sudo dnf update clear exit


So whenever I run it, it updates linux, clear outputs and exits.

Do u think u can use similiar approach with c/c++ or python?

harshkushwaah commented 8 months ago

we can pre code bash scripts and train the LLM about the prompts that is going to respond to updates, opening websites etc. so for example whenever the model takes update Linux as a prompt it will run the bash script and return the output in real time. also we should find a possible way to store user's data about the conversations so the model can remember our information and optimize itself to the users niche!

danthedev123 commented 8 months ago

@harshkushwaah Thanks for the suggestion! Recently I've seen a slight amount of interest in this project, but I have not worked on it in a long time and as said in the readme I'm looking for someone to take over the project. (If you are interested let me know!)

As for your suggestion, currently, the bot runs commands that it specifies. I see now that was a naive choice as hallucinations & other issues could cause random or malicious command execution on the computer. Your idea for a set of scripts is probably a much better idea.

-- Daniel

harshkushwaah commented 8 months ago

Also using openAi's api for this project doesn't really makes sense. Can you explain what are your future goals and how you want to scale it ?

danthedev123 commented 8 months ago

Also using openAi's api for this project doesn't really makes sense. Can you explain what are your future goals and how you want to scale it ?

@harshkushwaah The original idea was something similar to Windows Copilot (https://www.microsoft.com/en-us/windows/copilot-ai-features), which also uses OpenAI's APIs.

For this project, I don't have any future goals for it, as I mentioned before, I have lost interest in it and looking for someone to take over the project.