PrepAtlas
AI-grounded exam prep platform for Indian students
The problem. Indian exam prep platforms surface confident-but-unsourced answers โ students can't verify what they're memorising, and hallucinated facts get propagated as truth.
The approach. Retrieval-Augmented Generation grounded in a curated corpus. Every answer cites the source passage(s) it was generated from. Queries are embedded, matched against pgvector in Supabase Postgres, and the top-K passages are passed as context to Claude โ answers that can't be grounded are refused rather than hallucinated.
The outcome. 20+ paying users in beta on a $35/month AWS stack. Sub-200KB JS on critical paths. Wrapped as an Android TWA via Bubblewrap so the same Next.js bundle ships native-feel on Play Store.
Natural-language question entered in the Next.js client. Tokenised, normalised.
Query embedded into a 1536-dim vector. Cached on the user record for repeat hits.
Cosine-similarity search against the curated corpus stored in Supabase Postgres + pgvector. K = 5.
Anthropic Claude prompted with retrieved passages as context and a strict 'refuse if not in context' instruction.
Returned answer links every claim back to the passage it was generated from. Ungrounded claims are blocked.
- Vector DBpgvector inside Supabase over Pinecone โ one fewer service, RLS on the same Postgres, and quotas covered by the existing free tier.
- Mobile shippingBubblewrap TWA over React Native โ same Next.js bundle, no duplicate codebase, Play Store install in under a week.
- Hosting$35/mo AWS EC2 + nginx + pm2 โ predictable cost, no surprise bills, easy to step up to ECS if traffic warrants it.
- Performance budgetSub-200KB JS on critical paths โ measurable, enforceable, falls straight out of Next.js bundle analysis.