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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Constraining large language models to an official school textbook: an experimental evaluation and feasibility simulation for an Egyptian preparatory science platform

Ahmed Saad Zaghloul Gaber Serag
Zenodo (CERN European Organization for Nuclear Research)
Artificial Intelligence in Education
preprint

Constraining large language models to an official school textbook: an experimental evaluation and feasibility simulation for an Egyptian preparatory science platform

Ahmed Saad Zaghloul Gaber Serag
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Assiut University (EG)
Artificial Intelligence in Education
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon