Self-hosted AI assistant for business applications, with a reusable Python engine, local CPU inference, application tools, conversation history, knowledge retrieval, and a reproducible model fine-tuning pipeline.
One shared model serves application-specific adapters for facturation, management_projet, design_workflow, contrat, gestion_magasin, and reservation. Each adapter preserves its native authentication, permissions, company or store scope where applicable, business calculations, and audit history. The interface supports French and English. Tested integrations and prepared datasets are tracked separately from model training and acceptance; the later integrations remain disabled pending those gates.
- AI integration around an existing business application and its permission system.
- Local model serving with Colibri and CPU-compatible quantized inference.
- Typed tool calling with backend validation, bounded results, and scoped access.
- Application knowledge retrieval, conversation context, and verified navigation.
- Server-side LoRA training with synthetic datasets and measured baseline comparisons.
- Automated backend, frontend, and security checks for the application integration.
src/chat_ai_assistant: model provider, orchestrator, tool contracts, and response validation.frontend/chat-ai: canonical MUI chat, local SVG robot, composer, messages, and slash help.knowledge: reviewed application workflows and terminology.training: synthetic datasets, training configurations, export scripts, evaluations, and curated results.runtime/colibri: pinned inference runtime source and upstream license notices.deploy: configurable deployment templates.docs: architecture, API, tools, security, testing, and operating documentation.
- Invoice, quote, customer, product, and other supported record searches using natural descriptions.
- Financial summaries calculated through the existing application services.
- Permission-aware result cards, document actions, and navigation to existing application pages.
- Documented workflow explanations and visible form labels in French and English.
- User/company-scoped conversations, history, follow-up references, streaming, and cancellation.
- Supported edit/delete previews with explicit confirmation and attribution to the requesting user.
- Floating chat interface integrated once into each native authenticated layout, with application-specific suggestions and permitted shortcuts.
- Python 3.12+, JSON Schema
- Colibri, quantized Qwen3.5 CPU inference
- PyTorch, Transformers, PEFT/LoRA for model training
- Django, Django REST Framework, PostgreSQL for native business adapters
- Next.js, React, TypeScript, MUI for the shared interface
- pytest, Jest, Testing Library, and MCP Playwright for integration verification
- Backend API and Facturation adapter: Altroo/facturation_backend
- Frontend and chat interface: Altroo/facturation_frontend
- Management Projet backend adapter: Altroo/management_projet_backend
- Management Projet frontend: Altroo/management_projet_frontend
Install the reusable Python package in a local environment:
python -m venv .venv
source .venv/bin/activate
pip install -e .On Windows, activate with .venv\Scripts\activate.
The complete assistant uses each existing application backend and frontend. Follow the relevant native repository setup instructions and the deployment guide for application integration and private model configuration. Keep environment files and credentials outside source control.
Backend and frontend integration tests live in the related application repositories. The testing guide describes the verified commands, security scenarios, browser checks, and known limitations.
The model training pipeline runs on Linux and uses synthetic application scenarios. See the fine-tuning guide for dataset validation, training, export, evaluation, and rollback.
Broad model acceptance targets remain unmet. The model accuracy report records measured comparisons and the current shared training run; the serial training queue separates prepared datasets from executed stages. Passing application tests does not imply that every model request is interpreted correctly.
The repository is public for portfolio review. It contains source code, synthetic datasets, and reviewed technical results. Production credentials, connection details, financial records, model weights, private conversations, and browser authentication artifacts are excluded.
Colibri's upstream license and third-party notices are preserved. Model license information and pinned revisions are documented in the fine-tuning guide.