GuruBot

Overview

Hi there! 👋 We're excited to share our journey in building GURU-BOT, an AI-powered, offline-first tutor designed to enhance literacy and numeracy for students in underserved communities. 🚀

Calistung is an educational method in Indonesia that focuses on teaching reading (baca), writing (tulis), and arithmetic (hitung) to young children, typically aged 5-7 years old.

Main Features

  • Registrations & Login: Teachers need to sign up first to access the application. Students can’t register because they are still underage (5–7 years old). Therefore, teachers must register their students. Each student will receive a Login ID to log in.
  • Students Leaderboard: Teachers can track students' progress and their positions on the leaderboard based on the points they earn from learning activities such as completing quizzes and assignments, reading learning materials, and more.
  • Reading: We help students learn to read letters, syllables, and words. Currently, we use the Web Speech API for speech recognition, but we plan to enhance this with AI in the future.
  • Writing: We help students learn to write letters, syllables, and words. We are using AI models to detect and check their writing.
  • Arithmetic: We help students learn to arithmetic with interactive way and guidelines.
  • Quizzes: We provide various quiz types so students can practice after learning the materials. Students will earn points for correct answers. For essays, we have two options: manual grading or AI-powered checking. We can also combine answer keys with AI to determine if responses are correct.
  • AI Chat Assistant: We prioritize models that support both text and vision.
  • Explore Resources: We provide an Explore Resources feature for each learning topic to help students find external learning materials for deeper understanding.
  • AI for teachers: We provide AI-powered tools to help teachers create learning content.

How the AI works

  • Runs on a local machine: the chat assistant, the learning-content generator and the handwriting check use gemma3:4b through Ollama, so they don't need a fast internet connection.
  • Checks handwriting from a photo: a child writes on the screen, and a vision model reads what was written and says whether it matches the letter or syllable.
  • Checks speech: the API uses whisper.cpp on the machine itself to hear what a child says.
  • Local or cloud: one service picks a provider for each job; OpenRouter (Gemini Flash, Pixtral, GPT-4o mini) is the online option.

Structures

  • 3 Repositories
    • the web prototype (Ruby on Rails)
    • the API (Ruby on Rails)
    • the mobile app (Expo, React Native)

Tech Stack & Libraries

LayerBuilt with
Web prototypeRuby on Rails 7.2 · Turbo · Devise · Web Speech API
APIRuby on Rails 7.2 (API) · Devise + JWT · PostgreSQL
Mobile appExpo · React Native · expo-router · expo-speech · AsyncStorage (offline)
AIOllama: gemma3:4b · whisper.cpp · OpenRouter (online fallback)

Architecture

GuruBot architecture diagram

Solid arrows are calls, and the answer comes back on the same line; dashed arrows are sent on their own.

UI Interfaces

The mobile screens come from the app's own code run in a browser at phone size, with the real lessons and made-up names for students and teachers. The AI feedback on the writing screens is an example in the exact format GuruBot's handwriting AI returns, not a live model run.

Reading, writing and arithmetic

Quizzes

AI for students and teachers