How skyuvaraj2007-web/esec-chatbot works
VISIONAI is a web-based visual intelligence and multimodal chat platform. Users authenticate, capture or upload images, ask questions, and receive visual analysis and conversational responses; they can revisit conversations, compare images, view insights, and request speech or translation. The README documents these capabilities, while the sampled chat and vision code show orchestration of routed analysis and Gemini responses. Some frontend-to-API and persistence details are documented only at a high level, so unsupported internal links are omitted.
Main entry points: main.py FastAPI application · chat.py Chat API · vision_service.py Vision analysis · api.ts API client
Components 27
Web experience
- Chat workspace
frontend/src/components/ConversationWorkspace.tsx - Camera capture
frontend/src/components/CameraCapture.tsx - Image comparison
frontend/src/components/ImageComparisonModal.tsx - Insights dashboard
frontend/src/app/app/insights/page.tsx - Conversation history
frontend/src/app/app/history/page.tsx - Authentication UI
frontend/src/context/AuthContext.tsx - API client
frontend/src/lib/api.ts
API and access
- FastAPI application
backend/app/main.py - Authentication API
backend/app/api/auth.py - Chat API
backend/app/api/chat.py - Image API
backend/app/api/images.py - Comparison API
backend/app/api/compare.py - Insights API
backend/app/api/insights.py - Speech API
backend/app/api/tts.py - Identity validation
backend/app/utils/security.py
Visual intelligence
- Task routing
backend/app/services/task_router.py - Vision analysis
backend/app/services/vision_service.py - Object detection
backend/app/services/yolo_service.py - Text extraction
backend/app/services/ocr_service.py - Gemini reasoning
backend/app/services/gemini_service.py - Language services
backend/app/services/language_service.py
Conversation and media
- Conversation memory
backend/app/services/conversation_service.py - Image storage
backend/app/services/storage_service.py - Speech synthesis
backend/app/services/tts_service.py
Other components
- User
- Supabase
- Gemini service
Connections 37
- User → Chat workspace: uses
README.md - User → Camera capture: captures image
README.md - User → Image comparison: compares images
README.md - User → Insights dashboard: views insights
README.md - User → Conversation history: reviews history
README.md - User → Authentication UI: authenticates
README.md - Chat workspace → API client: requests API
- Image comparison → API client: requests comparison
- Insights dashboard → API client: requests insights
- Conversation history → API client: requests history
- Authentication UI → Supabase: authenticates
- API client → FastAPI application: calls API
README.md - FastAPI application → Authentication API: routes to
backend/app/main.py - FastAPI application → Chat API: routes to
backend/app/main.py - FastAPI application → Image API: routes to
backend/app/main.py - FastAPI application → Comparison API: routes to
backend/app/main.py - FastAPI application → Insights API: routes to
backend/app/main.py - FastAPI application → Speech API: routes to
backend/app/main.py - Authentication API → Identity validation: validates identity
backend/app/api/auth.py - Chat API → Identity validation: validates identity
backend/app/api/chat.py - Chat API → Conversation memory: loads and saves
backend/app/api/chat.py - Chat API → Task routing: routes task
backend/app/api/chat.py - Chat API → Vision analysis: requests analysis
backend/app/api/chat.py - Chat API → Gemini reasoning: generates response
backend/app/api/chat.py - Chat API → Speech synthesis: synthesizes speech
backend/app/api/chat.py - Image API → Vision analysis: requests analysis
backend/app/api/images.py - Image API → Image storage: stores images
backend/app/api/images.py - Comparison API → Gemini reasoning: requests comparison
backend/app/api/compare.py - Comparison API → Image storage: loads images
backend/app/api/compare.py - Insights API → Conversation memory: reads statistics
backend/app/api/insights.py - Speech API → Speech synthesis: synthesizes speech
backend/app/api/tts.py - Vision analysis → Object detection: detects objects
backend/app/services/vision_service.py - Vision analysis → Text extraction: extracts text
backend/app/services/vision_service.py - Vision analysis → Gemini reasoning: analyzes image
backend/app/services/vision_service.py - Image storage → Supabase: stores or retrieves
backend/app/services/storage_service.py - Conversation memory → Supabase: persists records
README.md - Gemini reasoning → Gemini service: sends requests
backend/app/services/gemini_service.py