Beyond the Chatbot: Engineering a Hybrid AI Math Tutor for the Future
Building AI tools for education is tricky. Schools and students need the intelligence of cutting-edge LLMs, but they also need strict privacy, offline capabilities, and guardrails against prompt in...

Source: DEV Community
Building AI tools for education is tricky. Schools and students need the intelligence of cutting-edge LLMs, but they also need strict privacy, offline capabilities, and guardrails against prompt injection and toxic outputs. For this hackathon, I built Neural Math Lab: a React/Vite-based math orchestrator that seamlessly switches between Azure OpenAI (with RAG) and Local Ollama (DeepSeek-R1), all sitting behind a custom security proxy. Here is how I built a system designed for the Offline-Ready AI and Agentic System Architecture tracks. đ [https://github.com/dev-Adhithiya/Neural-Math-Lab] đď¸ The Architecture: Client, Proxy, and Intelligence I wanted to build something beyond a simple API wrapper. The app is split into a frontend UI and a Node.js backend proxy. Frontend (React + Vite): Handles the UI, the Node-link Topic Map for navigation, and local state management (IndexedDB). Security Proxy (Node.js/Express): The true engine of the app. It holds all Azure keys securely server-side