stefanbschneider's picture
link blog post
ad6fc16 verified
metadata
dataset_info:
  features:
    - name: question
      dtype: string
    - name: answer
      dtype: string
    - name: context
      sequence: string
  splits:
    - name: train
      num_bytes: 1022539863.7823716
      num_examples: 202767
    - name: validation
      num_bytes: 13603278.754966887
      num_examples: 2646
  download_size: 576539077
  dataset_size: 1036143142.5373385
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
      - split: validation
        path: data/validation-*
license: mit
task_categories:
  - question-answering
  - text2text-generation
language:
  - en
size_categories:
  - 100K<n<1M
tags:
  - lfqa

Dataset Card

Table of Contents

Dataset Description

The dataset contains simple, long-form answers to questions and corresponding contexts. Similar to ELI5 but with context.

This dataset is a filtered version of LLukas22/lfqa_preprocessed, which in turn is a processed and simplified version of of vblagoje's lfqa_support_docs and lfqa datasets.

I have filtered out overly long answers, based on the number of tokens in the answer using the LED tokenizer. It can be reproduced with the notebook process-lfqa-dataset.ipynb.

LLukas22/lfqa_preprocessed stefanbschneider/lfqa-max-answer-length-512
Max answer length: 5964 tokens Max answer length: 512 tokens (~12x shorter)
Num answers (train): 226147 Num answers (train): 202767 (~10% less)

Details of the original LFQA dataset: https://towardsdatascience.com/long-form-qa-beyond-eli5-an-updated-dataset-and-approach-319cb841aabb

Dataset Structure

Data Instances

An example of 'train' looks as follows.

{
    "question": "what's the difference between a forest and a wood?",
    "answer": "They're used interchangeably a lot. You'll get different answers from different resources, but the ...",
    "context": [
        "Wood is divided, according to its botanical origin, into two kinds: softwoods, ...",
        "Processing and products differs especially with regard to the distinction between softwood and hardwood ..."
    ]
}

Data Fields

The data fields are the same among all splits.

  • question: a string feature.
  • answer: a string feature.
  • context: a list feature containing string features.

Blog Post

Fine-Tuning a Pre-Trained LLM

Licensing Information

This dataset is distributed under the MIT licence.