How harsha943vf/neura works
Neura is a college-information assistant with student chat and administrative tools. A student sends a question through the chat interface; the backend routes it into a graph that classifies domains, invokes relevant information agents, and synthesizes a response using conversation history. Admins can authenticate and manage college records, while an analytics view exposes usage reporting. The graph and router excerpts support the main chat flow; analytics internals and some page-to-service wiring were not sampled, so those connections are left unasserted.
Main entry points: neura_graph.py Neura graph · api.js HTTP API client · App.jsx Web app router · main.py FastAPI app
Components 22
Web interface
- Web app router
frontend/src/App.jsx - Chat page
frontend/src/pages/ChatPage.jsx - Login page
frontend/src/pages/LoginPage.jsx - Admin page
frontend/src/pages/AdminPage.jsx - Analytics page
frontend/src/pages/AnalyticsPage.jsx - HTTP API client
frontend/src/services/api.js
API routes
- FastAPI app
backend/main.py - Chat endpoint
backend/routers/chat.py - Authentication endpoint
backend/routers/auth.py - Admin endpoints
backend/routers/admin.py - Analytics endpoint
backend/routers/analytics.py
Answer orchestration
- Neura graph
backend/graph/neura_graph.py - Classifier and synthesis
backend/agents/super_agent.py
College knowledge
- Placement agent
backend/agents/placement_agent.py - Department agent
backend/agents/department_agent.py - Events agent
backend/agents/events_agent.py - General information agent
backend/agents/general_agent.py
Persistence
- Database connection
backend/database/connection.py - College and chat records
backend/database/models.py
Other components
- Student
- Administrator
- Groq language model
Connections 28
- Student → Chat page: asks question
- Administrator → Login page: signs in
- Web app router → Chat page: routes to
frontend/src/App.jsx - Web app router → Login page: routes to
frontend/src/App.jsx - Web app router → Admin page: routes to
frontend/src/App.jsx - Web app router → Analytics page: routes to
frontend/src/App.jsx - Login page → HTTP API client: calls login
frontend/src/services/api.js - Admin page → HTTP API client: manages records
frontend/src/pages/AdminPage.jsx - HTTP API client → Chat endpoint: posts chat
frontend/src/services/api.js - HTTP API client → Authentication endpoint: posts credentials
frontend/src/services/api.js - HTTP API client → Admin endpoints: requests records
frontend/src/services/api.js - HTTP API client → Analytics endpoint: requests summary
frontend/src/services/api.js - FastAPI app → Chat endpoint: registers route
backend/main.py - FastAPI app → Authentication endpoint: registers route
backend/main.py - FastAPI app → Admin endpoints: registers route
backend/main.py - FastAPI app → Analytics endpoint: registers route
backend/main.py - Chat endpoint → Neura graph: runs query
backend/routers/chat.py - Chat endpoint → College and chat records: records analytics
backend/routers/chat.py - Neura graph → Classifier and synthesis: classifies and synthesizes
backend/graph/neura_graph.py - Neura graph → Placement agent: dispatches placement
backend/graph/neura_graph.py - Neura graph → Department agent: dispatches department
backend/graph/neura_graph.py - Neura graph → Events agent: dispatches events
backend/graph/neura_graph.py - Neura graph → General information agent: dispatches general
backend/graph/neura_graph.py - Placement agent → College and chat records: queries placements
backend/agents/placement_agent.py - Classifier and synthesis → Groq language model: invokes model
backend/agents/super_agent.py - Placement agent → Groq language model: invokes model
backend/agents/placement_agent.py - Admin endpoints → College and chat records: reads and writes
backend/routers/admin.py - College and chat records → Database connection: uses base
backend/database/models.py