Noggimigo

Noggimigo is a local, modular AI tutoring runtime. The deterministic lesson engine is authoritative for answer correctness and progression. An optional Hugging Face model (Qwen/Qwen3-0.6B by default) can suggest concise Socratic language, but model output is validated and cannot mark an answer correct or advance a lesson.

Implemented

  • Session manager with reset, bounded history, hints, progress, and configurable presentation preferences.
  • Exact deterministic verification for integers, decimals, fractions, and equivalent fractions; division by zero and ambiguous answers are rejected.
  • Supported lessons: fractions_intro, algebra_intro, and patterns_sequences.
  • Optional lazy local Transformers integration with structured JSON validation and deterministic fallback.
  • Command-line tutor and pytest coverage. No model weights are downloaded by ordinary tests.

Experimental NFOT-related telemetry is not part of the tutoring decision path. Response time is not treated as a biological Write-Back Gap, attention measure, retention measure, or diagnosis. The runtime works without EEG, BCI equipment, or telemetry.

Install and run

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip pytest
python noggimigo.py --lesson fractions_intro

Use hint, reset, or exit during a session. The same NoggimigoSession powers the CLI and programmatic use.

from noggimigo_session import NoggimigoSession
session = NoggimigoSession("algebra_intro")
print(session.current_prompt())
print(session.submit("subtract 4"))

Optional local Hugging Face model

python -m pip install -r requirements-hf-local.txt

Weights are downloaded lazily by Transformers to the user's local cache. CPU is supported where the selected model and Transformers version permit it; a modest GPU can improve generation speed. No API token is required for the default public model, and no token is stored by this project. Unit tests use mocked tokenizer/model objects.

Tests

pytest -q

Tests cover public imports, answer equivalence and invalid fractions, session progression and reset, bounded history, model failures, and mocked structured generation. Real Qwen inference is not claimed or required by the test suite.

Architecture and limitations

curriculum.py contains supported lesson data. answer_verifier.py parses and compares answers. noggimigo_session.py coordinates deterministic evaluation, hints, history, preferences, and optional model suggestions. hf_provider.py is a lazy local adapter with strict output validation. noggimigo.py is the CLI and compatibility facade.

The current curriculum is mathematics only and intentionally small. The model is optional and may fail to load because of missing dependencies, unavailable weights, or hardware limits; deterministic tutoring continues. This repository does not diagnose disabilities, infer cognitive states, collect telemetry, or make scientific claims about learning or retention.

Contributing and license

Run the tests before submitting changes, keep deterministic correctness separate from language generation, and document new curriculum entries. The project remains MIT licensed.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support