thebear135 commited on
Commit
1b8a798
·
verified ·
1 Parent(s): fa7ca1f

Rename index.html to index.md

Browse files
Files changed (2) hide show
  1. index.html +0 -326
  2. index.md +525 -0
index.html DELETED
@@ -1,326 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- ---
11
- title: LLMUI Core
12
- emoji: 🤖
13
- colorFrom: blue
14
- colorTo: purple
15
- sdk: static
16
- pinned: false
17
- license: agpl-3.0
18
- ---
19
-
20
- # 🤖 LLMUI Core
21
-
22
- <div align="center">
23
-
24
- **Plateforme d'orchestration IA multi-modèles avec consensus intelligent**
25
-
26
- [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
27
- [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
28
- [![GitHub](https://img.shields.io/badge/GitHub-GenAICos%2Fllmui--core-181717?logo=github)](https://github.com/GenAICos/llmui-core)
29
-
30
- *Développé par Francois Chalut - Une solution québécoise pour l'intelligence artificielle locale et éthique*
31
-
32
- [🚀 Installation](#-installation-rapide-avec-andy) • [📖 Documentation](https://github.com/GenAICos/llmui-core/wiki) • [💬 Support](https://github.com/GenAICos/llmui-core/issues)
33
-
34
- </div>
35
-
36
- ---
37
-
38
- ## 🎯 À propos
39
-
40
- LLMUI Core est une plateforme innovante qui orchestre plusieurs modèles de langage (LLM) en parallèle pour obtenir des réponses par consensus, garantissant une qualité supérieure et une souveraineté numérique totale.
41
-
42
- ### ✨ Fonctionnalités principales
43
-
44
- - **🔄 Consensus multi-modèles** : Orchestration de plusieurs LLM (workers + merger) pour des réponses optimales
45
- - **🏠 Souveraineté numérique** : Hébergement 100% local, sans dépendance cloud
46
- - **🧠 Mémoire avancée** : Système de mémoire hybride avec RAG intégré
47
- - **📁 Traitement de fichiers** : Support PDF, DOCX, images, CSV, JSON et plus
48
- - **💾 Historique complet** : Base SQLite pour conservation des conversations
49
- - **🔒 Sécurité intégrée** : Auth JWT, chiffrement, pare-feu configuré
50
- - **🎨 Interface moderne** : Interface web intuitive avec Nginx
51
-
52
- ---
53
-
54
- ## 🏗️ Architecture
55
-
56
- ```
57
- ┌─────────────┐
58
- │ Nginx │ ← Interface web (port 80/443)
59
- └──────┬──────┘
60
- │
61
- ┌──────▼──────┐
62
- │ llmui-proxy │ ← Gestion sessions, auth (port 8080)
63
- └──────┬──────┘
64
- │
65
- ┌──────▼──────┐
66
- │llmui-backend│ ← Orchestration LLM (port 5000)
67
- └──────┬──────┘
68
- │
69
- ┌──────▼──────┐
70
- │ Ollama │ ← Modèles locaux (port 11434)
71
- └─────────────┘
72
- • phi3:3.8b (worker)
73
- • gemma2:2b (worker)
74
- • granite4:micro-h (merger)
75
- ```
76
-
77
- ### 🔄 Système de consensus
78
-
79
- 1. **Workers** : Plusieurs modèles analysent le prompt en parallèle
80
- 2. **Merger** : Synthèse intelligente des réponses en consensus
81
- 3. **Résultat** : Qualité supérieure grâce à la diversité des modèles
82
-
83
- ---
84
-
85
- ## 💻 Prérequis système
86
-
87
- ### Configuration minimale
88
- - **CPU** : 4 cœurs
89
- - **RAM** : 8 GB
90
- - **Disque** : 20 GB
91
- - **GPU** : Optionnel (améliore les performances)
92
-
93
- ### Configuration recommandée
94
- - **CPU** : 8+ cœurs
95
- - **RAM** : 16+ GB
96
- - **Disque** : 50+ GB
97
- - **GPU** : NVIDIA avec CUDA
98
-
99
- ### Systèmes supportés
100
- - Debian 11/12
101
- - Ubuntu 20.04/22.04/24.04
102
- - Rocky Linux 8/9
103
- - RHEL 8/9
104
-
105
- ---
106
-
107
- ## 🚀 Installation rapide avec Andy
108
-
109
- **Andy** est l'assistant DevOps autonome qui automatise l'installation complète de LLMUI Core.
110
-
111
- ### Installation en une commande
112
-
113
- ```bash
114
- # Cloner le dépôt
115
- git clone https://github.com/GenAICos/llmui-core.git
116
- cd llmui-core
117
-
118
- # Lancer l'installation interactive
119
- sudo bash andy_setup.sh
120
- ```
121
-
122
- ### Installation manuelle (3 étapes)
123
-
124
- ```bash
125
- # Étape 1: Installation de base
126
- sudo python3 andy_installer.py
127
-
128
- # Étape 2: Déploiement des sources
129
- sudo python3 andy_deploy_source.py
130
-
131
- # Étape 3: Démarrage des services
132
- sudo python3 andy_start_services.py
133
- ```
134
-
135
- ### Ce qu'Andy fait pour vous
136
-
137
- - ✅ Met à jour le système d'exploitation
138
- - ✅ Installe Ollama + 3 modèles LLM
139
- - ✅ Configure Python et toutes les dépendances
140
- - ✅ Crée les services systemd
141
- - ✅ Configure Nginx avec SSL
142
- - ✅ Configure le pare-feu
143
- - ✅ Vérifie l'installation complète
144
-
145
- > **Note** : Andy vous demandera uniquement le nom d'utilisateur et le mot de passe pour l'interface LLMUI.
146
-
147
- ---
148
-
149
- ## 🎮 Utilisation
150
-
151
- ### Accès à l'interface web
152
-
153
- Une fois installé, accédez à LLMUI Core via :
154
-
155
- ```
156
- http://VOTRE_IP/
157
- ```
158
-
159
- L'IP du serveur est affichée à la fin de l'installation par Andy.
160
-
161
- ### Gestion des services
162
-
163
- ```bash
164
- # Statut des services
165
- sudo systemctl status llmui-backend
166
- sudo systemctl status llmui-proxy
167
- sudo systemctl status nginx
168
-
169
- # Redémarrer les services
170
- sudo systemctl restart llmui-backend
171
- sudo systemctl restart llmui-proxy
172
-
173
- # Logs en temps réel
174
- sudo journalctl -u llmui-backend -f
175
- ```
176
-
177
- ### API REST
178
-
179
- ```bash
180
- # Health check
181
- curl http://localhost:5000/api/health
182
-
183
- # Liste des modèles disponibles
184
- curl http://localhost:5000/api/models
185
-
186
- # Nouvelle conversation
187
- curl -X POST http://localhost:5000/api/chat \
188
- -H "Content-Type: application/json" \
189
- -d '{"message": "Bonjour!", "user_id": "user123"}'
190
- ```
191
-
192
- ---
193
-
194
- ## 📁 Formats de fichiers supportés
195
-
196
- - **Documents** : PDF, DOCX, TXT, MD
197
- - **Images** : PNG, JPG, WEBP
198
- - **Données** : CSV, JSON, YAML
199
- - **Code** : Python, JavaScript, et plus
200
-
201
- ---
202
-
203
- ## 🔒 Sécurité
204
-
205
- - 🔐 Authentification JWT
206
- - 🔑 Chiffrement des sessions
207
- - 🛡️ Pare-feu automatiquement configuré
208
- - 🔒 Headers de sécurité Nginx
209
- - 🏰 Isolation des services
210
- - 📝 Permissions strictes
211
-
212
- ---
213
-
214
- ## 📚 Documentation
215
-
216
- | Document | Description |
217
- |----------|-------------|
218
- | [INSTALL.md](https://github.com/GenAICos/llmui-core/blob/main/INSTALL.md) | Guide d'installation détaillé |
219
- | [README_ANDY.md](https://github.com/GenAICos/llmui-core/blob/main/README_ANDY.md) | Documentation complète d'Andy |
220
- | [ARCHITECTURE.md](https://github.com/GenAICos/llmui-core/blob/main/docs/ARCHITECTURE.md) | Architecture technique |
221
- | [API.md](https://github.com/GenAICos/llmui-core/blob/main/docs/API.md) | Documentation API REST |
222
- | [CONFIGURATION.md](https://github.com/GenAICos/llmui-core/blob/main/docs/CONFIGURATION.md) | Configuration avancée |
223
- | [TROUBLESHOOTING.md](https://github.com/GenAICos/llmui-core/blob/main/docs/TROUBLESHOOTING.md) | Guide de dépannage |
224
-
225
- ---
226
-
227
- ## 🛠️ Dépannage rapide
228
-
229
- ### Le backend ne démarre pas
230
-
231
- ```bash
232
- sudo systemctl status llmui-backend
233
- sudo journalctl -u llmui-backend -n 50
234
- sudo systemctl restart llmui-backend
235
- ```
236
-
237
- ### Problèmes avec Ollama
238
-
239
- ```bash
240
- ollama list
241
- ollama ps
242
- sudo systemctl status ollama
243
- sudo systemctl restart ollama
244
- ```
245
-
246
- ### Vérifier les logs d'installation
247
-
248
- ```bash
249
- less /tmp/andy_install.log
250
- sqlite3 /tmp/andy_installation.db
251
- ```
252
-
253
- ---
254
-
255
- ## 🔄 Mise à jour
256
-
257
- ```bash
258
- # Sauvegarder la configuration
259
- sudo cp /opt/llmui-core/config.yaml /opt/llmui-core/config.yaml.bak
260
-
261
- # Arrêter les services
262
- sudo systemctl stop llmui-backend llmui-proxy
263
-
264
- # Mettre à jour le code
265
- cd /path/to/llmui-core
266
- git pull origin main
267
-
268
- # Redéployer
269
- sudo python3 andy_deploy_source.py
270
- sudo python3 andy_start_services.py
271
- ```
272
-
273
- ---
274
-
275
- ## 🌍 Souveraineté numérique
276
-
277
- LLMUI Core s'inscrit dans une vision de souveraineté numérique québécoise :
278
-
279
- - 🇨🇦 **Local d'abord** : Hébergement et contrôle complets
280
- - 🔓 **Open Architecture** : Extensible et adaptable
281
- - 🛡️ **Sécurité par conception** : Protection des données
282
- - 🤖 **IA éthique** : Transparence et consensus
283
- - 🌱 **Autonomie technologique** : Indépendance des GAFAM
284
-
285
- ---
286
-
287
- ## 👥 Contribution
288
-
289
- Ce projet est développé par **Francois Chalut**.
290
-
291
- Pour toute question ou contribution :
292
-
293
- - 📧 Email : [contact@llmui.org](mailto:contact@llmui.org)
294
- - 🐛 Issues : [GitHub Issues](https://github.com/GenAICos/llmui-core/issues)
295
- - 💬 Discussions : [GitHub Discussions](https://github.com/GenAICos/llmui-core/discussions)
296
-
297
- ---
298
-
299
- ## 📄 Licence
300
-
301
- © 2025 Francois Chalut
302
-
303
- **AGPL-3.0 + Common Clause**
304
-
305
- Voir [LICENSE](https://github.com/GenAICos/llmui-core/blob/main/LICENSE) pour plus de détails.
306
-
307
- ---
308
-
309
- ## 🔗 Liens utiles
310
-
311
- - 📖 [Documentation complète](https://github.com/GenAICos/llmui-core/wiki)
312
- - 💾 [Télécharger les releases](https://github.com/GenAICos/llmui-core/releases)
313
- - 🐛 [Signaler un bug](https://github.com/GenAICos/llmui-core/issues/new)
314
- - 💡 [Demander une fonctionnalité](https://github.com/GenAICos/llmui-core/issues/new)
315
-
316
- ---
317
-
318
- <div align="center">
319
-
320
- **Développé avec 💙 au Québec**
321
-
322
- ⭐ Si vous aimez ce projet, n'hésitez pas à lui donner une étoile sur GitHub !
323
-
324
- </div>
325
- </body>
326
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index.md ADDED
@@ -0,0 +1,525 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LLMUI Core v0.5.0
2
+
3
+ [![AGPL v3](https://img.shields.io/badge/AGPL%20v3-Open%20Source-green.svg)](https://www.gnu.org/licenses/agpl-3.0)
4
+ [![Commons Clause](https://img.shields.io/badge/Commons%20Clause-No%20Commercial-red.svg)](LICENSE)
5
+ [![Enterprise Clause](https://img.shields.io/badge/Enterprise-Publication%20Required-orange.svg)](ENTERPRISE_CLAUSE_EXPLAINED.md)
6
+ [![Python](https://img.shields.io/badge/Python-3.8%2B-blue.svg)](https://python.org)
7
+ [![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20WSL-lightgrey.svg)](https://kernel.org)
8
+
9
+ > **Multi-model AI consensus platform with digital sovereignty**
10
+
11
+ Developed by **Francois Chalut** - A Quebec solution for local and ethical artificial intelligence.
12
+
13
+ ---
14
+
15
+ ## 🎯 Overview
16
+
17
+ LLMUI Core is an innovative consensus platform between multiple language models (LLMs), allowing you to:
18
+
19
+ - **Orchestrate multiple AI models** in parallel (workers + mergers)
20
+ - **Obtain consensus responses** for superior quality
21
+ - **Ensure digital sovereignty** - local hosting, no cloud
22
+ - **Integrate advanced memory systems** (RAG, hybrid)
23
+ - **Process files** (PDF, DOCX, images, etc.)
24
+ - **Maintain complete history** with SQLite
25
+
26
+ ### Architecture
27
+
28
+ ```
29
+ ┌─────────────┐
30
+ │ Nginx │ ← Web interface (port 80/443)
31
+ └──────┬──────┘
32
+ │
33
+ ┌──────▼──────┐
34
+ │ llmui-proxy │ ← Session management, auth (port 8080)
35
+ └──────┬──────┘
36
+ │
37
+ ┌──────▼──────┐
38
+ │llmui-backend│ ← LLM orchestration (port 5000)
39
+ └──────┬──────┘
40
+ │
41
+ ┌──────▼──────┐
42
+ │ Ollama │ ← Local models (port 11434)
43
+ └─────────────┘
44
+ • phi3:3.8b (worker)
45
+ • gemma2:2b (worker)
46
+ • granite4:micro-h (merger)
47
+ ```
48
+
49
+ ---
50
+
51
+ ## 📋 Prerequisites
52
+
53
+ ### Recommended Hardware
54
+ - **CPU**: 4 cores minimum, 8+ recommended
55
+ - **RAM**: 8GB minimum, 16GB+ recommended
56
+ - **Disk**: 20GB minimum, 50GB+ recommended
57
+ - **GPU**: Optional but greatly improves performance
58
+
59
+ ### Operating System
60
+
61
+ #### Native Linux
62
+ - Debian 11/12
63
+ - Ubuntu 20.04/22.04/24.04
64
+ - Rocky Linux 8/9
65
+ - RHEL 8/9
66
+
67
+ #### Windows via WSL
68
+ - Windows 10/11 with WSL2 enabled
69
+ - Ubuntu 20.04/22.04/24.04 distribution in WSL
70
+ - 16GB RAM recommended for Windows + WSL
71
+
72
+ ### Software
73
+ - Python 3.8+
74
+ - Root access (sudo)
75
+ - Git
76
+
77
+ ---
78
+
79
+ ## 🪟 Installation on Windows (WSL)
80
+
81
+ ### Step 1: Enable WSL2
82
+
83
+ Open PowerShell as administrator:
84
+
85
+ ```powershell
86
+ # Enable WSL
87
+ wsl --install
88
+
89
+ # Or if already installed, upgrade to WSL2
90
+ wsl --set-default-version 2
91
+
92
+ # Install Ubuntu
93
+ wsl --install -d Ubuntu-22.04
94
+ ```
95
+
96
+ Restart your computer after installation.
97
+
98
+ ### Step 2: WSL Configuration
99
+
100
+ Launch Ubuntu from the Start menu and configure your user.
101
+
102
+ ```bash
103
+ # Update the system
104
+ sudo apt update && sudo apt upgrade -y
105
+
106
+ # Install prerequisites
107
+ sudo apt install -y git python3 python3-pip
108
+ ```
109
+
110
+ ### Step 3: Install LLMUI Core in WSL
111
+
112
+ ```bash
113
+ # Clone the repository
114
+ git clone https://github.com/GenAICos/llmui-core.git
115
+ cd llmui-core
116
+
117
+ # Launch installation with Andy
118
+ sudo bash andy_setup.sh
119
+ ```
120
+
121
+ ### Access from Windows
122
+
123
+ Once installed in WSL, access the interface via:
124
+
125
+ ```
126
+ http://localhost/
127
+ ```
128
+
129
+ Windows browser can directly access WSL services!
130
+
131
+ ### Important Notes for WSL
132
+
133
+ - **Performance**: WSL2 offers excellent performance but will consume Windows RAM
134
+ - **Files**: Access WSL files from Windows via `\\wsl$\Ubuntu-22.04\`
135
+ - **Network**: WSL ports are automatically forwarded to Windows
136
+ - **Memory**: Configure `.wslconfig` to limit RAM usage if needed
137
+
138
+ #### .wslconfig Configuration (optional)
139
+
140
+ Create `C:\Users\YourName\.wslconfig`:
141
+
142
+ ```ini
143
+ [wsl2]
144
+ memory=8GB
145
+ processors=4
146
+ swap=4GB
147
+ ```
148
+
149
+ ---
150
+
151
+ ## 🚀 Quick Installation with Andy
152
+
153
+ **Andy** is the autonomous DevOps assistant that automates the complete installation of LLMUI Core.
154
+
155
+ ### One-Command Installation
156
+
157
+ ```bash
158
+ # Clone repository
159
+ git clone https://github.com/GenAICos/llmui-core.git
160
+ cd llmui-core
161
+
162
+ # Launch interactive installation
163
+ sudo bash andy_setup.sh
164
+ ```
165
+
166
+ ### Complete Automatic Installation
167
+
168
+ ```bash
169
+ # Installation in 3 automated steps
170
+ sudo python3 andy_installer.py # Step 1: System base
171
+ sudo python3 andy_deploy_source.py # Step 2: Source files
172
+ sudo python3 andy_start_services.py # Step 3: Services
173
+ ```
174
+
175
+ Andy will automatically:
176
+ - ✅ Update OS
177
+ - ✅ Install Ollama + 3 LLM models
178
+ - ✅ Configure Python + dependencies
179
+ - ✅ Create systemd services
180
+ - ✅ Configure Nginx + SSL
181
+ - ✅ Configure firewall
182
+ - ✅ Verify installation
183
+
184
+ > **Note**: Andy will only ask you for the username and password for the LLMUI interface.
185
+
186
+ ### What Andy Does
187
+
188
+ 1. **Base Installation** (`andy_installer.py`)
189
+ - Automatic system detection (apt/dnf/yum)
190
+ - System dependency installation
191
+ - Ollama installation and model download
192
+ - Python virtual environment creation
193
+ - Systemd service configuration
194
+ - Nginx and firewall configuration
195
+
196
+ 2. **Source Deployment** (`andy_deploy_source.py`)
197
+ - Git repository clone (or manual copy)
198
+ - File installation in `/opt/llmui-core/`
199
+ - Permission configuration
200
+
201
+ 3. **Service Startup** (`andy_start_services.py`)
202
+ - Systemd service activation
203
+ - Backend → proxy → nginx startup
204
+ - Service status verification
205
+ - HTTP test and access URL display
206
+
207
+ ### Interactive Menu (andy_setup.sh)
208
+
209
+ ```
210
+ ╔═══════════════════════════════════════════════════════════════════════════╗
211
+ ║ MAIN MENU ║
212
+ ╚═══════════════════════════════════════════════════════════════════════════╝
213
+
214
+ [1] Complete installation (recommended)
215
+ [2] Base installation only
216
+ [3] Deploy source files
217
+ [4] Start services
218
+ [5] Verify installation
219
+ [6] View logs
220
+ [7] Read documentation
221
+ [Q] Quit
222
+ ```
223
+
224
+ ---
225
+
226
+ ## 📦 Project Structure
227
+
228
+ ```
229
+ llmui-core/
230
+ ├── andy_setup.sh # Interactive menu
231
+ ├── andy_installer.py # System base installation
232
+ ├── andy_deploy_source.py # Source deployment
233
+ ├── andy_start_services.py # Service startup
234
+ ├── README.md # This file
235
+ ├── README_ANDY.md # Andy documentation
236
+ ├── INSTALL.md # Detailed installation guide
237
+ ├── LICENSE # Proprietary license
238
+ │
239
+ ├── src/ # Backend source code
240
+ │ ├── llmui_backend.py # Main FastAPI server
241
+ │ ├── llmui_proxy.py # Proxy server
242
+ │ ├── auth.py # Authentication
243
+ │ ├── database.py # SQLite management
244
+ │ ├── memory.py # Memory system
245
+ │ └── file_processor.py # File processing
246
+ │
247
+ ├── web/ # Web interface
248
+ │ ├── index.html
249
+ │ ├── css/
250
+ │ ├── js/
251
+ │ └── assets/
252
+ │
253
+ ├── config.yaml # Main configuration
254
+ ├── requirements.txt # Python dependencies
255
+ │
256
+ └── docs/ # Documentation
257
+ ├── ARCHITECTURE.md
258
+ ├── API.md
259
+ ├── CONFIGURATION.md
260
+ └── TROUBLESHOOTING.md
261
+ ```
262
+
263
+ ---
264
+
265
+ ## 🔧 Configuration
266
+
267
+ ### Main File: `config.yaml`
268
+
269
+ ```yaml
270
+ server:
271
+ host: "0.0.0.0"
272
+ port: 5000
273
+ ssl_enabled: false
274
+
275
+ ollama:
276
+ base_url: "http://localhost:11434"
277
+ models:
278
+ workers:
279
+ - "phi3:3.8b"
280
+ - "gemma2:2b"
281
+ merger: "granite4:micro-h"
282
+
283
+ database:
284
+ path: "/opt/llmui-core/data/llmui.db"
285
+
286
+ security:
287
+ jwt_secret: "auto-generated"
288
+ session_timeout: 3600
289
+ ```
290
+
291
+ ### Ports Used
292
+
293
+ | Service | Port | Description |
294
+ |---------|------|-------------|
295
+ | Nginx | 80/443 | Web interface |
296
+ | llmui-proxy | 8080 | Proxy + auth |
297
+ | llmui-backend | 5000 | Backend API |
298
+ | Ollama | 11434 | LLM server |
299
+
300
+ ---
301
+
302
+ ## 🎮 Usage
303
+
304
+ ### Interface Access
305
+
306
+ Once installed, access LLMUI Core via your browser:
307
+
308
+ **Linux:**
309
+ ```
310
+ http://YOUR_IP/
311
+ ```
312
+
313
+ **Windows (WSL):**
314
+ ```
315
+ http://localhost/
316
+ ```
317
+
318
+ The server IP is displayed at the end of Andy's installation.
319
+
320
+ ### Service Management
321
+
322
+ ```bash
323
+ # Service status
324
+ sudo systemctl status llmui-backend
325
+ sudo systemctl status llmui-proxy
326
+ sudo systemctl status nginx
327
+
328
+ # Restart services
329
+ sudo systemctl restart llmui-backend
330
+ sudo systemctl restart llmui-proxy
331
+ sudo systemctl restart nginx
332
+
333
+ # Real-time logs
334
+ sudo journalctl -u llmui-backend -f
335
+ sudo journalctl -u llmui-proxy -f
336
+ ```
337
+
338
+ ### REST API
339
+
340
+ Complete API documentation available in [`docs/API.md`](docs/API.md).
341
+
342
+ Endpoint examples:
343
+
344
+ ```bash
345
+ # Health check
346
+ curl http://localhost:5000/api/health
347
+
348
+ # Model list
349
+ curl http://localhost:5000/api/models
350
+
351
+ # New conversation
352
+ curl -X POST http://localhost:5000/api/chat \
353
+ -H "Content-Type: application/json" \
354
+ -d '{"message": "Hello!", "user_id": "user123"}'
355
+ ```
356
+
357
+ ---
358
+
359
+ ## 📊 Features
360
+
361
+ ### ✨ Multi-Model Consensus
362
+
363
+ LLMUI core uses a unique approach:
364
+ 1. **Workers analyze** the prompt in parallel
365
+ 2. **Merger synthesizes** responses into consensus
366
+ 3. **Superior quality** thanks to model diversity
367
+
368
+ ### 🧠 Advanced Memory System
369
+
370
+ - **Short-term memory**: Conversation context
371
+
372
+ ### 📄 File Processing
373
+
374
+ Supported formats:
375
+ - **Documents**: PDF, DOCX, TXT, MD
376
+ - **Images**: PNG, JPG, WEBP
377
+ - **Data**: CSV, JSON, YAML
378
+ - **Code**: Python, JavaScript, etc.
379
+
380
+ ### 🔐 Security
381
+
382
+ - **JWT authentication**
383
+ - **Session encryption**
384
+ - **Configured firewall**
385
+ - **Nginx security headers**
386
+ - **Service isolation**
387
+ - **Strict permissions**
388
+
389
+ ---
390
+
391
+ ## 📖 Complete Documentation
392
+
393
+ - **[INSTALL.md](INSTALL.md)** - Detailed installation guide
394
+ - **[README_ANDY.md](README_ANDY.md)** - Andy documentation
395
+ - **[ARCHITECTURE.md](docs/ARCHITECTURE.md)** - Technical architecture
396
+ - **[API.md](docs/API.md)** - REST API documentation
397
+ - **[CONFIGURATION.md](docs/CONFIGURATION.md)** - Advanced configuration
398
+ - **[TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md)** - Troubleshooting
399
+
400
+ ---
401
+
402
+ ## 🛠 Quick Troubleshooting
403
+
404
+ ### Services Won't Start
405
+
406
+ ```bash
407
+ # Check logs
408
+ sudo journalctl -u llmui-backend -n 50
409
+ sudo journalctl -u llmui-proxy -n 50
410
+
411
+ # Check permissions
412
+ ls -la /opt/llmui-core/
413
+
414
+ # Check Python environment
415
+ /opt/llmui-core/venv/bin/python --version
416
+ /opt/llmui-core/venv/bin/pip list
417
+ ```
418
+
419
+ ### Nginx Error 502
420
+
421
+ Backend not started:
422
+ ```bash
423
+ sudo systemctl status llmui-backend
424
+ sudo systemctl start llmui-backend
425
+ ```
426
+
427
+ ### Ollama Not Responding
428
+
429
+ ```bash
430
+ ollama list
431
+ ollama ps
432
+ sudo systemctl status ollama
433
+ sudo systemctl restart ollama
434
+ ```
435
+
436
+ ### WSL-Specific Issues
437
+
438
+ ```bash
439
+ # Restart WSL from PowerShell (Windows)
440
+ wsl --shutdown
441
+ wsl
442
+
443
+ # Check WSL version
444
+ wsl --list --verbose
445
+
446
+ # Free up memory
447
+ sudo sh -c "echo 3 > /proc/sys/vm/drop_caches"
448
+ ```
449
+
450
+ ### View Andy Logs
451
+
452
+ ```bash
453
+ # Installation log
454
+ less /tmp/andy_install.log
455
+
456
+ # SQLite database
457
+ sqlite3 /tmp/andy_installation.db
458
+ ```
459
+
460
+ ---
461
+
462
+ ## 📄 Update
463
+
464
+ ```bash
465
+ # Backup configuration
466
+ sudo cp /opt/llmui-core/config.yaml /opt/llmui-core/config.yaml.bak
467
+
468
+ # Stop services
469
+ sudo systemctl stop llmui-backend llmui-proxy
470
+
471
+ # Update code
472
+ cd /path/to/llmui-core
473
+ git pull origin main
474
+
475
+ # Redeploy
476
+ sudo python3 andy_deploy_source.py
477
+
478
+ # Restart
479
+ sudo python3 andy_start_services.py
480
+ ```
481
+
482
+ ---
483
+
484
+ ## 🤝 Contribution
485
+
486
+ This project is developed by **Francois Chalut**
487
+
488
+ For any questions or contributions:
489
+ - **Email**: francois.chalut@gmail.com
490
+ - **Issues**: [GitHub Issues](https://github.com/GenAICos/llmui-core/issues)
491
+
492
+ ---
493
+
494
+ ## 📜 License
495
+
496
+ © 2025 Francois Chalut.
497
+
498
+ AGPLv3 + common clause
499
+
500
+ See [LICENSE](LICENSE) for more details.
501
+
502
+ ---
503
+
504
+ ## 🌟 Project Philosophy
505
+
506
+ LLMUI Core is part of a vision of **Quebec digital sovereignty**:
507
+
508
+ - 🇨🇦 **Local first**: Complete hosting and control
509
+ - 🔓 **Open Architecture**: Extensible and adaptable
510
+ - 🛡️ **Security by design**: Data protection
511
+ - 🤖 **Ethical AI**: Transparency and consensus
512
+ - 🌱 **Technological autonomy**: Independence from GAFAM
513
+
514
+ ---
515
+
516
+ ## 📞 Support
517
+
518
+ **Documentation**: [GitHub Wiki](https://github.com/GenAICos/llmui-core/wiki)
519
+ **Andy Logs**: `/tmp/andy_install.log`
520
+ **Andy Database**: `/tmp/andy_installation.db`
521
+ **Installation**: `/opt/llmui-core/`
522
+
523
+ ---
524
+
525
+ **Developed with 💙 in Quebec by Francois Chalut**