How I Led a 5-Person Team to Ship an AI-Powered "Wrong Answer Explanation" Feature: From Planning to Launch
As the head of a five-person education startup team, my main job for the past three months wasn't writing code—it was making decisions, breaking down processes, and controlling risk throughout the planning, development, and launch of our "wrong answer explanation AI feature." This article, written from a manager's perspective, lays out the pitfalls we hit and our final solution, for other leaders who want to ship AI features in small teams.
1. The Business Pain Point: Why "Photo Search for Answers" Isn't Enough
Our product is a practice app for middle school students with tens of thousands of daily active users. When students upload their wrong answers, all they see is the standard answer. The feedback from customer support channels boils down to three points:
- Answers without explanations. Students copy the answer and still don't understand; parents complain that they "paid for a homework-copying tool."
- Manual explanation costs out of control. We tried having curriculum teachers record explanation videos—an average of twenty minutes of production per question, covering less than 5% of the question bank. Long-tail questions never make it through the queue.
- Compliance red lines. Hallucination in educational content isn't a "user experience issue"—it's an "incident issue." If the AI gets a formula wrong or makes up a nonexistent theorem, it could turn directly into a PR crisis.
So when kicking off the project, I set three hard constraints for the team: explanation content must be traceable, costs must be predictable, and vendors must be replaceable. These three constraints directly shaped the architectural choices that followed.
2. Architecture Design: Decoupling "AI Calls" from Business Logic
In the first version of the design, a backend engineer called a certain large model API directly inside the explanation service, with the API key written into a config file. I rejected this design during code review, for a simple reason: educational apps have mixed question types (text, formulas, geometry diagrams, handwriting), and a single model performs very differently across these types. We'd almost certainly need a multi-model combination, and if one vendor raised prices or had unstable service, we needed a Plan B.
The final architecture has four layers:
- Access layer: Question upload, OCR recognition + question type classification (geometry/algebra/word problems)
- Routing layer: Routes requests to the most suitable model based on question type and difficulty—formula questions go to a strong reasoning model, geometry diagram questions go to a multimodal model, simple questions go to a cheap lightweight model
- Generation layer: AI produces a draft explanation, with mandatory "structured output of solution steps"
- Validation layer: A rules engine performs hard validation (comparing answers against the question bank, formula legality checks), with a sampling review queue for curriculum teachers
The key decision: all model calls go through a unified AI API gateway, and business code only sees one set of interfaces. This is why we ultimately chose the unified gateway approach—more on that below.
3. Key Implementation Steps (Pre-Launch Execution Checklist)
I broke the project into six phases, each with clear acceptance criteria:
Phase 1 (Weeks 1-2): Question bank review and type labeling
□ Sample 5,000 questions for question type distribution stats, determine routing rules
□ Define structured schema for explanation content (steps, common mistakes, variations)
Phase 2 (Week 3): Unified gateway integration
□ Register multiple model vendors through the unified gateway, keys centrally managed
□ Use gateway usage stats for per-tenant billing across "curriculum/support/engineering"
□ Configure automatic failover chains: primary model timeout → backup model → queue for human handoff
Phase 3 (Weeks 4-5): Explanation generation pipeline
□ Version-controlled prompt templates; curriculum teachers can review but cannot directly modify production
□ Enforce JSON Schema output: solution steps array + final answer + confidence score
Phase 4 (Week 6): Risk control and compliance
□ Answer consistency check: AI answer ≠ question bank answer → auto-blocked into human review queue
□ Sensitive content filtering + explanation content retained for six months for audit
□ Gray release switch: new prompt versions start at 5% traffic
Phase 5 (Week 7): Cost load testing
□ Simulate call volume based on projected DAU, confirm marginal cost per user
□ Set gateway-level daily budget alerts; auto-switch to lightweight model when exceeded
Phase 6 (Week 8): Gradual rollout
□ 10% → 50% → full rollout, observe negative review rate at each stage for at least three days4. Why a Unified AI API Gateway Dramatically Reduces Maintenance Costs
This is the point I pushed hardest on as a manager, for three reasons:
First, switching vendors goes from "a project" to "a config change." Model prices and performance in the education sector change fast—the best model in the first half of the year may be surpassed in the second half. If each vendor's SDK, authentication, and parameter formats are scattered across business code, switching models means a full regression test. With a unified gateway, switching is just a routing config change—zero changes to business code. In our actual testing, switching geometry questions from Model A to Model B took only half a day, and most of that time was spent evaluating quality, not changing code.
Second, centralized key and billing management narrows the risk exposure. A five-person team has no dedicated security role; keys scattered across multiple services mean multiple leak risks. The unified gateway centrally manages keys and consolidates audit logs, and at month-end, costs are automatically allocated by feature line—I no longer need to pull three people together to reconcile spreadsheets.
Third, failover and rate limiting come out of the box—no need to build them yourself. Capabilities like "auto-switch to backup when primary model times out" and "daily budget alerts" are built into the gateway. Writing this logic ourselves would take at least two weeks, and a bug there means everything goes down—an unacceptable concentration of risk for a startup.
5. Three Things Managers Must Watch
Finally, three reminders for leaders in the same role:
- Watch acceptance criteria, not hours worked. "Explanation accuracy" must be quantified (we set answer consistency ≥98% as the bar for full rollout). Don't let the team slip by with "it feels pretty good."
- Watch the rollout pace. AI feature incidents spread far faster than traditional bugs; observing 10% traffic for three days is the minimum.
- Watch for single-vendor dependency. At any point, you must be able to guarantee "swap the model and the product still runs." This isn't technical purism—it's bargaining power and survival capability.
Looking back six weeks after launch, the biggest value of this feature isn't just the curriculum hours saved—it's that the team built a "standard process for integrating AI capabilities." The essay grading and oral proficiency assessment features we plan to build next can all reuse this gateway and risk-control framework.
If your team is planning something similar, I recommend building the unified access layer first before discussing model selection. We currently use Thistoken's unified AI API gateway—one gateway connecting to multiple models, centrally managed keys, with built-in usage-based billing allocation and failover capabilities. It's especially friendly for small teams in the early stage; you can register and start a trial right away.
---
Every example in this post runs with a single API key — get yours at https://api.thistoken.ai/register and start in minutes.
Bạn muốn thử Token.AI?
Tạo API Key cấp dự án, bật kênh trong bảng điều khiển và định cấu hình định tuyến, ngân sách và nhật ký kiểm tra.
注册 ThisToken.AI 并获取 API Key