← All writing

Why SarvPariksha exists

· SarvPariksha · 3 min read

Exam preparation in India has a pricing problem. A student preparing for JEE, NEET, GATE, MHT-CET, UPSC, or SSC can find advice everywhere and full mock tests almost nowhere without a subscription. SarvPariksha is my attempt to make the mock test part free.

It is an agentic platform, not a static question bank. A static bank has two failure modes: it goes stale, and it cannot respond to the person taking the test. I added an agent layer so the platform can plan a paper, retrieve material with tools, evaluate the attempt, and explain what went wrong.

The agent loop

A mock test starts with a plan. The agent reads the exam, subject, and attempt history, then drafts a blueprint for the paper. It retrieves candidate questions through tools rather than trusting model memory, checks them against structured metadata, and assembles the test. After submission, it evaluates the attempt, explains mistakes, and recommends what to practice next.

The important part is where the model is not allowed to work. Scoring stays deterministic. Answer keys and question metadata live in PostgreSQL, not in a prompt. The model plans and explains; the database and the grader decide what is true. That split keeps an agentic system auditable when a student disputes an answer.

What it runs on

The app is built with Next.js, with PostgreSQL holding questions, attempts, and results. Cloudflare handles delivery, and Groq powers inference for the agent. The stack is deliberately boring. Exam software should be predictable; the interesting parts belong in question quality and review, not in the framework.

What was actually hard

Not the UI. The hard part was the state machine around an attempt. A mock test has more states than it appears to: not started, in progress, paused, submitted, auto-submitted, reviewed, and abandoned. Every one of those states has to survive a slow connection, a closed tab, and a student who hits the back button at the worst possible moment.

The second hard part was scale without a team. A private tool can assume a handful of users and clean input. A public platform cannot. Making the jump meant caring about caching, database indexes, abuse, and error states that never show up in a demo.

Where it goes next

Generated questions need stronger evaluation: answer-key checks, duplicate detection, and a human review path before anything reaches a student. An agentic exam platform is only as good as its ability to reject a bad question.

The model is not the product. The attempt state is.

SarvPariksha is live at sarvpariksha.in. It is still the project I learn the most from, because every feature has to survive an anxious student on a cheap phone.

↑ Back to posts