AI Technology
One question, one concept mastered — powered by a full AI engine
Dogtor does more than hand questions to an LLM. We break the curriculum into knowledge points so every question, every answer and every recommendation maps to a concrete concept. AI gives us scale; knowledge points make learning measurable.
- 5
- AI systems working together
- 3
- models cross-check each question
- 0–10
- mastery score per knowledge point
- 24/7
- AI tutor on call
01 · Knowledge graph
A knowledge graph of every course
We break each course into a hierarchy of unit → topic → knowledge point, following its published framework (the College Board course frameworks for AP and the SAT). Questions, levels, mistakes and recommendations all attach to knowledge points.
- An LLM distills 2–7 distinct knowledge points from the questions in each section; the team then reviews and merges overly fine or duplicate ones.
- Gemini classifies every question into its knowledge point and filters out questions that depend on images the app cannot show.
- TF‑IDF and SVD embed knowledge points into a cross-subject 3D knowledge graph where related concepts sit close together, guiding new subjects and level design.
02 · Question pipeline
Question generation with multi-model verification
Every question goes through generate → blind solve → explain → review → programmatic checks. A question that fails any stage is dropped — answers are never edited to hit a quota.
Fix the scope
Lock the book, chapter, section, concept group, common confusions and exclusions. Uncertain facts are flagged for reference, never guessed.
Generate per concept
An LLM writes four-option, single-answer questions in English, each testing exactly one idea.
Blind solve
A different model answers without seeing the author's key. Any disagreement rejects the question.
Explain and review
A short explanation is written, then a reviewer model checks correctness, answer uniqueness and duplicates.
Programmatic checks
Code verifies unique options, answer indices, scope, format, content hashes and review coverage. Only untouched, fully passed questions export.
Rehearse, then ship
Imports run against staging first, are read back and verified, and only then go to production.
Each successful call is cached by content hash so failures resume only the missing steps, and token usage is tracked per model role to control cost. Students can report a wrong question in-app, and those reports flow back into the bank.
03 · Ask Dogtor
An AI tutor agent that decides what help you need
Ask Dogtor is a tool-calling agent, not a single LLM call. Students type or photograph a question and the agent chooses how to help:
Solve and explain
Walks through the problem and the concept behind it, including photographed questions.
Generate practice
Writes questions on a named topic — or, if none is given, on the student's last 30 days of mistakes — and saves them as a playable level.
Learning summary
Reads recent attempts, accuracy, per-subject and battle results, and gives brief feedback.
Product help and reports
Answers app questions only from the official product document, and forwards bug reports with screenshots to the team.
04 · Custom question banks
Snap your notes, get a level
Students photograph or upload notes, handouts, exams or PDFs. Files go to Cloud Storage, a multimodal model reads them and produces structured questions, options and explanations that become a playable level — for any subject.
- Multimodal input: images and PDFs go straight to the model (Vertex AI Gemini), with no manual transcription.
- Structured output: about 15 questions of JSON per level, normalized and validated before they reach the database.
- Quota and retries: quota is checked before generation, and failures retry a bounded number of times with logging.
05 · Mastery model
Every answer updates the student’s knowledge map
Each student has a 0–10 mastery score for every knowledge point. It decides what the next level draws and what to review today.
Bayesian-smoothed mastery
Accuracy over a sliding window of the last 20 attempts, with a 50% prior that fades as attempts grow, so one lucky answer is not "mastered".
score = (correct + w/2) / (n + w) × 10, w = max(0, 4 × (1 − n/20))Weakness-weighted levels
When a level draws questions, each knowledge point is weighted by max(10 − score, 1): weaker concepts get more questions.
weight = max(10 − score, 1)Forgetting-curve decay
Following the Ebbinghaus curve, Cloud Scheduler gently lowers unreviewed scores on days 7, 14, 30 and 60, never below half.
score ← max(5, score × 0.95 / 0.90 / 0.85 / 0.80)Today's review picks
Urgency combines mastery with days since practice; the 7–14 day "golden review window" weighs the most.
priority = (10 − score) × W(Δt)06 · Infrastructure
Built on Google Cloud
Dogtor's backend, data and AI workloads run on Google Cloud, with separate staging and production environments.
Cloud Run
FastAPI backend that autoscales for the app and the AI tutor
Vertex AI · Gemini
Multimodal question generation and question–concept matching
Cloud SQL
Question bank, knowledge points, attempts and mastery
Cloud Storage
Uploaded notes and photos, product knowledge documents
Cloud Scheduler
Daily forgetting-curve decay and other scheduled jobs
Cloud Build · Secret Manager
CI/CD and secrets
07 · Responsible AI
Holding AI accountable to students
- Bank questions must pass multi-model verification and programmatic checks; rejected questions are dropped, not patched.
- The tutor answers product questions only from the official document and never guesses rules or prices.
- Students can report any question; the team reviews and fixes the bank.
- National Taiwan University professors advise on AI, HCI and learning interaction, and we collaborate on academic research into how AI affects learning.
Try Dogtor’s AI learning yourself
Free to download. Let AI find the concepts you are really stuck on.