--- pretty_name: Manufacturing Industry Documents language: - en license: other license_name: mixed-source-licenses task_categories: - text-classification - text-retrieval - question-answering - summarization task_ids: - multi-class-classification - document-retrieval tags: - manufacturing - industrial - quality-assurance - supply-chain - recalls - capa - regulatory - documents size_categories: - 10K/", split="train") # One industry med = load_dataset("/", "medical_devices_instruments", split="train") # One document category from one industry ncr = load_dataset( "/", data_files="5.1_medical_devices_instruments/by_category/ncr_capa.parquet", split="train", ) ``` ## Dataset structure ### Configurations | Config | Folder | Industry group | Records | Companies | |---|---|---|---:|---:| | `food_beverage` | `2.1_food_beverage` | Consumer Goods & Nondurables | 432 | 13 | | `textiles_apparel` | `2.2_textiles_apparel` | Consumer Goods & Nondurables | 296 | 10 | | `paper_printing` | `2.3_paper_printing` | Consumer Goods & Nondurables | 411 | 12 | | `furniture_wood_products` | `2.4_furniture_wood_products` | Consumer Goods & Nondurables | 382 | 12 | | `chemicals_petrochemicals` | `3.1_chemicals_petrochemicals` | Chemicals, Materials & Processing | 648 | 18 | | `pharmaceuticals_biotechnology` | `3.2_pharmaceuticals_biotechnology` | Chemicals, Materials & Processing | 1,279 | 21 | | `plastics_rubber` | `3.3_plastics_rubber` | Chemicals, Materials & Processing | 486 | 14 | | `non_metallic_minerals` | `3.4_non_metallic_minerals` | Chemicals, Materials & Processing | 285 | 12 | | `primary_fabricated_metals` | `3.5_primary_fabricated_metals` | Chemicals, Materials & Processing | 544 | 13 | | `industrial_machinery_equipment` | `4.1_industrial_machinery_equipment` | Machinery, Electronics & Transportation | 610 | 20 | | `computers_electronics_semiconductors` | `4.2_computers_electronics_semiconductors` | Machinery, Electronics & Transportation | 765 | 22 | | `electrical_equipment_appliances` | `4.3_electrical_equipment_appliances` | Machinery, Electronics & Transportation | 670 | 22 | | `automotive_transportation_equipment` | `4.4_automotive_transportation_equipment` | Machinery, Electronics & Transportation | 896 | 24 | | `aerospace_defense` | `4.5_aerospace_defense` | Machinery, Electronics & Transportation | 596 | 15 | | `medical_devices_instruments` | `5.1_medical_devices_instruments` | Specialized & Precision Manufacturing | 6,441 | 18 | | `miscellaneous_manufacturing` | `5.2_miscellaneous_manufacturing` | Specialized & Precision Manufacturing | 554 | 19 | | **`all`** (default) | | | **15,295** | **264** | There is a single `train` split. No predefined validation or test split exists. ### File layout ``` / all_documents.parquet # all records for the industry by_category/.parquet # the same records, split by doc_category summary_by_industry_category.csv # record and company counts per industry x category x source removed_duplicates.csv # the 502 duplicate records that were removed, and the record kept for each ``` The files in `by_category/` repeat the rows in `all_documents.parquet`. Load one or the other, not both. ### Data fields | Field | Type | Description | |---|---|---| | `record_id` | string | SHA-256 ID of the record. | | `industry` | string | Industry name, e.g. `Food & Beverage`. | | `industry_slug` | string | Folder name, e.g. `2.1_food_beverage`. | | `industry_group` | string | One of four groups (see the table above). | | `company` | string | Company name. It can include a note in parentheses, e.g. `Cargill (private)`. | | `company_website` | string | Company homepage. | | `source_type` | string | `company_site`, `openfda`, `nhtsa` or `cpsc`. | | `source_url` | string | URL of the document or API record. | | `parent_url` | string | Page where the document link was found (company website records only). | | `doc_category` | string | Main document category (19 classes, listed below). | | `doc_category_label` | string | Readable name of `doc_category`. | | `doc_group` | string | Higher-level group of the category (6 classes). | | `secondary_categories` | string | Other categories that also matched. | | `relevance_score` | float | Weighted keyword score for the main category (range 3.0–59.7). API records have a fixed score of 10.0. | | `matched_keywords` | string | Taxonomy keywords that matched. | | `title` | string | Document or page title. | | `anchor_text` | string | Text of the link that pointed to the document. | | `description` | string | Meta description or a short product description. | | `file_type` | string | `json-api`, `html`, `pdf`, `zip`, `docx`, `pptx`, `xlsx`, `doc`, `xls` or `txt`. | | `language` | string | Language declared by the page, e.g. `en-US`. It is empty for most records. | | `num_pages` | int64 (nullable) | Page count for PDF and office files. | | `content_text` | string | Extracted plain text, **cut off at 30,000 characters**. | | `content_chars` | int64 | Length of `content_text`. | | `tables_json` | string | HTML tables extracted as JSON. This is useful for specifications. | | `structured_json` | string | Original API fields, as JSON, for openFDA, NHTSA and CPSC records. | | `content_sha256` | string | Hash of the content, for deduplication. | | `local_file` | string | Path of the downloaded original file at collection time. The original files are **not** part of this dataset. | | `http_status` | int64 | HTTP status of the fetch. | | `fetched_at` | string | UTC fetch time in ISO 8601 format. | Missing values are stored as **empty strings**, not nulls. The only exception is `num_pages`. ### File types | `file_type` | Records | |---|---:| | `json-api` (openFDA, NHTSA, CPSC) | 7,430 | | `html` | 4,691 | | `pdf` | 3,070 | | `zip` | 51 | | `docx` | 22 | | `pptx` | 15 | | `xlsx` | 12 | | `doc`, `xls`, `txt` | 4 | ### Document taxonomy Records are labeled by weighted keyword matches in the title, link text, URL and body text. | Group | Category | Records | |---|---|---:| | Quality Assurance & Compliance | `ncr_capa` | 7,651 | | | `safety_regulatory` | 1,643 | | | `qc_plan_inspection` | 208 | | | `calibration_test_certificate` | 9 | | Corporate & Regulatory Filings | `regulatory_filing` | 2,093 | | Product Documentation | `product_specification` | 718 | | | `user_manual` | 412 | | | `product_catalog` | 416 | | Procurement, Inventory & Logistics | `supplier_quality` | 1,090 | | | `purchase_order_requisition` | 416 | | | `inventory_stock` | 95 | | | `shipping_receiving` | 29 | | Production & Shop Floor Execution | `sop_work_instruction` | 244 | | | `production_plan_mps` | 37 | | | `work_order_routing` | 23 | | | `batch_manufacturing_record` | 2 | | Engineering & Product Design | `bill_of_materials` | 101 | | | `engineering_drawing_cad` | 95 | | | `engineering_change_order` | 13 | ### Example record (shortened) ```json { "industry": "Food & Beverage", "company": "Cargill (private)", "source_type": "openfda", "source_url": "https://api.fda.gov/food/enforcement.json?search=recall_number:F-0782-2023", "doc_category": "ncr_capa", "doc_group": "Quality Assurance & Compliance", "title": "FDA food enforcement F-0782-2023: Products with a gluten free claim may contain gluten levels above 20 ppm.", "file_type": "json-api", "content_text": "recalling_firm: Cargill, Inc ...\nproduct_description: PROSANTE TVGPTN 3014B FLK 50LB BG, paper bag\nreason_for_recall: ...", "structured_json": "{\"status\": \"Terminated\", \"classification\": \"Class II\", ...}", "fetched_at": "2026-11-20T09:14:25Z" } ``` ## Dataset creation ### Curation rationale Public manufacturing documents are spread across hundreds of company websites and several government databases. This dataset gathers them into one labeled corpus, so that document AI, retrieval and LLM work on industrial topics can use one source. ### Collection process 1. A list of 287 manufacturing companies was grouped into 16 industries. Some companies were given hand-picked starting URLs for their document hubs. 2. Public documents were collected from each company site. Collection respected `robots.txt`, limited its request rate per host, and capped the number of pages and documents per company. It downloaded HTML pages and linked files (PDF, DOCX, PPTX, XLSX and others) and extracted their text and tables. 3. The openFDA device, drug and food enforcement endpoints, the NHTSA recalls API and the CPSC recalls API were queried for the companies in the list. 4. Each record was classified against the taxonomy. 5. Duplicates were removed across the whole dataset (502 of 15,797 records). Two records count as duplicates if any of these is true: - They have the same `source_url` (8 removed). - They have the same `content_sha256` (438 removed). The hash of an empty string is ignored, because unrelated pages with no text share it. - Their text is the same after lower-casing and collapsing whitespace (12 removed). - They are near-duplicates (44 removed): the same company, the same URL once language/region parts and `?page=0` are removed (for example `/en-us/` and `/en-gb/`, or `in.micron.com` and `sg.micron.com`), and at least 90% word 5-gram overlap. Translations and regional pages with different content are kept. Text similarity alone is not used, because many different documents share a template, such as safety data sheets for different products or purchase terms for different legal entities. In each group, one record is kept: the one with the highest `relevance_score`, then the longest text, then the one with tables, then the one with a downloaded file. `removed_duplicates.csv` lists each removed record and the record kept in its place. 6. The records were exported per industry. ### Personal information The documents are corporate and regulatory publications. They can still contain business contact details, such as names, emails and phone numbers of company or supplier contacts, and the addresses of recalling firms. No extra anonymization was done. ## Bias, risks and limitations - **Labels come from rules, not people.** `doc_category` comes from keyword matching and will be wrong for some records. Use `relevance_score` and `secondary_categories` to filter, and do not treat the labels as gold labels. - **The data is unbalanced.** Medical Devices has 42% of all records, because openFDA has many device recall records. `ncr_capa` is 50% of all records. Some categories have fewer than 15 examples. - **Most records are from the US and in English.** Government records cover the US only. Some company website pages are in other languages, such as Japanese, French and Chinese. - **Text is cut off and can be noisy.** 1,790 records reach the 30,000-character limit. 747 records have empty `content_text`, usually scanned PDFs or archives. PDF extraction can leave headers, footers and broken words. - **Some near-duplicates remain.** Exact duplicates and same-page language/region variants are removed. Different documents built on the same template are kept on purpose, for example annual-report pages for different years, consecutive recalls with the same reason, or safety data sheets for similar products. So are translations of the same page. When one recall was matched to two companies, only one of them is kept as `company`. - **The data is a snapshot.** It shows the websites as of November 2026. Documents may have been updated or removed since. - **`company` is the company searched for, not always the publisher.** API records are matched to companies by firm name, so subsidiaries or firms with similar names can appear. ## Licensing This dataset mixes content under different terms: - **openFDA, NHTSA and CPSC records** are US government works and are in the public domain. - **Company website content** stays under the copyright of the company that published it. It is included only in extracted text form and only for non-commercial research. Before any other use, check the terms of the original publisher. The `source_url` column links to each original document. The dataset structure, taxonomy labels and metadata are released for research use. If you own content in this dataset and want it removed, open a discussion on the dataset page. ## Changelog - **2026-11-21:** Removed 44 near-duplicate language/region and pagination variants (15,339 → 15,295). - **2026-11-21:** Removed 458 exact duplicate records across all industries (15,797 → 15,339). All removed records are listed in `removed_duplicates.csv`. - **2026-11-20:** First release, with 15,797 records. ## Citation ```bibtex @misc{manufacturing_industry_documents_2026, title = {Manufacturing Industry Documents}, year = {2026}, note = {Public manufacturing documents and US recall records across 16 industries, collected 2026-11-20}, howpublished = {\url{https://huggingface.co/datasets//}} } ```