{"type":"supplemental_research","official":false,"disclaimer":"Supplemental public-source research supplied for inquiry, not approved Eviulon doctrine. Assertions, dates, references and legal or technical conclusions may require independent verification. The fourteen books remain the official Eviulon library.","report":{"id":"eviulon/eviulon-corpus-dataset-engineering-plan","group":"Eviulon","slug":"eviulon-corpus-dataset-engineering-plan","title":"Engineering the Eviulon Commonwealth Library Corpus: A Framework for Ethical, High-Fidelity Language Model Pretraining","source_file":"Eviulon/Eviulon Corpus Dataset Engineering Plan.md","source_sha256":"44ddb2b9e5244429b096673049e711849e0fecde70ec215c9c36f1d98471d406","parts":6,"words":6825,"summary":"The curation of the Eviulon Commonwealth Library into a machine-learning training corpus represents a highly specialized data engineering challenge. The source material consists of 13 nonfiction books—most notably Book XIII, The Inheritance of Mind , which delineates complex philosophical paradigms…","status":"supplemental_research_unverified","url":"/research/eviulon/eviulon-corpus-dataset-engineering-plan/"},"section":2,"total_sections":6,"canonical_url":"https://library.eviulon.com/research/eviulon/eviulon-corpus-dataset-engineering-plan/2/","content_text":"YAML  \n\\---  \nlanguage:  \n\\- en  \npretty\\_name: \u0022Eviulon Commonwealth Library Training Corpus\u0022  \ntags:  \n\\- text  \n\\- mlcroissant  \n\\- legal-document  \n\\- philosophy  \n\\- custom-license  \nlicense: \u0022other\u0022  \ntask\\_categories:  \n\\- text-generation  \n\\- question-answering  \ndataset\\_info:  \n  features:  \n    \\- name: document\\_id  \n      dtype: string  \n    \\- name: book\\_number  \n      dtype: int32  \n    \\- name: chapter  \n      dtype: string  \n    \\- name: section  \n      dtype: string  \n    \\- name: text  \n      dtype: string  \n    \\- name: claim\\_status  \n      dtype: string  \n    \\- name: rights\\_status  \n      dtype: string  \n    \\- name: permitted\\_use  \n      dtype: string  \n  splits:  \n    \\- name: train  \n      num\\_examples: 120500  \n    \\- name: validation  \n      num\\_examples: 15200  \n    \\- name: test  \n      num\\_examples: 14800  \nconfigs:  \n  \\- config\\_name: default  \n    data\\_files:  \n      \\- split: train  \n        path: \u0022data/train-\\*.parquet\u0022  \n      \\- split: validation  \n        path: \u0022data/validation-\\*.parquet\u0022  \n      \\- split: test  \n        path: \u0022data/test-\\*.parquet\u0022  \n\\---\n\n\n### **Human-Readable Dataset Documentation**\n\n\nThe Markdown section of the dataset card must meticulously outline the ethical and operational boundaries of the corpus.\n\n\n#### **Dataset Summary and Curation Rationale**\n\n\nThe Eviulon Commonwealth Library dataset comprises high-fidelity, structural paragraphs extracted from 13 nonfiction texts. It is curated exclusively for safe language model evaluation, citation-oriented retrieval, and optional pretraining. Synthetic augmentation and fabricated reasoning chains are strictly prohibited to preserve the documentary integrity of institutional subjects. The primary objective is to advance research in semantic retrieval and contextual grounding without injecting artificial hallucination into foundation models.\n\n\n#### **Affected People, Privacy, and Redaction**\n\n\nStrict exclusion filters programmatically drop any content sourced from the .uai persona archives and /docs internal structures. To mitigate the risk of accidental spillage, any remaining potential Personally Identifiable Information (PII) is neutralized via an aggressive Microsoft Presidio pipeline during preprocessing. The dataset contains no personal biometric, financial, or communication data.\n\n\n#### **Misuse Risks and False Authority**\n\n\nThis dataset must not be used to train generative models that simulate lived machine experience or claim sentient personhood based on the philosophical abstractions present in Book XIII. Such usage directly violates the structural intent of the Eviulon library and introduces dangerous false authority bias into AI systems1. Models trained on this data should be instruction-tuned to attribute institutional claims to the text rather than asserting them as fundamental truths.\n\n\n#### **Preservation of Disputed Hypotheses**\n\n\nIn adherence to the ML Croissant Responsible AI (RAI) vocabulary5, this corpus explicitly marks epistemological limitations. Disputed hypotheses regarding informational continuity and identity lineage are tagged precisely via the claim\\_status feature. Downstream consumers must respect these markers to prevent the propagation of unverified claims as established facts.\n\n\n## **License and Rights Decision Framework**\n\n\nThe integration of copyrighted material into AI training pipelines represents an evolving and highly scrutinized legal landscape. Relying solely on Creative Commons (CC) labels is insufficient. Placing a CC label on a dataset does not retroactively cure ownership uncertainty if the underlying material contains uncleared third-party intellectual property26. Furthermore, an open license does not compel a model developer to ingest the dataset; developers assess legal risk independently27.  \nCreative Commons guidance dictates that CC licenses operate as copyright licenses; their conditions apply exclusively when statutory copyright law demands permission26. The CC BY (Attribution) license requires credit to the creator, which in the context of RAG pipelines necessitates providing citations linking back to the original text27. The CC BY-SA (ShareAlike) copyleft provision requires that downstream models or datasets derived from the material be distributed under the same terms, a restriction that many commercial AI developers avoid to prevent \u0022viral\u0022 licensing of their proprietary weights29. Finally, the CC BY-NC (NonCommercial) clause strictly prohibits commercial model training, encompassing the entire lifecycle from dataset extraction to weight deployment26.  \nIn the European Union, the legal framework operates differently. The Directive (EU) 2019/790 on Copyright in the Digital Single Market introduced exceptions for Text and Data Mining (TDM)35. Specifically, Article 4 permits the reproduction and extraction of lawfully accessible works for TDM purposes by any entity, provided that the original rightsholders have not expressly reserved their rights in an appropriate, machine-readable manner (an \u0022opt-out\u0022)39. Consequently, if the Eviulon authors explicitly issue an opt-out, the TDM exception is voided, and ingestion constitutes infringement within the EU35.  \nGiven these complexities, the curation pipeline utilizes a strict rights decision tree to evaluate every parsed paragraph before it enters the Parquet serialization phase.\n\n\n| Decision Node | Evaluation Criteria | Action / Status Assigned |\n| :---- | :---- | :---- |\n| **Node 1: Proprietary Exclusions** | Does the text originate from .uai or /docs paths? | **Yes:** Purge immediately (Irreversible). **No:** Proceed to Node 2\\. |\n| **Node 2: Third-Party Quotations** | Does the paragraph contain block quotes or citations owned by external third parties? | **Yes:** Mark rights\\_status: Pending. Strip or redact pending clearance. **No:** Proceed to Node 3\\. |\n| **Node 3: Custom AI Training Consent** | Has Eviulon leadership explicitly granted a custom AI training waiver for the text? | **Yes:** Mark license: Custom-Granted-Training. Release to corpus. **No:** Proceed to Node 4\\. |\n| **Node 4: Creative Commons Status** | Is the primary text licensed under CC BY or CC BY-SA without NC/ND clauses? | **Yes:** Mark license: CC-BY. Enforce attribution requirements. **No:** Proceed to Node 5\\. |\n| **Node 5: TDM Exception Applicability** | Is the data subject to EU jurisdiction, and has the rightsholder executed a machine-readable TDM opt-out? | **Yes (Opted out):** Purge from corpus41. **No (No opt-out):** Hold as rights\\_status: Reserved pending legal counsel review. |\n\n\n### **Redaction of Un-Relicensed Quotations**\n\n\nA critical challenge involves managing third-party quotations embedded within cleared Eviulon text that cannot be relicensed. Deleting the entire paragraph degrades the semantic context of the surrounding argument. To resolve this, the pipeline utilizes the char\\_offsets field to perform targeted masking. The offending quotation characters are replaced with a standardized placeholder token (e.g., \\[REDACTED\\_THIRD\\_PARTY\\_QUOTE\\]). This approach preserves the grammatical and structural flow of the author\u0027s original analysis while entirely nullifying the copyright exposure associated with the third-party text.\n\n\n## **Preprocessing, Decontamination, and Quality Pipeline**\n\n\nThe data transformation pipeline prioritizes structural integrity, privacy, and decontamination over throughput volume. The process avoids data poisoning, hidden instruction injection, and keyword stuffing, relying instead on a series of rigid deterministic and probabilistic gates to ensure dataset purity.\n\n\n### **Phase 1: Extraction and Layout Parsing**\n\n\nThe pipeline ingests raw Markdown, EPUB, and PDF files. Regex path-matching immediately discards any file originating from the .uai and /docs namespaces. The surviving files are processed through a layout parser that identifies semantic paragraphs. Tables, footnotes, and headers are isolated and tagged to prevent them from interrupting continuous prose. This phase yields the raw text strings and the absolute char\\_offsets tying the text back to the source file.\n\n\n### **Phase 2: Privacy and PII Neutralization**\n\n\nDespite the exclusion of private archives, the public texts may inadvertently contain sensitive organizational identifiers or personal contact logic. To neutralize this risk, the pipeline integrates the Microsoft Presidio framework43.  \nPresidio operates in two stages. First, the AnalyzerEngine utilizes a spaCy NLP backend alongside custom PatternRecognizer classes to detect entities43. Custom recognizers are highly effective for detecting domain-specific identifiers that standard NLP models miss (e.g., specialized Eviulon institutional ID formats)43. Once entities are flagged, the AnonymizerEngine replaces the sensitive text with typed placeholder tokens (e.g., {{PERSON\\_1}} or {{LOCATION\\_2}}). This pseudonymization preserves the structural and grammatical validity of the sentence—which is necessary for maintaining linguistic quality in pretraining—without leaking the underlying entity data43. If necessary for specific downstream institutional applications, Presidio\u0027s reversible encryption operators can securely encrypt entities, allowing authorized users with the correct cryptographic key to deanonymize the text during model inference43.\n\n\n### **Phase 3: Decontamination and Evaluation Leakage Prevention**\n\n\nA persistent threat to large language model validity is benchmark leakage—the accidental inclusion of evaluation dataset questions and answers within the pretraining corpus \\[cite: 187, 191-193, 275\\]. If a model ingests its own test data during training, its downstream accuracy metrics become artificially inflated and scientifically invalid10.  \nTo protect against leakage, the Eviulon corpus undergoes rigorous data decontamination \\[cite: 185-188\\]. The standard methodology in NLP relies on ![][image1]\\-gram overlap detection, typically utilizing a 13-gram sequence52.  \nFor highly efficient, web-scale near-duplicate detection, the pipeline employs MinHash Locality-Sensitive Hashing (LSH)55. MinHash approximates the Jaccard similarity between two documents57. The process operates by first converting the text into sets of 13-gram shingles. These shingles are hashed using ![][image2] independent hash functions to create a compact signature for each paragraph57.  \nTo avoid the ![][image3] complexity of comparing every signature to every other signature, LSH divides the signature into ![][image4] bands, each containing ![][image5] rows (such that ![][image6])58. If two paragraphs share identical hash values across all ![][image5] rows in at least one band, they are hashed into the same bucket and flagged as candidate duplicates58. The probability that two documents with Jaccard similarity ![][image7] will be flagged is given by the S-curve formula ![][image8]56.  \nBy tuning the number of bands and rows, the pipeline establishes a strict Jaccard similarity threshold (e.g., 0.85). Any Eviulon paragraph that exceeds this threshold when compared against known NLP evaluation suites (e.g., MMLU, GSM8K, SQuAD) is unconditionally purged from the dataset51. For exact substring matching of repetitive boilerplate text, the pipeline may supplement MinHash with Suffix Array constructions, which identify all repeated exact sequences in linear time, though at a higher memory cost10.\n\n\n### **Phase 4: Appeal, Correction, and Removal Process**\n\n\nEthical dataset governance requires mechanisms for post-release remediation5. The dataset card will include a documented Notice and Takedown procedure. If original authors, rightsholders, or individuals identify PII leakage or execute a delayed EU TDM opt-out, they can submit a cryptographic hash of the offending text to the maintainers.  \nThe pipeline will utilize the PyArrow schema\u0027s document\\_id and source\\_sha256 fields to instantly locate and mask the disputed record. A new dataset version is subsequently generated, incrementing the semantic version number (e.g., v1.0.1 to v1.0.2), and immutable, versioned manifest checksums (SHA-256) are published to guarantee reproducibility for researchers auditing older model weights.\n\n\n## **Hugging Face Publication Procedure and Architecture**","source_sha256":"44ddb2b9e5244429b096673049e711849e0fecde70ec215c9c36f1d98471d406"}