← Back to Leaderboard
Kyijiejiang

yijiejiang/kaogong-school

Self-hosted multi-agent tutor for Chinese civil service exam prep

Engineering Health (Methodology)
B+ · 68/100
Maintenance Activity
● Updated today
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption2/25
Release Cadence11/20
License Clarity20/20
DockerSelf-Hosted
Total Stars
★ 203
24h Growth
+0
7d Growth
+27
Forks
1

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

yijiejiang/kaogong-school Star History (2026-11-21 - 2026-12-04) DAILY STAR HISTORY (14-DAY D1 TELEMETRY) +202 in 13d · avg +16/day 214 107 0 2026-11-21: ★ 12026-11-22: ★ 62026-11-23: ★ 442026-11-24: ★ 962026-11-25: ★ 1292026-11-26: ★ 1692026-11-27: ★ 1762026-11-28: ★ 1852026-11-29: ★ 1882026-11-30: ★ 1952026-12-01: ★ 1992026-12-02: ★ 2032026-12-03: ★ 2032026-12-04: ★ 203 ★ 203 11-21 11-27 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Kaogong School is organized around one chat entry point, not a collection of independent bots. The Next.js 15 web app and native SwiftUI client use a Python 3.12 FastAPI backend over REST and SSE. A counselor built around Google ADK routes work to specialist roles for supervision, exam assembly, grading, tutoring and material collection or organization. Each role can use a different OpenAI-compatible model, and users can inspect handoffs and tool calls in the chat interface.

The data model distinguishes source documents, tagged questions, saved analyses and reusable skills. Ingestion creates retrievable chunks; question extraction runs as a background job with a progress endpoint. The tutor consults the skill map and material library, while grading feeds errors and mastery data back into study planning. Retrieval defaults to local hash-384 embeddings and can use a configured embedding API. Extension points include model endpoints and Git skill packs that follow the references/ layout.

Key Capabilities & Differentiators

The material library accepts PDF, DOCX, TXT, Markdown, web pages, images, audio, and Bilibili or YouTube video. Chunks can link back to source pages; for image-heavy questions that text extraction misses, multimodal extraction can retain the question crop alongside the recognized text. Video ingestion prefers captions, then falls back to transcription and aligns narration with OCR and timestamped keyframes. Saved analyses can render formulas, tables and diagrams in a full-screen presentation on web and iOS.

The exam workflow supports filtering by subject, module, difficulty and tag, timed attempts with autosave, objective scoring and model-assisted rubric grading for written answers. Online question selection extracts complete questions from search results rather than inventing replacements. Paper grading accepts 1–30 photos and requires review before results enter the question bank and update learner analytics. The OpenAI-compatible presets include DeepSeek, OpenCode Go and Ollama; OCR, search and speech capabilities depend on the configured service or local fallback.

Trade-offs & Limitations

Compared with a general self-hosted RAG workspace, the advantage is what happens after retrieval: a tagged question can be selected for an exam, scored and linked to a mastery update. Compared with a curated exam platform, there is more control over source material and model choice, but question coverage depends on what you import or can find online. Question-to-skill matching is heuristic, and mastery without real attempts is shown as an estimate rather than measured performance.

Self-hosting does not mean offline processing. Hosted inference, OCR and speech services can process inputs remotely and add usage costs; local Ollama and faster-whisper shift some of that load to the host. Video ingestion uses fixed-interval frames without scene detection or visual chart interpretation, and caption restrictions can reduce an import to its description. Most importantly, there is no login authentication. Keep the app private as shipped, and add authentication, access controls and an appropriate upload storage plan before a shared public deployment.

Hardware & Deployment Guide

The local path uses Python 3.12, uv, Node 20+ and ffmpeg. Run make install and make start, then open http://localhost:3000. make demo exercises the workflow with canned model responses and local hash embeddings, without requiring an API key. macOS is relevant for Vision OCR and iOS builds, not the FastAPI backend itself. The iOS 17+ client can pair over the LAN or reach a private instance through Tailscale.

SQLite is the default. For external infrastructure, make infra brings up the supplied Compose services: pgvector on PostgreSQL 16 and Redis 7, with persistent volumes. This is not a full application Compose stack; PostgreSQL is selected separately via DATABASE_URL. There is no tagged release in the supplied metadata. Recent project changes include image-based PDF question extraction, stricter source-based online question selection and skill-source filtering.

Agent routing: A counselor dispatches work to specialist roles, each with its own model configuration; chat streams over SSE.
Document retrieval: Heading-aware chunking preserves section hierarchy and links chunks back to original pages or figures.
Question selection: Fine-grained tags drive assembly; online selection requires a complete stem, options and answer, and reports shortages rather than silently substituting unrelated questions.
Paper grading: A multimodal model processes 1–30 images per submission; reviewed results update the bank and learner analytics only after confirmation.
Skill tracking: An offline-installable pack has more than 200 skills across eight areas; compatible Git packs can be imported, and estimated mastery is labeled.
Evaluation: A small retrieval suite reports Top-1 knowledge-point accuracy, Top-3 tag recall, chunk-type accuracy and Recall@5.
Best For

Individual Chinese civil service exam candidates who already have PDFs, courses or past papers and want one private workspace for retrieval, targeted practice, grading and progress tracking.

Skip If

You need a maintained question catalog out of the box, production-ready multi-user authentication, or high-quality offline OCR and grading without configuring local models.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-Hosted
cd backend
uv add faster-whisper
# 想要更准可以设 ASR_LOCAL_MODEL=medium

Comparison vs. Top Chat UI & AI Apps Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
kaogong-school ★203+27PythonMITSelf-hosted multi-agent tutor for Chinese civil service exam prep
unsloth80.7k+380PythonApache-2.0Local AI workspace for model chat, fine-tuning, and API serving
open-design110.9k+1kTypeScriptApache-2.0Local-first design workspace that turns coding-agent output into reviewable prot
kirara-ai19.3k+26PythonAGPL-3.0Self-hosted Python bot orchestration for multi-platform AI chat

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/yijiejiang/kaogong-school.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

yijiejiang/kaogong-school Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about kaogong-school

How should a custom client handle chat and long-running extraction?

Integrate with FastAPI over REST and use POST /api/chat/stream for SSE chat. For bulk extraction, POST /api/questions/extract/{material_id} returns a job ID; poll GET /api/questions/extract/jobs/{job_id} for progress. Treat the user_id query parameter as a learner selector, not authenticated identity.

Do I need a GPU, and what drives host resource usage?

The mock and hosted-model paths do not require a local GPU: the application runs the Python and Node services, with local hash embeddings available by default. Size CPU, memory and disk for document processing, uploads and video frames. Local faster-whisper adds transcription compute, while Ollama adds the requirements of the model you choose. There is no fixed VRAM baseline for those optional paths.

Can I use it commercially or host it for a study group?

The repository uses the MIT license, which permits commercial use and redistribution subject to its notice requirements. That license does not grant rights to imported exam materials or cover model-provider terms. Before exposing a shared instance, add authentication and authorization, and verify where learner data and uploaded material go when external services are enabled.

When is it a better fit than a general RAG workspace or a curated exam platform?

Choose this over a general document-chat workspace if you want a tagged question bank, timed exams, corrections and skill tracking built around Chinese civil service exams. Choose a general workspace for mixed subjects and document Q&A, or a curated exam platform if a maintained question catalog matters more than learning from your own materials.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining yijiejiang/kaogong-school? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature yijiejiang/kaogong-school on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare