Simplify dataset card; set license to CC BY-SA 4.0
Browse files
README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
---
|
| 2 |
pretty_name: General QA
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
task_categories:
|
|
@@ -16,7 +17,6 @@ tags:
|
|
| 16 |
- instruction-tuning
|
| 17 |
- sft
|
| 18 |
- english
|
| 19 |
-
- deduplicated
|
| 20 |
configs:
|
| 21 |
- config_name: default
|
| 22 |
data_files:
|
|
@@ -35,12 +35,16 @@ dataset_info:
|
|
| 35 |
|
| 36 |
# General QA
|
| 37 |
|
| 38 |
-
**9,090,969 English question–answer pairs**
|
| 39 |
-
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
```python
|
| 46 |
from datasets import load_dataset
|
|
@@ -62,103 +66,39 @@ print(ds[0])
|
|
| 62 |
|
| 63 |
| Field | Type | Description |
|
| 64 |
|---|---|---|
|
| 65 |
-
| `question` | string | A single natural-language question.
|
| 66 |
-
| `answer` | string | A one-paragraph answer
|
| 67 |
-
|
| 68 |
-
There is a single `train` split. Rows are stored in a deterministic pseudo-random order (sorted by
|
| 69 |
-
the MD5 of the question), so any contiguous slice is a reasonable random sample. A stable row id can
|
| 70 |
-
be recomputed if needed:
|
| 71 |
|
| 72 |
-
``
|
| 73 |
-
|
| 74 |
-
row_id = uuid.UUID(hashlib.md5(question.encode("utf-8")).hexdigest())
|
| 75 |
-
```
|
| 76 |
|
| 77 |
-
##
|
| 78 |
|
| 79 |
| | Questions | Answers | Total |
|
| 80 |
|---|---|---|---|
|
| 81 |
-
|
|
| 82 |
| Words | 96M | 703M | 799M |
|
| 83 |
| Est. tokens* | ~130M | ~1.05B | **~1.2B** |
|
| 84 |
-
|
|
| 85 |
-
|
| 86 |
-
\*Estimated from character and word counts (range 1.06B–1.36B depending on tokenizer); not measured with a specific tokenizer.
|
| 87 |
-
|
| 88 |
-
- **Answer length:** median 522 chars; 98% of answers fall between 397 and 799 chars.
|
| 89 |
-
- **Answer structure:** 98.7% of answers contain 5 or 6 sentences.
|
| 90 |
|
| 91 |
-
|
| 92 |
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
| General knowledge (no specific named entity) | ~71% (incl. ~4% acronym concepts such as ADHD, HPV, DNA) |
|
| 96 |
-
| Brands, products and apps | ~8% |
|
| 97 |
-
| Place-, state- or country-specific | ~5% |
|
| 98 |
-
| Other named entities (people, organizations, laws, events) | ~12% |
|
| 99 |
-
| Fiction (films, TV, novels, anime, fictional characters) | ~1.6% |
|
| 100 |
-
| Video games | ~1.5% |
|
| 101 |
-
|
| 102 |
-
Shares come from rule-based classification of all questions, spot-checked against hand-labelled
|
| 103 |
-
random samples; treat them as approximate.
|
| 104 |
-
|
| 105 |
-
## Processing
|
| 106 |
-
|
| 107 |
-
| Step | Removed | Remaining |
|
| 108 |
-
|---|---|---|
|
| 109 |
-
| Raw collection | | 9,815,121 |
|
| 110 |
-
| Quality filtering (below) | 111,084 | 9,704,037 |
|
| 111 |
-
| Exact-duplicate questions | 501,713 | 9,202,324 |
|
| 112 |
-
| Reworded-duplicate questions | 111,355 | **9,090,969** |
|
| 113 |
-
|
| 114 |
-
**Normalization (applied in place, 104,637 rows changed):** non-breaking/narrow spaces and
|
| 115 |
-
non-breaking hyphens converted to ASCII, soft hyphens and zero-width characters removed, inline
|
| 116 |
-
markdown (`**bold**`, `*italic*`, `` `code` ``) stripped, repeated spaces collapsed.
|
| 117 |
-
|
| 118 |
-
**Quality filtering** dropped any pair that matched one of ~30 rules, including:
|
| 119 |
-
|
| 120 |
-
- **Non-English content:** non-Latin scripts, translation/language-learning questions, quoted foreign
|
| 121 |
-
phrases, and stray foreign words inside English text.
|
| 122 |
-
- **LaTeX** of any kind, including LaTeX corrupted during JSON parsing (e.g. `\frac` → form feed + `rac`).
|
| 123 |
-
- **Generation and parsing artifacts:** leaked ```` ```json ```` fragments, escaped `\n`/`\"`,
|
| 124 |
-
control characters, mojibake, HTML entities.
|
| 125 |
-
- **Truncated answers** that end mid-sentence.
|
| 126 |
-
- **Formatting problems:** structural markdown (headers, bullets, links), emoji and unusual symbols,
|
| 127 |
-
URLs and email addresses, unbalanced brackets/quotes, spacing and punctuation errors, repeated
|
| 128 |
-
words or sentences.
|
| 129 |
-
- **Context-dependent questions** that reference "the show", "this song", "the city", etc. without
|
| 130 |
-
naming it.
|
| 131 |
-
- Very short answers (< 200 chars) or questions (< 20 chars).
|
| 132 |
-
|
| 133 |
-
**Deduplication** kept one answer per question, choosing the answer whose length is closest to the
|
| 134 |
-
group's median (shorter copies tend to be truncated, longer ones verbose):
|
| 135 |
-
|
| 136 |
-
1. *Exact:* questions identical after lowercasing and removing non-alphanumeric characters.
|
| 137 |
-
2. *Reworded:* questions with the same set of content words regardless of order or filler words
|
| 138 |
-
(e.g. "laws differ across U.S. states" ≡ "laws differ across states in the U.S."). Question words,
|
| 139 |
-
negations, numbers and directional words are kept in the key, so "how" vs. "why" or "moving to"
|
| 140 |
-
vs. "moving from" are not merged.
|
| 141 |
-
|
| 142 |
-
Semantic (embedding-based) deduplication was deliberately **not** applied, to avoid merging
|
| 143 |
-
questions that differ only in an entity, number or qualifier.
|
| 144 |
|
| 145 |
## Limitations
|
| 146 |
|
| 147 |
- **Generated-style text.** Answers are fluent but often general rather than deeply specific, and
|
| 148 |
-
many close with a
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
Errors are most likely in niche topics: obscure works of fiction, little-known people or products,
|
| 152 |
and precise figures.
|
| 153 |
-
- **Time-sensitive content.** Some pairs
|
| 154 |
-
|
| 155 |
-
- **
|
| 156 |
-
since they could not be removed precisely without also removing useful pairs.
|
| 157 |
-
- **English only, US-leaning.** Place- and law-specific questions skew toward the United States.
|
| 158 |
-
|
| 159 |
-
## Provenance and license
|
| 160 |
|
| 161 |
-
|
| 162 |
-
collected) and add a `license:` field to the YAML header above. -->
|
| 163 |
|
| 164 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
pretty_name: General QA
|
| 3 |
+
license: cc-by-sa-4.0
|
| 4 |
language:
|
| 5 |
- en
|
| 6 |
task_categories:
|
|
|
|
| 17 |
- instruction-tuning
|
| 18 |
- sft
|
| 19 |
- english
|
|
|
|
| 20 |
configs:
|
| 21 |
- config_name: default
|
| 22 |
data_files:
|
|
|
|
| 35 |
|
| 36 |
# General QA
|
| 37 |
|
| 38 |
+
**General QA** is a collection of **9,090,969 English question–answer pairs** spanning broad,
|
| 39 |
+
everyday general knowledge. Each pair consists of a single natural-language question and a
|
| 40 |
+
self-contained, one-paragraph answer of roughly five sentences written in clear, plain prose.
|
| 41 |
|
| 42 |
+
Topics include health and medicine, science, technology and software, personal finance, law and
|
| 43 |
+
government, history, education, travel, food and cooking, fitness, home and auto, and practical
|
| 44 |
+
how-to questions. The emphasis is on widely useful explanatory knowledge rather than trivia.
|
| 45 |
+
|
| 46 |
+
The dataset is suited to supervised fine-tuning, instruction tuning, and training or evaluating
|
| 47 |
+
question-answering and knowledge-oriented language models.
|
| 48 |
|
| 49 |
```python
|
| 50 |
from datasets import load_dataset
|
|
|
|
| 66 |
|
| 67 |
| Field | Type | Description |
|
| 68 |
|---|---|---|
|
| 69 |
+
| `question` | string | A single natural-language question. Every question in the dataset is unique. |
|
| 70 |
+
| `answer` | string | A one-paragraph answer in plain prose (no markdown, LaTeX, lists or URLs). |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
+
The dataset has a single `train` split, stored as Parquet. Rows are in a deterministic
|
| 73 |
+
pseudo-random order, so any contiguous slice is a reasonable random sample.
|
|
|
|
|
|
|
| 74 |
|
| 75 |
+
## Size
|
| 76 |
|
| 77 |
| | Questions | Answers | Total |
|
| 78 |
|---|---|---|---|
|
| 79 |
+
| Pairs | | | 9,090,969 |
|
| 80 |
| Words | 96M | 703M | 799M |
|
| 81 |
| Est. tokens* | ~130M | ~1.05B | **~1.2B** |
|
| 82 |
+
| Average length | ~15 tokens | ~115 tokens | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
+
\*Approximate; the exact count depends on the tokenizer.
|
| 85 |
|
| 86 |
+
Answers are consistent in shape: the typical answer is about 520 characters, and nearly all answers
|
| 87 |
+
contain five or six sentences.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
## Limitations
|
| 90 |
|
| 91 |
- **Generated-style text.** Answers are fluent but often general rather than deeply specific, and
|
| 92 |
+
many close with a summarizing sentence. Models trained on this data will likely adopt that style.
|
| 93 |
+
- **Factual accuracy is not guaranteed.** Answers have not been individually fact-checked. Errors are
|
| 94 |
+
most likely in niche topics such as obscure works of fiction, little-known people or products,
|
|
|
|
| 95 |
and precise figures.
|
| 96 |
+
- **Time-sensitive content.** Some pairs refer to specific product versions, release dates, or
|
| 97 |
+
current rules and prices that may go out of date.
|
| 98 |
+
- **English only, US-leaning.** Location- and law-specific questions skew toward the United States.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
+
## License
|
|
|
|
| 101 |
|
| 102 |
+
This dataset is released under the
|
| 103 |
+
[Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/)
|
| 104 |
+
(CC BY-SA 4.0) license.
|