How hudsonmathew1910/heros works
Heros is a Django AI-assistant platform. Its main workflow accepts chat or developer-API requests, manages user/session context, routes prompts through Baymax to model providers, and returns responses; supporting stages include intent detection, web search, file handling, and usage tracking. Infinsight provides a separate dataset-analysis workflow spanning ingestion, retrieval, structured analysis, and LLM interpretation; Zuno adds music-assistant actions. The map preserves documented capabilities, but several subsystem links rely on README statements or source-index references rather than inspected implementation excerpts.
Main entry points: backend/views.py Web API and sessions · Rag.py RAG orchestration · hero_model.py Baymax dispatcher · zuno/views.py Zuno music assistant
Components 25
Request and Accounts
- Web API and sessions
backend/views.py - Developer API
backend/developer_api.py - Accounts and chat state
backend/models.py - Key encryption
backend/encryption.py - Usage tracking
backend/usage_tracker.py
AI Routing
- Intent detection
backend/Nlp.py - Baymax dispatcher
backend/hero_model.py - Halo engine
backend/halo.py - Model registry
backend/llm_registry.py - Provider catalogue
backend/llm_catalogue.py - Web search
backend/models_task/web_search.py
Infinsight Analytics
- Analytics endpoints
infinsight/views.py - RAG orchestration
infinsight/Rag.py - Dataset parsing
infinsight/file_parses.py - Embedding retrieval
infinsight/Embedding.py - Analyst LLM
infinsight/Llm.py - Structured analysis
infinsight/analyst_engine.py - Analytics sessions
infinsight/models.py - Guest access
infinsight/guest.py
Apps and Tools
- Zuno music assistant
zuno/views.py - Browser extension
Other components
- Platform user
- API client
- LLM providers
- YouTube Music and YouTube
Connections 25
- Platform user → Web API and sessions: sends requests
- API client → Developer API: calls API
- Web API and sessions → Accounts and chat state: reads and writes
backend/views.py - Web API and sessions → Key encryption: uses encryption
backend/views.py - Web API and sessions → Usage tracking: tracks usage
backend/views.py - Web API and sessions → Intent detection: detects intent
backend/views.py - Web API and sessions → Baymax dispatcher: dispatches prompts
backend/views.py - Developer API → Baymax dispatcher: routes inference
- Baymax dispatcher → Model registry: loads models
backend/hero_model.py - Baymax dispatcher → Web search: invokes search
backend/hero_model.py - Baymax dispatcher → LLM providers: falls back across
- Platform user → Analytics endpoints: uploads and queries
- Analytics endpoints → RAG orchestration: starts analysis
infinsight/views.py - Analytics endpoints → Analytics sessions: manages sessions
infinsight/views.py - RAG orchestration → Dataset parsing: parses datasets
infinsight/Rag.py - RAG orchestration → Embedding retrieval: stores and retrieves
infinsight/Rag.py - RAG orchestration → Analyst LLM: generates interpretation
infinsight/Rag.py - RAG orchestration → Structured analysis: runs data analysis
infinsight/Rag.py - RAG orchestration → Analytics sessions: uses session data
infinsight/Rag.py - Analyst LLM → Guest access: selects guest models
infinsight/Llm.py - Guest access → Analytics sessions: manages guest data
infinsight/guest.py - Browser extension → Zuno music assistant: sends music intent
- Zuno music assistant → Baymax dispatcher: uses assistant context
zuno/views.py - Zuno music assistant → Model registry: loads intent models
zuno/views.py - Zuno music assistant → YouTube Music and YouTube: searches and links
zuno/views.py