Library of Alexandria

A curated cross-cultural mythology, folklore, and religion corpus. Real myths as recorded and believed, in their original languages. Built as a training substrate for local models, not a trivia dataset.

~675kcurated files
~67GBafter the cull
69traditions
100%verified downloads

The principle

Most mythology datasets are thin. A few hundred Wikipedia articles, some public domain translations. Fine for trivia, useless for training a model to reason about belief systems. The Library runs on one rule: primary texts, as recorded and believed, with the original languages, not retellings. Sites that opted out of AI training, like sacred-texts.com, were deliberately not crawled. Their robots file says no, so the answer is no.

The cull came first

The honest part of this project is what got deleted. The corpus had grown to 172GB and 9 million files, most of it junk. Nine unfiltered Wikipedia dumps eating 106GB. 434 Gutenberg books with the wrong ebook IDs, so the file said Norse sagas and contained Victorian poetry. 524k OCR page fragments. 31k modern Chinese legal documents that had no business being in a mythology corpus. All of it gone, with manifests kept so every deletion is auditable. Down to 67GB and around 675k files actually worth training on.

Then the verified rebuild

project gutenberg ── 318/318 books, title-verified, 0 failures internet archive ─── 386 pre-1929 ethnographies │ for the thinly documented cultures GRETIL ───────────── 62 sanskrit critical editions │ vedas, upanishads, puranas ETCSL (oxford) ───── the full sumerian corpus │ 363 transliterations + 350 translations aozora ───────────── kojiki, classical original + modern japanese translation every download checked against its expected title. collection ran on my own browser agents (blackreach/huginn)

What it feeds

The corpus is the substrate for the world-model research thread: can a small model learn to reason about civilizations from primary sources instead of encyclopedia summaries. It also feeds a local RAG setup, so questions about a tradition come back grounded in the actual texts with citations, not hallucinated summaries.

The Mesopotamian shelf matters to me personally. The cuneiform tablets and the god Nabu, patron of scribes and writing, are why this project exists. Knowledge preserved is knowledge that can be rebuilt.

// private
The corpus is not publicly distributed. It is years of collection and curation and it is the training substrate for my own models. If you do serious research in any of these traditions, reach out.