An AI study platform built for Kiji Technology: students photograph textbook pages and get an instant practice quiz. A Go API runs the whole pipeline and serves a Next.js web app, an admin panel and an Expo / React Native Android app.
What I built:
• End-to-end pipeline: scan pages (camera, gallery, crop, multi-page) → OCR → AI-generated quiz → attempt → results with explanations
• PaddleOCR microservice (Python + FastAPI) as the primary OCR engine, with Gemini Vision as a fallback for hard pages
• Gemini quiz generation behind a circuit breaker, with OpenAI available as an alternate provider
• Multi-tier caching of OCR text, content and the quiz bank (Redis + PostgreSQL): a chapter already processed is served from cache, cutting AI cost
• Billing with Razorpay and PayU: plans, usage limits, auto-renew, refunds and account credits
• Admin panel: users, scan jobs and retries, AI cost monitoring, cache controls, moderation, feature flags and an audit log
• Production backend: Docker on Fly.io, 39 database migrations, CI with race detection, health probes and Prometheus metrics
Stack: Go, Next.js, React Native, Expo, PostgreSQL, Redis / Valkey, Gemini AI, PaddleOCR.
0 likes · 0 views · Dec 1, 2026
Photo of a textbook page in, practice quiz out: OCR + Gemini pipeline in Go, with caching to keep AI costs down.