AI-Powered Education Platform
24/7 AI teacher for exam preparation. Personalized learning experience for TYT, AYT, LGS, KPSS exams.
Customer Need
Students couldn't get 24/7 personalized support during exam preparation. Private tutoring costs were very high.
Our Solution
We developed a smart education platform using multiple AI models. Added voice chat, automatic homework generation, quiz system.
Technical Details
Integrations
Challenges & Solutions
1Multi-AI Model Management
6 different AI providers had different API formats, pricing models and response structures.
Created abstraction layer with Factory pattern. Separate service class for each provider, unified management with common interface. Users can switch models seamlessly.
2Real-Time Voice Chat
Students needed to talk with AI via voice. Latency and sound quality were critical.
WebRTC + OpenAI Realtime API integration. Optimized connection management for low latency, automatic transcription and credit tracking.
3Math Formula Support
Math questions needed proper formula rendering.
KaTeX integration for LaTeX formula rendering. Automatic formula detection and conversion in AI responses.
4Dynamic Credit Calculation
Each AI model has different token pricing. Fair and transparent pricing needed for users.
Token-based cost calculation system. Automatic credit deduction based on input/output token count and model price for each API call.
Behind The Scenes
- Token count calculated for each AI response, credits deducted based on actual cost
- Voice chat has per-second credit calculation
- Homework creation with dynamic pricing based on question count (1-30 credit range)
- DALL-E image generation with different pricing by size and quality
- Bulk student import system for institutions (CSV)
- 21 database migrations for version control
- 61-page technical documentation
Project Features
- 24/7 AI teacher support
- Real-time interaction with voice chat
- Automatic homework and quiz generation
- Math formula support (LaTeX/KaTeX)
- Solve questions by uploading files
Achieved Results
Students can now study with AI teacher 24/7. More than 90% savings compared to private tutoring costs.
Project Information
Tech Stack
Architecture
Modular MVC architecture. AI services abstracted with Factory pattern, payment system with event-driven callback structure. Redis for session and cache management. All sensitive data encrypted.
