Overview • Architecture • Quickstart • Training Guide • UI Integration
ProX AI is a comprehensive, modular Artificial Intelligence system designed to demonstrate how modern AI models work under the hood. Unlike wrappers around external APIs, ProX AI implements its own neural network architectures entirely from scratch using PyTorch.
It is designed to be lightweight enough to train on consumer hardware (or free cloud GPUs like Google Colab) while maintaining the structural integrity and modularity of a startup-grade AI product.
ProX AI consists of 5 independent but interconnected models, orchestrated by a central routing engine:
- Neurix-mini (Text): A custom decoder-only Transformer language model. Features multi-head self-attention, positional encoding, and a custom character-level tokenizer.
- Logyx-mini (Code): Shares the Neurix architecture but is optimized and trained specifically on code datasets for code generation tasks.
- Imagix-lite (Vision Generation): A lightweight Generative Adversarial Network (GAN) designed to synthesize images from latent noise vectors.
- Optyx-lite (Vision Classification): A Convolutional Neural Network (CNN) built for rapid and accurate image classification.
- Elevon-lite (Router): The orchestration brain. Elevon analyzes incoming user prompts and intelligently routes the request to the appropriate specialized model.
- Python 3.9+
- Node.js 18+ (for the UI)
- PyTorch 2.0+
# Navigate to the prox_ai directory
cd prox_ai
# Install Python dependencies
pip install -r requirements.txtThe backend is powered by FastAPI and serves all models via REST endpoints.
cd backend
uvicorn main:app --reload --host 0.0.0.0 --port 8000The API will be available at http://localhost:8000.
The repository includes a professional, ChatGPT-style React frontend.
# From the root of the repository
npm install
npm run devOpen http://localhost:3000 in your browser to interact with the models.
ProX AI models are designed to be trained locally. Each model has an independent training pipeline.
Neurix is a transformer model. To train it on the sample dataset:
cd prox_ai
python training/train_neurix.pyWhat happens during training?
- The
CharTokenizerbuilds a vocabulary from the dataset. - The text is chunked into sequences of
max_seq_len. - The Transformer processes batches, computing Cross-Entropy Loss.
- Checkpoints are automatically saved to
prox_ai/data/neurix/neurix_ckpt.pth.
python training/train_logyx.pypython training/train_imagix.pyNote: The GAN trains two networks simultaneously (Generator and Discriminator) using Binary Cross Entropy (BCE) loss.
python training/train_optyx.pyThe included React frontend provides a seamless chat interface to interact with Neurix and the other models.
- Smart Routing: Type a prompt like "Write a python function" and the backend Elevon Router will automatically detect the intent and route it to Logyx-mini.
- Chatting: Standard conversational prompts are routed to Neurix-mini.
- Fallback Mode: If the Python backend is not running, the UI will gracefully fall back to a simulated response mode, allowing you to preview the interface design.
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Health check and system status. |
/query |
POST | Main entry point. Uses Elevon to route to the correct model. |
/chat |
POST | Direct access to Neurix-mini. |
/code |
POST | Direct access to Logyx-mini. |
Example Request (/query):
{
"prompt": "Explain quantum computing."
}Example Response:
{
"model": "Neurix-mini",
"type": "chat",
"result": "Quantum computing is..."
}- BPE Tokenization: Upgrade from character-level to Byte-Pair Encoding (BPE) for Neurix and Logyx.
- Diffusion Models: Replace the Imagix GAN with a lightweight Diffusion model.
- KV Caching: Implement Key-Value caching in the Transformer for faster inference.
- WebSockets: Add streaming responses to the FastAPI backend and React frontend.
Built with ❤️ by AI Engineers.