How hudsonmathew1910/hero-s-ai works
Heros is a Django AI assistant platform. Its main workflow routes user requests through backend endpoints and intent handling to Baymax, which produces model-backed responses; chat, account, and API-key state are persisted. Separate branches provide file analysis, web search, Infinsight dataset analytics, and Zuno music actions. The README documents these capabilities, while some implementation files—especially Infinsight views and routing—were not sampled, so those links are marked unverified rather than inferred as established calls.
Main entry points: views.py Django Endpoints · Rag.py RAG Workflow · hero_model.py Baymax Dispatcher · halo.py Halo Orchestrator
Components 25
User Interaction
- Web Interface
static/js/app.js - Django Endpoints
backend/views.py - Analytics Interface
static/js/inf.js
Assistant Processing
- Intent Detection
backend/Nlp.py - Baymax Dispatcher
backend/hero_model.py - Fast Routing
backend/fast.py - Halo Orchestrator
backend/halo.py - Web Search
backend/models_task/web_search.py - Query Rewriter
backend/models_task/query_rewriter.py - File Processing
backend/handle_file.py
Accounts And State
- Account And Chat Data
backend/models.py - Key Encryption
backend/encryption.py - Usage Tracking
backend/usage_tracker.py
Infinsight Analytics
- Analytics Endpoints
infinsight/views.py - RAG Workflow
infinsight/Rag.py - Dataset Parsing
infinsight/file_parses.py - Embedding And Retrieval
infinsight/Embedding.py - Dataset Analysis
infinsight/analyst_engine.py - Analytics LLM
infinsight/Llm.py - Analytics Sessions
infinsight/models.py
Specialized Apps
- Zuno Music Assistant
zuno/views.py
Other components
- User
- LLM Providers
- Pinecone
- YouTube Music
Connections 24
- User → Web Interface: uses
- Web Interface → Django Endpoints: requests
- Django Endpoints → Intent Detection: routes intent
backend/views.py - Django Endpoints → Baymax Dispatcher: dispatches
backend/views.py - Django Endpoints → Halo Orchestrator: invokes
backend/views.py - Django Endpoints → Account And Chat Data: reads and writes
backend/views.py - Django Endpoints → Usage Tracking: tracks usage
backend/views.py - Baymax Dispatcher → Fast Routing: uses routing
backend/hero_model.py - Baymax Dispatcher → LLM Providers: calls models
- Baymax Dispatcher → File Processing: handles files
backend/hero_model.py - Baymax Dispatcher → Web Search: searches web
backend/hero_model.py - Halo Orchestrator → Web Search: uses search
backend/halo.py - Halo Orchestrator → Query Rewriter: rewrites queries
backend/halo.py - Account And Chat Data → Key Encryption: encrypts fields
backend/models.py - Analytics Interface → Analytics Endpoints: requests analytics
- Analytics Endpoints → RAG Workflow: runs analytics
- RAG Workflow → Dataset Parsing: parses files
infinsight/Rag.py - RAG Workflow → Embedding And Retrieval: embeds chunks
infinsight/Rag.py - RAG Workflow → Analytics LLM: queries model
infinsight/Rag.py - RAG Workflow → Dataset Analysis: runs analysis
infinsight/Rag.py - Embedding And Retrieval → Pinecone: stores and retrieves
infinsight/Embedding.py - RAG Workflow → Analytics Sessions: updates sessions
infinsight/Rag.py - Zuno Music Assistant → LLM Providers: uses Baymax
zuno/views.py - Zuno Music Assistant → YouTube Music: searches tracks
zuno/views.py