Link Search Menu Expand Document
AI Alliance Banner
Join Our Initiative   Browse the Datasets   Contribute a New Dataset

Dataset Specification

Note: The specification documented here is the “V0.1.5” version of the criteria we believe are required for datasets cataloged by OTDI. We need and welcome your feedback! Either contact us or consider using pull requests with your suggestions. See the AI Alliance community page on contributing for more details.

Also contact us if you are interested in contributing a dataset, but you have any questions or concerns about meeting the following specification.

Table of contents
  1. Dataset Specification
    1. About This Specification
      1. Sources and Inspirations
    2. Core Requirements
      1. Ownership
      2. Dataset Hosting
      3. A Dataset Card
        1. Quick Steps to Create a Dataset Card
    3. Required Metadata Fields
      1. YAML Metadata Block
    4. The Markdown Content in the Dataset Card
    5. Other Considerations for the Data Itself
      1. Formats
      2. Diverse Datasets
    6. Derived Dataset Specification
      1. Categories of Dataset Transformations

About This Specification

The specification attempts to be minimally sufficient, to impose just enough constraints to meet our goals for cataloged datasets.

Sources and Inspirations

The details of the specification and how we are implementing it build on the prior and parallel work of several organizations:

The metadata are captured in the dataset card that every version of a dataset carries, including after various stages of processing.

Let’s begin.

Core Requirements

Ownership

First, to promote fully-traceable provenance and governance, for all data within the dataset, the owner must affirm that they are either (a) the owner of the dataset or (b) you have rights from the owner of the data that enables the dataset to be provided to anyone under the CDLA Permissive 2.0 license. For example, this dataset owner has been granted permission by the source data owners to act on their behalf with respect to enabling others to use it without restriction.

This provision is necessary because many datasets contain data that was obtained by crawling the web, which frequently has mixed provenance and licenses for use.

NOTE: One of the data processing pipelines we are building will carefully filter datasets for such crawled data to ensure our requirements are met for ownership, provenance, license for use, and quality. Until these tools are ready, we are limiting acceptance of crawled datasets.

Dataset Hosting

Almost all datasets we catalog will remain hosted by the owners, but the AI Alliance can host it for you, when desired.

A Dataset Card

All useful datasets include metadata about their provenance, license(s), target uses, known limitations and risks, etc. To provide a uniform, standardized way of expressing this metadata, we require every dataset to have a dataset card (or data card) that follows the Hugging Face Dataset Card format, where the README.md file functions as the dataset card, with our refinements discussed below. This choice reflects the fact that most AI-centric datasets are already likely to be available on the Hugging Face Hub.

TIP: For a general introduction to Hugging Face datasets, see here.

Quick Steps to Create a Dataset Card

If you need to create a dataset card:

  1. Download our version of the Hugging Face dataset card template, datasetcard_otdi_template.md. (If you already have a card in Hugging Face, i.e., the README.md, compare our template to your card and add the new fields.)
  2. Edit the Markdown in the template file to provide the details, as described below.
  3. Create the card in the Hugging Face UI (or edit your existing card.)
  4. Fill in the metadata fields shown in their editor UI. (See Table 1 below.)
  5. Paste the rest of your prepared Markdown into the file, after the YAML block delimited by ---.
  6. Commit your changes.

Required Metadata Fields

Refer to the datasetcard.md for details about the metadata fields Hugging Face recommends for inclusion in a YAML block at the top of the README.md. We comment on these fields below, in Table 1.

The templates/README_guide.md provides additional information about the template fields in their Markdown template file, datasetcard_template.md in the huggingface-hub GitHub repo. However, we recommend that you use our extended version: datasetcard_otdi_template.md.

YAML Metadata Block

TIP: The following tables are long, but starting with the datasetcard_template.md and the dataset card process will handle most of the details. Then you can add the additional fields requested in Table 2, those marked with “OTDI”.

Table 1 lists all the fields in the dataset card YAML block. The Required? column uses ☑ to indicate the field is required by us, ☒ for fields that we don’t allow, because they are incompatible with this project, and a blank entry indicates a field is optional.

Table 1: Hugging Face Datacard Metadata

The Markdown Content in the Dataset Card

Our second table lists content that we require or recommend in the Markdown body of the dataset card, below the YAML header block. The Source column in the table contains the following:

  • “HF” for fields in the Hugging Face datasetcard_template.md. See the README_guide.md for descriptions of many of these fields.
  • “OTDI” for additional fields we believe are necessary.

Table 2: Additional Content for the Dataset Card (`README.md`)

For the personal_and_sensitive_information field, we recommend using one or more of the following values:

  • Personal Information (PI)/Demographic
  • Payment Card Industry (PCI)
  • Personal Financial Information (PFI)
  • Personally Identifiable Information (PII)
  • Personal Health Information (PHI)
  • Sensitive Personal Information (SPI)
  • Other (please specify)
  • None

Other Considerations for the Data Itself

The dataset card template has sections for all the required and optional metadata. This section discusses the data in the dataset.

Formats

We endeavor to be flexible on dataset file formats and how they are organized. For text, we recommend formats like CSV, JSON, Parquet, ORC, AVRO. Supporting PDFs, where extraction will be necessary, can be difficult, but not impossible.

NOTE: Using Parquet has the benefit that MLCommons Croissant can be used to automatically extract some metadata. See this Hugging Face page and the mlcroissant library, which supports loading a dataset using the Croissant metadata.

Diverse Datasets

Diverse datasets are desired for creating a variety of AI models and applications with special capabilities.

We are particularly interested in new datasets that can be used to train and tune models to excel in particular domains, or support them through design patterns like RAG and Agents. See What Kinds of Datasets Do We Want? for more information.

Use the tags metadata field discussed above to indicate this information, when applicable.

Derived Dataset Specification

Every dataset that is derived via a processing pipeline from one or more other datasets requires its own dataset card, which must reference all upstream datasets that feed into it (and by extension, their dataset cards of metadata).

For example, when a derived dataset is the filtered output of one or more raw datasets (defined below), where duplication and offensive content removal was performed, the new dataset may now support different recommended uses (i.e., it is now more suitable for model training or more useful for a specific domain), have different bias_risks_limitations, and it will need to identify the upstream (ancestor) source_datasets.

Suppose a new version of an existing dataset is created, where additional or removed data is involved, but no other changes occur. It also needs a new dataset card, even while most of the metadata will be unchanged.

Table 3 lists the minimum set of metadata fields that must change in a derived dataset:

Field Name Possible Updates Required?
pretty_name A modified name is strongly recommended to avoid potential confusion. It might just embed a version string.  
unique_metadata_identifer Must be new!
dataset_issue_date The date for this new card.

Categories of Dataset Transformations

At this time, we use the following concepts for original and derived datasets, concerning levels of quality and cleanliness. This list corresponds to stages in our ingestion process and subsequent possible derivations of datasets. This list is subject to change.

  • Raw: A dataset as it is discovered, validated, and cataloged. For all datasets, our most important concern is unambiguous provenance and clear openness. Raw datasets may go through filtering and analysis to remove potential objectionable content.
  • Filtered: A raw dataset that has gone through a processing pipeline to make it more suitable for specific purposes. This might include removal of duplicate records, filtering for unacceptable content (e.g., hate speech, PII), or filtered for domain-specific content, etc. Since the presence of some content in the raw data could have legal implications for OTDI, such as the presence of some forms of PII and confidential information, we may reject cataloging an otherwise “good” raw dataset and only catalog a suitable filtered dataset.
  • Structured: A filtered dataset that has also been reformatted to be most suitable for some AI purpose, such as model training, RAG, etc. For example, PDFs are more convenient to use when converted to JSON or YAML.
  • Derived: Any dataset created from one or more other datasets. Filtered and structured datasets are derived datasets.

See How We Process Datasets for more details on these levels and how we process datasets.

After you have prepared or updated the dataset card as required, it’s time to contribute your dataset!

  1. For source code, e.g., the code used for the data processing pipelines, the AI Alliance standard code license is Apache 2.0. For documentation, it is The Creative Commons License, Version 4.0, CC BY 4.0. See the Alliance community/CONTRIBUTING page for more details about licenses.