100% Offline · Zero Data Egress · On-Device AI

NCERT Class 10 AI Tutor
That Runs on Your Phone.

Ask questions in Hindi, English, or Hinglish. Get step-by-step NCERT answers with page citations — entirely on your device. No internet, no cloud, no fees.

Powered by Qwen 2.5 1.5B quantized to Q4_K_M · ~1.2 GB RAM · Works on ₹8,000 phones

<5ms

Out-of-scope refusal

1.2 GB

Peak RAM usage

0 bytes

Data sent to cloud

3 भाषा

Hindi · English · Hinglish

Live Demo

Ask Like a Student

See how the 3-tier gated pipeline handles real NCERT questions.

IN SCOPE — Grounded Answer Chapter 6: Life Processes

Student: "khana digest kaise hota hai body me?"

Digestion (pachan) ka process ye hai:

  • • Mouth (munh) — Salivary amylase enzyme starch ko maltose me todta hai
  • • Stomach (amaashay) — HCl acid aur pepsin enzyme proteins ko digest karta hai
  • • Small intestine (chhoti aant) — Bile, pancreatic juice aur intestinal enzymes complete digestion karte hai
  • • Villi — Digested food ka absorption blood me hota hai

(NCERT Class 10 Science, pp. 97-101)

Retrieval: 0.8ms BM25: 12.4 TTFT: 340ms 18 tok/s
HINGLISH — Synonym Expanded Chapter 6: Life Processes

Student: "dil me khoon kaise flow hota hai?"

Synonym expansion: dil → heart, cardiac | khoon → blood, circulatory

Double circulation: Deoxygenated blood → Right atrium → Right ventricle → Lungs → Oxygenated blood → Left atrium → Left ventricle → Body...

(NCERT Class 10 Science, pp. 106-108)

OUT OF SCOPE — Pre-LLM Refusal 0 GPU cycles used

Student: "Newton ka third law samjhao"

Yeh topic aapke Class 10 Chapter 6 (Life Processes) syllabus me nahi hai.

Hint: Newton's Laws of Motion Chapter 9 me hain.

Latency: 2.1ms BM25: 0.3 Below TAU (4.5) Zero inference cost

Architecture

3-Tier Gated Pipeline

Every query passes through deterministic gates before touching the LLM. Out-of-scope questions are refused in under 5ms with zero model inference.

1

Chapter Context Lock

Student selects their active chapter (e.g., Class 10 → Science → Life Processes). All retrieval is scoped to this chapter only — no cross-chapter leakage.

2

Pre-LLM Deterministic Gate

Normalize Hinglish queries via synonym expansion (80+ mappings). Run BM25 search over SQLite FTS5. If score is below calibrated TAU threshold → immediate refusal in <5ms, zero GPU/NPU cycles.

SQLite FTS5 BM25 scoring Dynamic TAU Synonym map
3

In-Context Grounded SLM

Pass top 1-2 retrieved chunks (max 800 tokens) to Qwen2.5-1.5B via llama.cpp. Model answers strictly from the passage with NCERT page citations. If passage lacks the answer → emits OUT_OF_CURRICULUM refusal.

Qwen2.5-1.5B Q4_K_M llama.cpp 2048 context LoRA fine-tuned

Why Offline

Built for Bharat's Reality

No Internet Needed

Works in villages with zero connectivity, on flights, or when data packs run out. The model runs entirely on-device.

Zero Data Egress

No student query ever leaves the device. No telemetry, no analytics, no cloud servers. Complete privacy for minors.

Zero Recurring Cost

No API tokens, no subscriptions, no per-query charges. One download, unlimited usage. Like carrying a teacher in your pocket.

Hindi & Hinglish First

Ask in the language you think in. The synonym engine maps colloquial Hindi (pachan, khoon, saans) to academic NCERT terms automatically.

₹8,000 Phones

Fits in ~1.2 GB RAM. Designed for 4-6 GB budget Android phones — the devices most Indian students actually own.

Curriculum-Bounded

Only answers from NCERT textbook content. No hallucinations, no out-of-syllabus tangents, no dangerous misinformation. Every answer cites page numbers.

Under the Hood

Technical Stack

Qwen 2.5 1.5B

Base model

Q4_K_M GGUF

~1.1 GB quantized

llama.cpp

Inference engine

SQLite FTS5

BM25 retrieval

LoRA r=16

Fine-tuning

MLX / Unsloth

Training runtime

ChatML

Prompt format

Python + Gradio

Prototype UI

Zero dependencies

No cloud SDKs

Evaluation

Benchmark Suite

200-query test suite across 3 categories. No LLM-as-judge — span-matching against passages and exact refusal matching.

100

Standard NCERT questions

50

Hinglish paraphrases

50

Out-of-scope (100% refusal target)

Target Metrics

Retrieval gating latency< 10ms
Out-of-scope leakage rate< 2%
Hinglish false refusal rate< 5%
Grounded passage support> 95%
Refusal precision> 98%

Open Source. Built for India.

Shiksha-Edge is being built in the open. Star the repo, contribute content, or bring it to your school.