Documentation Pages
Architecture & Files
The workspace is divided into two primary projects: a Python web server managing hardware components and model inference on the Raspberry Pi target, and a Flutter mobile terminal providing responsive cyberpunk control interfaces.
Backend File Structure
/home/rpi/WaveGo/whisper-bot/ āāā webServer.py # Main Flask router hosting REST APIs & thread managers āāā requirements.txt # Python dependency specifications āāā MiniLM/ # Semantic Intent Classifier ā āāā all-MiniLM.onnx # Sentence-transformer ONNX model (384 dimensions) ā āāā intents.yaml # Intent dictionary containing natural language training phrases ā āāā knowledge_inference.py# Inference helper generating semantic embedding vectors āāā knowledge/ # Retrieval-Augmented Generation (RAG) ā āāā knowledge.pdf # Base PDF user manuals & specs ā āāā vector_db_gen.py # PDF text extractor, sliding chunker, & vector compiler ā āāā knowledge_db.pkl # Compiled vector database holding text chunks & embeddings ā āāā gemma3.onnx # Gemma 3 Causal Language Model ONNX graph ā āāā inference.py # Greedy decoding generation loop using KV-Caching āāā lenet5/ # Handwriting Digit Recognition ā āāā mnist-12.onnx # CNN model for handwritten digit classification ā āāā detect.py # Inference runner returning predictions, weights, & activation maps āāā core/ # Hardware control utilities (robot serial commands & servos)
Mobile App File Structure
whisper_bot_control/
āāā pubspec.yaml # App configuration, dependency tags, & assets
āāā lib/
āāā main.dart # App initialization, dark theme definitions, & route loader
āāā services/
ā āāā bot_api_client.dart # Unified HTTP network client wrapper for robot endpoints
āāā screens/
āāā ip_connection_screen.dart # IP validator, connection test, & storage persistence
āāā dashboard_screen.dart # Primary multi-tabbed interface (Controls, Vision, Assistant)
āāā character_recognition_screen.dart # Interactive drawing canvas & LeNet visualizer