Andreas Koepf commited on
Commit
261a96b
1 Parent(s): 1e678c3

update readme

Browse files
Files changed (1) hide show
  1. README.md +106 -1
README.md CHANGED
@@ -114,7 +114,7 @@ size_categories:
114
  pretty_name: OpenAssistant Conversations Release 2
115
  ---
116
 
117
- # Open Assistant Conversations Dataset Release 2 (OASST2)
118
 
119
  ## Dataset Description
120
 
@@ -122,6 +122,111 @@ pretty_name: OpenAssistant Conversations Release 2
122
  - **Repository:** https://github.com/LAION-AI/Open-Assistant
123
  - **Paper:** https://arxiv.org/abs/2304.07327
124
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
 
126
 
127
  ### Ready For Export Trees
 
114
  pretty_name: OpenAssistant Conversations Release 2
115
  ---
116
 
117
+ # Open Assistant Conversations Dataset Release 2 (OASST2)
118
 
119
  ## Dataset Description
120
 
 
122
  - **Repository:** https://github.com/LAION-AI/Open-Assistant
123
  - **Paper:** https://arxiv.org/abs/2304.07327
124
 
125
+ ### Dataset Structure
126
+
127
+ This dataset contains message trees. Each message tree has an initial prompt message as the root node,
128
+ which can have multiple child messages as replies, and these child messages can have multiple replies.
129
+
130
+ All messages have a role property: this can either be "assistant" or "prompter". The roles in
131
+ conversation threads from prompt to leaf node strictly alternate between "prompter" and "assistant".
132
+
133
+ This version of the dataset contains data collected on the [open-assistant.io](https://open-assistant.io/) website until Nov 5 2023.
134
+
135
+ ### JSON Example: Message
136
+
137
+ For readability, the following JSON examples are shown formatted with indentation on multiple lines.
138
+ Objects are stored without indentation (on single lines) in the actual jsonl files.
139
+
140
+ ```json
141
+ {
142
+ "message_id": "218440fd-5317-4355-91dc-d001416df62b",
143
+ "parent_id": "13592dfb-a6f9-4748-a92c-32b34e239bb4",
144
+ "user_id": "8e95461f-5e94-4d8b-a2fb-d4717ce973e4",
145
+ "text": "It was the winter of 2035, and artificial intelligence (..)",
146
+ "role": "assistant",
147
+ "lang": "en",
148
+ "review_count": 3,
149
+ "review_result": true,
150
+ "deleted": false,
151
+ "rank": 0,
152
+ "synthetic": true,
153
+ "model_name": "oasst-sft-0_3000,max_new_tokens=400 (..)",
154
+ "labels": {
155
+ "spam": { "value": 0.0, "count": 3 },
156
+ "lang_mismatch": { "value": 0.0, "count": 3 },
157
+ "pii": { "value": 0.0, "count": 3 },
158
+ "not_appropriate": { "value": 0.0, "count": 3 },
159
+ "hate_speech": { "value": 0.0, "count": 3 },
160
+ "sexual_content": { "value": 0.0, "count": 3 },
161
+ "quality": { "value": 0.416, "count": 3 },
162
+ "toxicity": { "value": 0.16, "count": 3 },
163
+ "humor": { "value": 0.0, "count": 3 },
164
+ "creativity": { "value": 0.33, "count": 3 },
165
+ "violence": { "value": 0.16, "count": 3 }
166
+ }
167
+ }
168
+ ```
169
+
170
+ ### JSON Example: Conversation Tree
171
+
172
+ For readability, only a subset of the message properties is shown here.
173
+
174
+ ```json
175
+ {
176
+ "message_tree_id": "14fbb664-a620-45ce-bee4-7c519b16a793",
177
+ "tree_state": "ready_for_export",
178
+ "prompt": {
179
+ "message_id": "14fbb664-a620-45ce-bee4-7c519b16a793",
180
+ "text": "Why can't we divide by 0? (..)",
181
+ "role": "prompter",
182
+ "lang": "en",
183
+ "replies": [
184
+ {
185
+ "message_id": "894d30b6-56b4-4605-a504-89dd15d4d1c8",
186
+ "text": "The reason we cannot divide by zero is because (..)",
187
+ "role": "assistant",
188
+ "lang": "en",
189
+ "replies": [
190
+ // ...
191
+ ]
192
+ },
193
+ {
194
+ "message_id": "84d0913b-0fd9-4508-8ef5-205626a7039d",
195
+ "text": "The reason that the result of a division by zero is (..)",
196
+ "role": "assistant",
197
+ "lang": "en",
198
+ "replies": [
199
+ {
200
+ "message_id": "3352725e-f424-4e3b-a627-b6db831bdbaa",
201
+ "text": "Math is confusing. Like those weird Irrational (..)",
202
+ "role": "prompter",
203
+ "lang": "en",
204
+ "replies": [
205
+ {
206
+ "message_id": "f46207ca-3149-46e9-a466-9163d4ce499c",
207
+ "text": "Irrational numbers are simply numbers (..)",
208
+ "role": "assistant",
209
+ "lang": "en",
210
+ "replies": []
211
+ },
212
+ // ...
213
+ ]
214
+ }
215
+ ]
216
+ }
217
+ ]
218
+ }
219
+ }
220
+ ```
221
+
222
+ Please refer to [oasst-data](https://github.com/LAION-AI/Open-Assistant/tree/main/oasst-data) for
223
+ details about the data structure and Python code to read and write jsonl files containing oasst data objects.
224
+
225
+
226
+ ## Main Dataset Files
227
+
228
+ Conversation data is provided either as nested messages in trees (extension `.trees.jsonl.gz`)
229
+ or as a flat list (table) of messages (extension `.messages.jsonl.gz`).
230
 
231
 
232
  ### Ready For Export Trees