How natybeau7/1-group works
UniVoice Campus is a browser-based Amharic/English university-document assistant. Admins authenticate, upload PDFs, and manage indexed documents; students ask by text or voice and receive answers grounded in retrieved passages, with source pages and optional speech. The graph follows evidenced route ownership through PDF indexing and retrieval, plus the browser/API workflow. The README documents Supabase storage/vector search and Addis AI capabilities; sampled source also shows Gemini embeddings and speech/answer services. Some integrations and database behavior are represented at subsystem level because their implementation is unsampled.
Main entry points: documents.py Document routes · main.py FastAPI app · assistant.py Assistant routes · supabase.py Document and vector data
Components 18
Browser experience
- Admin console
frontend/src/admin/AdminPage.jsx - Student assistant
frontend/src/student/VoiceAssistant.jsx - Conversation view
frontend/src/student/Conversation.jsx - Browser API client
frontend/src/api.js
Backend routes
- FastAPI app
backend/main.py - Admin authentication
backend/routes/admin.py - Document routes
backend/routes/documents.py - Assistant routes
backend/routes/assistant.py
Document and retrieval
- PDF extraction
backend/rag/extract.py - Text chunking
backend/rag/chunk.py - Embedding generation
backend/rag/embeddings.py - Passage retrieval
backend/rag/retrieval.py
AI and persistence
- Document and vector data
backend/services/supabase.py - Answer and speech service
backend/services/addis_ai.py
Other components
- University admin
- Student
- AI providers
- Supabase
Connections 22
- University admin → Admin console: manages documents
frontend/src/admin/AdminPage.jsx - Student → Student assistant: asks questions
frontend/src/student/VoiceAssistant.jsx - Admin console → Browser API client: requests admin actions
frontend/src/admin/AdminPage.jsx - Student assistant → Browser API client: sends questions
frontend/src/student/VoiceAssistant.jsx - Student assistant → Conversation view: renders history
frontend/src/student/VoiceAssistant.jsx - Browser API client → FastAPI app: calls HTTP routes
frontend/src/api.js - FastAPI app → Admin authentication: registers routes
backend/main.py - FastAPI app → Document routes: registers routes
backend/main.py - FastAPI app → Assistant routes: registers routes
backend/main.py - Document routes → Admin authentication: checks admin token
backend/routes/documents.py - Document routes → Document and vector data: stores and manages
backend/routes/documents.py - Document routes → PDF extraction: extracts pages
backend/routes/documents.py - Document routes → Text chunking: chunks pages
backend/routes/documents.py - Document routes → Embedding generation: embeds passages
backend/routes/documents.py - Embedding generation → AI providers: requests embeddings
backend/rag/embeddings.py - Document and vector data → Supabase: uses storage and database
README.md - Assistant routes → Passage retrieval: retrieves passages
backend/routes/assistant.py - Passage retrieval → Embedding generation: embeds query
backend/rag/retrieval.py - Passage retrieval → Document and vector data: matches chunks
backend/rag/retrieval.py - Assistant routes → Document and vector data: lists indexed documents
backend/routes/assistant.py - Assistant routes → Answer and speech service: answers, transcribes, speaks
backend/routes/assistant.py - Answer and speech service → AI providers: uses language services
README.md