Tawjih: Directing a Language Model with Three-Sided Files and Cross-Tree Production Paths

Working paper describing version 0.6.1 of Tawjih, a file-based method for directing a language model from organized personal knowledge, with a reference implementation in a single Python file that uses only the standard library. Knowledge is kept in trees of small files. Each file has three sides: the human concept, machine language (instructions for the model and Python code), and a reading side holding passages filtered from deposited books. At build time the reading side is turned into the concept and the concept into machine language; at run time only machine language is sent. A path connects files from any tree with the words TO, AND, IF, AMONG and THROUGH. Version 0.6.1 adds data contracts between steps, detection of machine language that is older than its sources, a cache of model answers so a failed run can resume, drawing and generation of paths, a time limit for code steps, and the reading of books from their source formats (Markdown, LaTeX, HTML and PreTeXt XML) so that mathematics survives. The paper reports a trial on two chapters of an open algebra textbook (Judson, Abstract Algebra: Theory and Applications). The author's assistant played the language model through a manual back end, so the trial tests the program and the workflow, not the quality of a model. It exposed six defects, all fixed in this version, and showed that text extracted from the PDF damaged the mathematics while the book's PreTeXt source preserved it. The implementation passes 97 automated tests on Linux and Windows. No evaluation with a small local model has been made yet. Source code: https://github.com/AlmodinyMk/LLM-tawjih-Model-building

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-18
DOI
https://doi.org/10.5281/zenodo.24332792
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Tawjih: Directing a Language Model with Three-Sided Files and Cross-Tree Production Paths

Almodiny Mohammed
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
article

Tawjih: Directing a Language Model with Three-Sided Files and Cross-Tree Production Paths

Almodiny Mohammed
article en

Abstract

Working paper describing version 0.6.1 of Tawjih, a file-based method for directing a language model from organized personal knowledge, with a reference implementation in a single Python file that uses only the standard library. Knowledge is kept in trees of small files. Each file has three sides: the human concept, machine language (instructions for the model and Python code), and a reading side holding passages filtered from deposited books. At build time the reading side is turned into the concept and the concept into machine language; at run time only machine language is sent. A path connects files from any tree with the words TO, AND, IF, AMONG and THROUGH. Version 0.6.1 adds data contracts between steps, detection of machine language that is older than its sources, a cache of model answers so a failed run can resume, drawing and generation of paths, a time limit for code steps, and the reading of books from their source formats (Markdown, LaTeX, HTML and PreTeXt XML) so that mathematics survives. The paper reports a trial on two chapters of an open algebra textbook (Judson, Abstract Algebra: Theory and Applications). The author's assistant played the language model through a manual back end, so the trial tests the program and the workflow, not the quality of a model. It exposed six defects, all fixed in this version, and showed that text extracted from the PDF damaged the mathematics while the book's PreTeXt source preserved it. The implementation passes 97 automated tests on Linux and Windows. No evaluation with a small local model has been made yet. Source code: https://github.com/AlmodinyMk/LLM-tawjih-Model-building

Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
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