How vaishnavi14k/uniassist-ai works
UniAssist AI routes student campus questions to relevant departments and returns an AI-generated response, informed by prior queries and campus knowledge. The main workflow runs from the Ask AI page through the REST API and LangGraph orchestration into analysis, similarity search, department lookup, response generation, and persistence. The UI also provides dashboard, health, and knowledge-graph views. README documents capabilities whose route implementations were not sampled; those are shown where paths are supported, without assuming internal call details.
Main entry points: main.py FastAPI app · api.ts REST client · store.py Similarity search · service.py Department and entity lookup
Components 22
Student interface
- Page navigation
src/App.tsx - Ask AI
src/pages/AskAI.tsx - Dashboard
src/pages/Dashboard.tsx - Knowledge graph view
src/pages/KnowledgeGraph.tsx - REST client
src/services/api.ts - Health status
src/services/useHealth.ts
API and orchestration
- FastAPI app
backend/app/main.py - Query endpoint
backend/app/routes/queries.py - Stats endpoints
backend/app/routes/stats.py - Health endpoint
backend/app/routes/health.py - Query workflow
backend/app/ai/workflow.py
Query intelligence
- LLM analysis and response
backend/app/ai/service.py - MCP data tools
backend/app/mcp/tools.py - Similarity search
backend/app/vector/store.py - Department and entity lookup
backend/app/graph/service.py
Campus data
- SQLite records
backend/app/models.py - Runtime configuration
backend/app/config.py - Initial data seeding
backend/app/seed.py
Other components
- Student
- Ollama
- ChromaDB
- Neo4j
Connections 33
- Student → Ask AI: submits question
README.md - Page navigation → Ask AI: renders
src/App.tsx - Page navigation → Dashboard: renders
src/App.tsx - Page navigation → Knowledge graph view: renders
src/App.tsx - Ask AI → REST client: submits query
src/pages/AskAI.tsx - Dashboard → REST client: loads stats
src/pages/Dashboard.tsx - Dashboard → Health status: uses
src/pages/Dashboard.tsx - Health status → REST client: checks health
src/services/useHealth.ts - Knowledge graph view → REST client: loads graph
src/pages/KnowledgeGraph.tsx - REST client → FastAPI app: HTTP requests
README.md - FastAPI app → Query endpoint: registers route
backend/app/main.py - FastAPI app → Stats endpoints: registers route
backend/app/main.py - FastAPI app → Health endpoint: registers route
backend/app/main.py - Query endpoint → Query workflow: runs workflow
backend/app/routes/queries.py - Query workflow → LLM analysis and response: invokes
backend/app/ai/workflow.py - Query workflow → MCP data tools: calls tools
backend/app/ai/workflow.py - LLM analysis and response → Ollama: invokes model
backend/app/ai/service.py - MCP data tools → Similarity search: searches and adds
backend/app/mcp/tools.py - MCP data tools → Department and entity lookup: queries graph
backend/app/mcp/tools.py - Department and entity lookup → Neo4j: runs Cypher
backend/app/graph/service.py - Similarity search → ChromaDB: searches and stores
backend/app/vector/store.py - MCP data tools → SQLite records: persists query
backend/app/mcp/tools.py - Stats endpoints → SQLite records: reads records
backend/app/routes/stats.py - FastAPI app → Initial data seeding: seeds startup data
backend/app/main.py - Initial data seeding → Similarity search: seeds vectors
backend/app/seed.py - Initial data seeding → SQLite records: seeds records
backend/app/seed.py - FastAPI app → Department and entity lookup: seeds and closes
backend/app/main.py - Runtime configuration → LLM analysis and response: configures model
backend/app/ai/service.py - Runtime configuration → Similarity search: configures store
backend/app/vector/store.py - Runtime configuration → Department and entity lookup: configures connection
backend/app/graph/service.py - Health endpoint → LLM analysis and response: checks availability
backend/app/routes/health.py - Health endpoint → Similarity search: checks availability
backend/app/routes/health.py - Health endpoint → Department and entity lookup: checks availability
backend/app/routes/health.py