Files changed (1) hide show
  1. README.md +0 -351
README.md DELETED
@@ -1,351 +0,0 @@
1
- ---
2
- license: apache-2.0
3
- dataset_info:
4
- features:
5
- - name: message_id
6
- dtype: string
7
- - name: parent_id
8
- dtype: string
9
- - name: user_id
10
- dtype: string
11
- - name: created_date
12
- dtype: string
13
- - name: text
14
- dtype: string
15
- - name: role
16
- dtype: string
17
- - name: lang
18
- dtype: string
19
- - name: review_count
20
- dtype: int32
21
- - name: review_result
22
- dtype: bool
23
- - name: deleted
24
- dtype: bool
25
- - name: rank
26
- dtype: int32
27
- - name: synthetic
28
- dtype: bool
29
- - name: model_name
30
- dtype: string
31
- - name: detoxify
32
- struct:
33
- - name: toxicity
34
- dtype: float64
35
- - name: severe_toxicity
36
- dtype: float64
37
- - name: obscene
38
- dtype: float64
39
- - name: identity_attack
40
- dtype: float64
41
- - name: insult
42
- dtype: float64
43
- - name: threat
44
- dtype: float64
45
- - name: sexual_explicit
46
- dtype: float64
47
- - name: message_tree_id
48
- dtype: string
49
- - name: tree_state
50
- dtype: string
51
- - name: emojis
52
- sequence:
53
- - name: name
54
- dtype: string
55
- - name: count
56
- dtype: int32
57
- - name: labels
58
- sequence:
59
- - name: name
60
- dtype: string
61
- - name: value
62
- dtype: float64
63
- - name: count
64
- dtype: int32
65
- splits:
66
- - name: train
67
- num_bytes: 100367999
68
- num_examples: 84437
69
- - name: validation
70
- num_bytes: 5243405
71
- num_examples: 4401
72
- download_size: 41596430
73
- dataset_size: 105611404
74
- language:
75
- - en
76
- - es
77
- - ru
78
- - de
79
- - pl
80
- - th
81
- - vi
82
- - sv
83
- - bn
84
- - da
85
- - he
86
- - it
87
- - fa
88
- - sk
89
- - id
90
- - nb
91
- - el
92
- - nl
93
- - hu
94
- - eu
95
- - zh
96
- - eo
97
- - ja
98
- - ca
99
- - cs
100
- - bg
101
- - fi
102
- - pt
103
- - tr
104
- - ro
105
- - ar
106
- - uk
107
- - gl
108
- - fr
109
- - ko
110
- tags:
111
- - human-feedback
112
- size_categories:
113
- - 100K<n<1M
114
- pretty_name: OpenAssistant Conversations
115
- ---
116
-
117
- # OpenAssistant Conversations Dataset (OASST1)
118
-
119
- ## Dataset Description
120
-
121
- - **Homepage:** https://www.open-assistant.io/
122
- - **Repository:** https://github.com/LAION-AI/Open-Assistant
123
- - **Paper:** https://arxiv.org/abs/2304.07327
124
-
125
- ### Dataset Summary
126
-
127
- In an effort to democratize research on large-scale alignment, we release OpenAssistant
128
- Conversations (OASST1), a human-generated, human-annotated assistant-style conversation
129
- corpus consisting of 161,443 messages in 35 different languages, annotated with 461,292
130
- quality ratings, resulting in over 10,000 fully annotated conversation trees. The corpus
131
- is a product of a worldwide crowd-sourcing effort involving over 13,500 volunteers.
132
-
133
- Please refer to our [paper](https://arxiv.org/abs/2304.07327) for further details.
134
-
135
- ### Dataset Structure
136
-
137
- This dataset contains message trees. Each message tree has an initial prompt message as the root node,
138
- which can have multiple child messages as replies, and these child messages can have multiple replies.
139
-
140
- All messages have a role property: this can either be "assistant" or "prompter". The roles in
141
- conversation threads from prompt to leaf node strictly alternate between "prompter" and "assistant".
142
-
143
- This version of the dataset contains data collected on the [open-assistant.io](https://open-assistant.io/) website until April 12 2023.
144
-
145
- ### JSON Example: Message
146
-
147
- For readability, the following JSON examples are shown formatted with indentation on multiple lines.
148
- Objects are stored without indentation (on single lines) in the actual jsonl files.
149
-
150
- ```json
151
- {
152
- "message_id": "218440fd-5317-4355-91dc-d001416df62b",
153
- "parent_id": "13592dfb-a6f9-4748-a92c-32b34e239bb4",
154
- "user_id": "8e95461f-5e94-4d8b-a2fb-d4717ce973e4",
155
- "text": "It was the winter of 2035, and artificial intelligence (..)",
156
- "role": "assistant",
157
- "lang": "en",
158
- "review_count": 3,
159
- "review_result": true,
160
- "deleted": false,
161
- "rank": 0,
162
- "synthetic": true,
163
- "model_name": "oasst-sft-0_3000,max_new_tokens=400 (..)",
164
- "labels": {
165
- "spam": { "value": 0.0, "count": 3 },
166
- "lang_mismatch": { "value": 0.0, "count": 3 },
167
- "pii": { "value": 0.0, "count": 3 },
168
- "not_appropriate": { "value": 0.0, "count": 3 },
169
- "hate_speech": { "value": 0.0, "count": 3 },
170
- "sexual_content": { "value": 0.0, "count": 3 },
171
- "quality": { "value": 0.416, "count": 3 },
172
- "toxicity": { "value": 0.16, "count": 3 },
173
- "humor": { "value": 0.0, "count": 3 },
174
- "creativity": { "value": 0.33, "count": 3 },
175
- "violence": { "value": 0.16, "count": 3 }
176
- }
177
- }
178
- ```
179
-
180
- ### JSON Example: Conversation Tree
181
-
182
- For readability, only a subset of the message properties is shown here.
183
-
184
- ```json
185
- {
186
- "message_tree_id": "14fbb664-a620-45ce-bee4-7c519b16a793",
187
- "tree_state": "ready_for_export",
188
- "prompt": {
189
- "message_id": "14fbb664-a620-45ce-bee4-7c519b16a793",
190
- "text": "Why can't we divide by 0? (..)",
191
- "role": "prompter",
192
- "lang": "en",
193
- "replies": [
194
- {
195
- "message_id": "894d30b6-56b4-4605-a504-89dd15d4d1c8",
196
- "text": "The reason we cannot divide by zero is because (..)",
197
- "role": "assistant",
198
- "lang": "en",
199
- "replies": [
200
- // ...
201
- ]
202
- },
203
- {
204
- "message_id": "84d0913b-0fd9-4508-8ef5-205626a7039d",
205
- "text": "The reason that the result of a division by zero is (..)",
206
- "role": "assistant",
207
- "lang": "en",
208
- "replies": [
209
- {
210
- "message_id": "3352725e-f424-4e3b-a627-b6db831bdbaa",
211
- "text": "Math is confusing. Like those weird Irrational (..)",
212
- "role": "prompter",
213
- "lang": "en",
214
- "replies": [
215
- {
216
- "message_id": "f46207ca-3149-46e9-a466-9163d4ce499c",
217
- "text": "Irrational numbers are simply numbers (..)",
218
- "role": "assistant",
219
- "lang": "en",
220
- "replies": []
221
- },
222
- // ...
223
- ]
224
- }
225
- ]
226
- }
227
- ]
228
- }
229
- }
230
- ```
231
-
232
- Please refer to [oasst-data](https://github.com/LAION-AI/Open-Assistant/tree/main/oasst-data) for
233
- details about the data structure and Python code to read and write jsonl files containing oasst data objects.
234
-
235
- If you would like to explore the dataset yourself you can find a
236
- [`getting-started`](https://github.com/LAION-AI/Open-Assistant/blob/main/notebooks/openassistant-oasst1/getting-started.ipynb)
237
- notebook in the `notebooks/openassistant-oasst1` folder of the [LAION-AI/Open-Assistant](https://github.com/LAION-AI/Open-Assistant)
238
- github repository.
239
-
240
-
241
- ## Main Dataset Files
242
-
243
- Conversation data is provided either as nested messages in trees (extension `.trees.jsonl.gz`)
244
- or as a flat list (table) of messages (extension `.messages.jsonl.gz`).
245
-
246
- ### Ready For Export Trees
247
-
248
- ```
249
- 2023-04-12_oasst_ready.trees.jsonl.gz 10,364 trees with 88,838 total messages
250
- 2023-04-12_oasst_ready.messages.jsonl.gz 88,838 messages
251
- ```
252
- Trees in `ready_for_export` state without spam and deleted messages including message labels.
253
- The oasst_ready-trees file usually is sufficient for supervised fine-tuning (SFT) & reward model (RM) training.
254
-
255
-
256
- ### All Trees
257
-
258
- ```
259
- 2023-04-12_oasst_all.trees.jsonl.gz 66,497 trees with 161,443 total messages
260
- 2023-04-12_oasst_all.messages.jsonl.gz 161,443 messages
261
- ```
262
- All trees, including those in states `prompt_lottery_waiting` (trees that consist of only one message, namely the initial prompt),
263
- `aborted_low_grade` (trees that stopped growing because the messages had low quality), and `halted_by_moderator`.
264
-
265
-
266
- ### Supplemental Exports: Spam & Prompts
267
-
268
- ```
269
- 2023-04-12_oasst_spam.messages.jsonl.gz
270
- ```
271
- These are messages which were deleted or have a negative review result (`"review_result": false`).
272
- Besides low quality, a frequent reason for message deletion is a wrong language tag.
273
-
274
- ```
275
- 2023-04-12_oasst_prompts.messages.jsonl.gz
276
- ```
277
- These are all the kept initial prompt messages with positive review result (no spam) of trees in `ready_for_export` or `prompt_lottery_waiting` state.
278
-
279
- ### Using the Huggingface Datasets
280
-
281
- While HF datasets is ideal for tabular datasets, it is not a natural fit for nested data structures like the OpenAssistant conversation trees.
282
- Nevertheless, we make all messages which can also be found in the file `2023-04-12_oasst_ready.trees.jsonl.gz` available in parquet as train/validation splits.
283
- These are directly loadable by [Huggingface Datasets](https://pypi.org/project/datasets/).
284
-
285
- To load the oasst1 train & validation splits use:
286
-
287
- ```python
288
- from datasets import load_dataset
289
- ds = load_dataset("OpenAssistant/oasst1")
290
- train = ds['train'] # len(train)=84437 (95%)
291
- val = ds['validation'] # len(val)=4401 (5%)
292
- ```
293
-
294
- The messages appear in depth-first order of the message trees.
295
-
296
- Full conversation trees can be reconstructed from the flat messages table by using the `parent_id`
297
- and `message_id` properties to identify the parent-child relationship of messages. The `message_tree_id`
298
- and `tree_state` properties (only present in flat messages files) can be used to find all messages of a message tree or to select trees by their state.
299
-
300
- ### Languages
301
-
302
- OpenAssistant Conversations incorporates 35 different languages with a distribution of messages as follows:
303
-
304
- **Languages with over 1000 messages**
305
- - English: 71956
306
- - Spanish: 43061
307
- - Russian: 9089
308
- - German: 5279
309
- - Chinese: 4962
310
- - French: 4251
311
- - Thai: 3042
312
- - Portuguese (Brazil): 2969
313
- - Catalan: 2260
314
- - Korean: 1553
315
- - Ukrainian: 1352
316
- - Italian: 1320
317
- - Japanese: 1018
318
-
319
- <details>
320
- <summary><b>Languages with under 1000 messages</b></summary>
321
- <ul>
322
- <li>Vietnamese: 952</li>
323
- <li>Basque: 947</li>
324
- <li>Polish: 886</li>
325
- <li>Hungarian: 811</li>
326
- <li>Arabic: 666</li>
327
- <li>Dutch: 628</li>
328
- <li>Swedish: 512</li>
329
- <li>Turkish: 454</li>
330
- <li>Finnish: 386</li>
331
- <li>Czech: 372</li>
332
- <li>Danish: 358</li>
333
- <li>Galician: 339</li>
334
- <li>Hebrew: 255</li>
335
- <li>Romanian: 200</li>
336
- <li>Norwegian Bokmål: 133</li>
337
- <li>Indonesian: 115</li>
338
- <li>Bulgarian: 95</li>
339
- <li>Bengali: 82</li>
340
- <li>Persian: 72</li>
341
- <li>Greek: 66</li>
342
- <li>Esperanto: 59</li>
343
- <li>Slovak: 19</li>
344
- </ul>
345
- </details>
346
-
347
- ## Contact
348
-
349
- - Discord [Open Assistant Discord Server](https://ykilcher.com/open-assistant-discord)
350
- - GitHub: [LAION-AI/Open-Assistant](https://github.com/LAION-AI/Open-Assistant)
351
- - E-Mail: [open-assistant@laion.ai](mailto:open-assistant@laion.ai)