Instant Guru is the AI tutor inside Arivihan, an edtech app for Indian students in Class 10 to 12. A student can type a doubt, photograph a problem or just ask out loud, in English, Hindi or Hinglish, and get an answer at any hour.
On a normal day it serves 50K+ students and 200K+ doubts. In exam season it has peaked at 90K daily users and 600K+ doubts in a single day. I'm the only engineer on it.
What end to end covers
| Layer | What's there |
|---|---|
| Agents | A parent agent with subagents for doubt solving, content search and guidance |
| Tools | 11+ search tools over lectures, notes, previous-year questions, tests and NCERT solutions |
| Backend | FastAPI, streaming over Server-Sent Events |
| Client | One React app, on the web and as a webview in the Android and iOS apps |
Owning both sides of the stream
The most useful thing about owning the agent and the client is that the contract between them is mine to change.
The stream isn't only text. The backend emits status, response deltas, cards, buttons and follow-ups. If an answer should end with a button that opens the right lecture, I can add the event and the component in the same change. In a team split at the API, that's two tickets and a meeting, and it usually becomes a paragraph telling the student where to tap.
The single React client works the same way. Because it runs as a webview, a fix reaches web, Android and iOS without waiting on an app release. A webview gives up some native polish in exchange. For a product whose core is a conversation that changes every week, I'd make that trade again.
Peak season isn't just more users
| Normal | Peak | Multiple | |
|---|---|---|---|
| Daily active users | 50K+ | 90K | about 1.8x |
| Doubts per day | 200K+ | 600K+ | about 3x |
| Doubts per user | about 4 | about 6.7 | about 1.7x |
Users less than double while doubts triple, because each student also asks more. Planning capacity from user growth alone would leave you short on exactly the days a missing answer matters most. Cost follows doubts rather than users too, so peak season is when you find out what your unit economics really are.
How inference cost came down 60%
At peak load, three things together cut LLM inference cost by 60%.
Context optimization. Every token in the prompt gets paid for on every turn. Recent turns stay verbatim and older history gets summarized.
Prompt caching. Provider caches match on a prefix, so what stays the same goes first and what changes goes last. It's a small reordering with a large effect, as long as nothing volatile sneaks into the prefix.
Semantic caching. Students preparing from the same chapters ask a lot of near-identical questions. The danger is matching two questions that sound alike and have different answers, so this one needs the most care. A cheap wrong answer is worse than an expensive right one.
Being the only engineer is a risk
A sole engineer on something 50K students use every day is a concentration of risk, and it's fair to treat it as one. There's no reviewer to catch a bad prompt change late at night, and nobody to tell me when an idea is bad.
Ownership's real benefit is speed, and speed is worth a lot in a product that's still finding its shape. Its real price is that the whole system's judgment is one person's. So I try to keep the infrastructure boring, because I'm the one who has to understand it in a hurry.