Key Features • Architecture • Installation Guide • Community • Acknowledgements • License
-
Multi-lingual turnkey solution for GenAI development and deployment on Linux and Windows
-
Concurrent multi-chat, quoting, full prompt-list import/export/share, and more for users
-
Flexible orchestration of prompts x RAGs x bots x models x hardware/GPUs
-
Heterogeneous support from virtual hosts, laptops, PCs, and edge servers to cloud
-
Open-sourced, allowing developers to contribute and customize the system according to their needs
Warning: This a preliminary draft and may be subject to further changes.
To run this application, please make sure the following packages are installed on your system:
- Node.js v20.11.1 & npm
- PHP 8.1 & php-fpm & Composer
- Python 3.10 & pip
- Nginx or Apache
- Redis 6.0.20
- CUDA
- Git
For Windows and Linux, please follow the steps below to set up and execute:
If you wish to test out a quick demo version, we provide a Portable Windows version and a Docker version, which have been tested in Windows 10 x64 and Ubuntu 22.04LTS environments.
Alternatively, you can refer to the following steps to install the entire system on your host. Before proceeding, please ensure you have installed all the dependencies listed above.
-
Clone the project:
git clone https://github.com/kuwaai/genai-os.git cd genai-os/src/multi-chat/
-
Install dependencies:
-
For Linux:
cp .env.dev .env cd executable/sh ./production_update.sh cd ../../../kernel pip install -r requirement.txt cd ../executor pip install -r requirement.txt sudo chown -R $(whoami):www-data /var/www/html
-
For Windows:
copy .env.dev .env cd executable/bat ./production_update.bat cd ../../../kernel pip install -r requirement.txt cd ../executor pip install -r requirement.txt
-
-
Set up PHP & PHP-FPM:
- Make sure PHP is installed and configured properly.
- Configure your web server (Nginx or Apache) to set
src/multi-chat/public
as the website root directory. - Example config files: nginx_config_example, php.ini
- Recommended settings:
- Set max upload file size in PHP to at least 20MB, for RAG applications.
-
Set up Redis:
- Make sure you have a Redis server installed and running.
- Relevant settings can be adjusted in
.env
. - Run
php artisan queue:work --timeout=0
undersrc/multi-chat/
to start the Redis Worker, which handles user requests. We recommended running at least 5 Redis Workers at the same time.
-
Run the application:
- Start your web server and PHP-FPM.
- Run the Kernel
src/kernel/main.py
. It is recommended that you copy the Kernel folder to another location before running it.
-
Connect to the application:
- First, you need to create an admin account. Go to
src/multi-chat/
, and runphp artisan db:seed --class=AdminSeeder --force
to seed your first admin account. - Open your browser and access the URL of your deployed Nginx/Apache application.
- Log in with your admin account, and start using Kuwa GenAI OS!
- First, you need to create an admin account. Go to
-
Deploy models:
- No model is provided by default. Please read this README to deploy some models.
- The models do not appear automatically after deployment. The administrator must set the corresponding access_code on the website to access the model.
- Please note that the Kernel must be started before deploying the model (you can check if you can connect to
127.0.0.1:9000
to confirm)
You can download the latest Kuwa GenAI OS version that supports Windows and Linux.
Discord - Kuwa AI Discord community server
Facebook - Kuwa AI Community
Facebook - Kuwa AI Taiwan community
Google Group - kuwa-dev
Facebook - Kuwa AI
Google Group - kuwa-announce
Our team currently has only two people. If you are interested in this project, you can help us develop it together and improve this open-source project. Please do not hesitate to contact us anytime if you are willing to help!
The following packages and applications are used in this project:
We want to acknowledge NSTC's TAIDE project and the Taiwan AI Academy for their assistance in the early development of this project.