Constraining large language models to an official school textbook: an experimental evaluation and feasibility simulation for an Egyptian preparatory science platform
Purpose: To test whether constraining a large language model (LLM) to one official school textbook, through retrieval-augmented generation (RAG), changes unsupported claims, page citation and refusal of out-of-scope questions, and to simulate the platform's economics. Design/methodology/approach: Source: the Egyptian third preparatory Science textbook (114 scanned pages). Study 1 used a 280-question bank and three conditions (no retrieval, ideal retrieval, BM25) on one commercial model and four open-weight models. Study 2 used a pre-declared bank of 239 items over 48 pages, five conditions, and complete-case analysis under a free-tier limit. A seeded Monte Carlo simulation (20,000 iterations) covered feasibility. Findings: With ideal retrieval, unsupported claims fell from 3 to 0, page citation was 46/46 and out-of-scope refusal 6/6. Accuracy rose from 96.7% to 100%, not a significant difference (exact McNemar p = 0.5). BM25 gave 87.0%. In Study 2 the gold page was in the top three for 90.3% (BM25), 80.2% (dense) and 90.8% (hybrid) of items. The open models refused 0 to 1 of 6 out-of-scope questions under BM25. The base-case simulation is profitable at every size, but in only 81.2% of runs at 15 thousand students under compound shocks. Research limitations/implications: No learners were tested; the evaluator is the author; the commercial model version was not recorded. Originality: To our knowledge, the first study combining these measurements on one Arabic ministry textbook. This is a preprint, not peer reviewed. It is the version submitted to a journal for review. Files: manuscript (PDF), tables, supplementary material, and a code and data archive.
Authors
- Ahmed Saad Zaghloul Gaber Serag
Institutions
- Assiut University (EG)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24757242
- Primary Topic
- Artificial Intelligence in Education
- Type
- preprint