HakanK commited on
Commit
f4bd7cc
1 Parent(s): b87ad5f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +266 -108
README.md CHANGED
@@ -1,111 +1,269 @@
1
  ---
2
- configs:
3
- - config_name: default
4
- data_files:
5
- - split: train
6
- path: data/train-*
7
- dataset_info:
8
- features:
9
- - name: category
10
- dtype: string
11
- id: field
12
- - name: instruction
13
- dtype: string
14
- id: field
15
- - name: context
16
- dtype: string
17
- id: field
18
- - name: response
19
- dtype: string
20
- id: field
21
- - name: new-instruction
22
- list:
23
- - name: user_id
24
- dtype: string
25
- id: question
26
- - name: value
27
- dtype: string
28
- id: suggestion
29
- - name: status
30
- dtype: string
31
- id: question
32
- - name: new-instruction-suggestion
33
- dtype: string
34
- id: suggestion
35
- - name: new-instruction-suggestion-metadata
36
- struct:
37
- - name: type
38
- dtype: string
39
- id: suggestion-metadata
40
- - name: score
41
- dtype: float32
42
- id: suggestion-metadata
43
- - name: agent
44
- dtype: string
45
- id: suggestion-metadata
46
- - name: new-input
47
- list:
48
- - name: user_id
49
- dtype: string
50
- id: question
51
- - name: value
52
- dtype: string
53
- id: suggestion
54
- - name: status
55
- dtype: string
56
- id: question
57
- - name: new-input-suggestion
58
- dtype: string
59
- id: suggestion
60
- - name: new-input-suggestion-metadata
61
- struct:
62
- - name: type
63
- dtype: string
64
- id: suggestion-metadata
65
- - name: score
66
- dtype: float32
67
- id: suggestion-metadata
68
- - name: agent
69
- dtype: string
70
- id: suggestion-metadata
71
- - name: new-response
72
- list:
73
- - name: user_id
74
- dtype: string
75
- id: question
76
- - name: value
77
- dtype: string
78
- id: suggestion
79
- - name: status
80
- dtype: string
81
- id: question
82
- - name: new-response-suggestion
83
- dtype: string
84
- id: suggestion
85
- - name: new-response-suggestion-metadata
86
- struct:
87
- - name: type
88
- dtype: string
89
- id: suggestion-metadata
90
- - name: score
91
- dtype: float32
92
- id: suggestion-metadata
93
- - name: agent
94
- dtype: string
95
- id: suggestion-metadata
96
- - name: external_id
97
- dtype: string
98
- id: external_id
99
- - name: metadata
100
- dtype: string
101
- id: metadata
102
- splits:
103
- - name: train
104
- num_bytes: 13468217
105
- num_examples: 15015
106
- download_size: 8054122
107
- dataset_size: 13468217
108
  ---
109
- # Dataset Card for "argilla_experiment_dolly_15k"
110
 
111
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ size_categories: 10K<n<100K
3
+ tags:
4
+ - rlfh
5
+ - argilla
6
+ - human-feedback
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  ---
 
8
 
9
+ # Dataset Card for argilla_experiment_dolly_15k
10
+
11
+ This dataset has been created with [Argilla](https://docs.argilla.io).
12
+
13
+ As shown in the sections below, this dataset can be loaded into Argilla as explained in [Load with Argilla](#load-with-argilla), or used directly with the `datasets` library in [Load with `datasets`](#load-with-datasets).
14
+
15
+ ## Dataset Description
16
+
17
+ - **Homepage:** https://argilla.io
18
+ - **Repository:** https://github.com/argilla-io/argilla
19
+ - **Paper:**
20
+ - **Leaderboard:**
21
+ - **Point of Contact:**
22
+
23
+ ### Dataset Summary
24
+
25
+ This dataset contains:
26
+
27
+ * A dataset configuration file conforming to the Argilla dataset format named `argilla.yaml`. This configuration file will be used to configure the dataset when using the `FeedbackDataset.from_huggingface` method in Argilla.
28
+
29
+ * Dataset records in a format compatible with HuggingFace `datasets`. These records will be loaded automatically when using `FeedbackDataset.from_huggingface` and can be loaded independently using the `datasets` library via `load_dataset`.
30
+
31
+ * The [annotation guidelines](#annotation-guidelines) that have been used for building and curating the dataset, if they've been defined in Argilla.
32
+
33
+ ### Load with Argilla
34
+
35
+ To load with Argilla, you'll just need to install Argilla as `pip install argilla --upgrade` and then use the following code:
36
+
37
+ ```python
38
+ import argilla as rg
39
+
40
+ ds = rg.FeedbackDataset.from_huggingface("HakanK/argilla_experiment_dolly_15k")
41
+ ```
42
+
43
+ ### Load with `datasets`
44
+
45
+ To load this dataset with `datasets`, you'll just need to install `datasets` as `pip install datasets --upgrade` and then use the following code:
46
+
47
+ ```python
48
+ from datasets import load_dataset
49
+
50
+ ds = load_dataset("HakanK/argilla_experiment_dolly_15k")
51
+ ```
52
+
53
+ ### Supported Tasks and Leaderboards
54
+
55
+ This dataset can contain [multiple fields, questions and responses](https://docs.argilla.io/en/latest/guides/llms/conceptual_guides/data_model.html) so it can be used for different NLP tasks, depending on the configuration. The dataset structure is described in the [Dataset Structure section](#dataset-structure).
56
+
57
+ There are no leaderboards associated with this dataset.
58
+
59
+ ### Languages
60
+
61
+ [More Information Needed]
62
+
63
+ ## Dataset Structure
64
+
65
+ ### Data in Argilla
66
+
67
+ The dataset is created in Argilla with: **fields**, **questions**, **suggestions**, and **guidelines**.
68
+
69
+ The **fields** are the dataset records themselves, for the moment just text fields are suppported. These are the ones that will be used to provide responses to the questions.
70
+
71
+ | Field Name | Title | Type | Required | Markdown |
72
+ | ---------- | ----- | ---- | -------- | -------- |
73
+ | category | Task category | TextField | True | False |
74
+ | instruction | Instruction | TextField | True | False |
75
+ | context | Input | TextField | False | False |
76
+ | response | Response | TextField | True | False |
77
+
78
+
79
+ The **questions** are the questions that will be asked to the annotators. They can be of different types, such as rating, text, single choice, or multiple choice.
80
+
81
+ | Question Name | Title | Type | Required | Description | Values/Labels |
82
+ | ------------- | ----- | ---- | -------- | ----------- | ------------- |
83
+ | new-instruction | Final instruction: | TextQuestion | True | Write the final version of the instruction, making sure that it matches the task category. If the original instruction is ok, copy and paste it here. | N/A |
84
+ | new-input | Final input: | TextQuestion | False | Write the final version of the input, making sure that it makes sense with the task category. If the original input is ok, copy and paste it here. If an input is not needed, leave this empty. | N/A |
85
+ | new-response | Final response: | TextQuestion | True | Write the final version of the response, making sure that it matches the task category and makes sense for the instruction (and input) provided. If the original response is ok, copy and paste it here. | N/A |
86
+
87
+
88
+ **✨ NEW** Additionally, we also have **suggestions**, which are linked to the existing questions, and so on, named appending "-suggestion" and "-suggestion-metadata" to those, containing the value/s of the suggestion and its metadata, respectively. So on, the possible values are the same as in the table above.
89
+
90
+ Finally, the **guidelines** are just a plain string that can be used to provide instructions to the annotators. Find those in the [annotation guidelines](#annotation-guidelines) section.
91
+
92
+ ### Data Instances
93
+
94
+ An example of a dataset instance in Argilla looks as follows:
95
+
96
+ ```json
97
+ {
98
+ "external_id": "0",
99
+ "fields": {
100
+ "category": "closed_qa",
101
+ "context": "Virgin Australia, the trading name of Virgin Australia Airlines Pty Ltd, is an Australian-based airline. It is the largest airline by fleet size to use the Virgin brand. It commenced services on 31 August 2000 as Virgin Blue, with two aircraft on a single route.[3] It suddenly found itself as a major airline in Australia\u0027s domestic market after the collapse of Ansett Australia in September 2001. The airline has since grown to directly serve 32 cities in Australia, from hubs in Brisbane, Melbourne and Sydney.[4]",
102
+ "instruction": "When did Virgin Australia start operating?",
103
+ "response": "Virgin Australia commenced services on 31 August 2000 as Virgin Blue, with two aircraft on a single route."
104
+ },
105
+ "metadata": {},
106
+ "responses": [
107
+ {
108
+ "status": "submitted",
109
+ "user_id": "6c5cfab8-6136-4e83-9deb-3f5a52215706",
110
+ "values": {
111
+ "new-input": {
112
+ "value": "Virgin Australia, the trading name of Virgin Australia Airlines Pty Ltd, is an Australian-based airline. It is the largest airline by fleet size to use the Virgin brand. It commenced services on 31 August 2000 as Virgin Blue, with two aircraft on a single route.[3] It suddenly found itself as a major airline in Australia\u0027s domestic market after the collapse of Ansett Australia in September 2001. The airline has since grown to directly serve 32 cities in Australia, from hubs in Brisbane, Melbourne and Sydney.[4]"
113
+ },
114
+ "new-instruction": {
115
+ "value": "When did Virgin Australia start operating?"
116
+ },
117
+ "new-response": {
118
+ "value": "Virgin Australia commenced services on 31 August 2000 as Virgin Blue, with two aircraft on a single route. Blah blah"
119
+ }
120
+ }
121
+ }
122
+ ],
123
+ "suggestions": []
124
+ }
125
+ ```
126
+
127
+ While the same record in HuggingFace `datasets` looks as follows:
128
+
129
+ ```json
130
+ {
131
+ "category": "information_extraction",
132
+ "context": "John Moses Browning (January 23, 1855 \u2013 November 26, 1926) was an American firearm designer who developed many varieties of military and civilian firearms, cartridges, and gun mechanisms \u2013 many of which are still in use around the world. He made his first firearm at age 13 in his father\u0027s gun shop and was awarded the first of his 128 firearm patents on October 7, 1879, at the age of 24. He is regarded as one of the most successful firearms designers of the 19th and 20th centuries and pioneered the development of modern repeating, semi-automatic, and automatic firearms.\n\nBrowning influenced nearly all categories of firearms design, especially the autoloading of ammunition. He invented, or made significant improvements to, single-shot, lever-action, and pump-action rifles and shotguns. He developed the first reliable and compact autoloading pistols by inventing the telescoping bolt, then integrating the bolt and barrel shroud into what is known as the pistol slide. Browning\u0027s telescoping bolt design is now found on nearly every modern semi-automatic pistol, as well as several modern fully automatic weapons. He also developed the first gas-operated firearm, the Colt\u2013Browning Model 1895 machine gun \u2013 a system that surpassed mechanical recoil operation to become the standard for most high-power self-loading firearm designs worldwide. He also made significant contributions to automatic cannon development.\n\nBrowning\u0027s most successful designs include the M1911 pistol, the water-cooled M1917, the air-cooled M1919, and heavy M2 machine guns, the M1918 Browning Automatic Rifle, and the Browning Auto-5 \u2013 the first semi-automatic shotgun. Some of these arms are still manufactured, often with only minor changes in detail and cosmetics to those assembled by Browning or his licensees. The Browning-designed M1911 and Hi-Power are some of the most copied firearms in the world.",
133
+ "external_id": "9",
134
+ "instruction": "Who was John Moses Browning?",
135
+ "metadata": "{}",
136
+ "new-input": [],
137
+ "new-input-suggestion": null,
138
+ "new-input-suggestion-metadata": {
139
+ "agent": null,
140
+ "score": null,
141
+ "type": null
142
+ },
143
+ "new-instruction": [],
144
+ "new-instruction-suggestion": null,
145
+ "new-instruction-suggestion-metadata": {
146
+ "agent": null,
147
+ "score": null,
148
+ "type": null
149
+ },
150
+ "new-response": [],
151
+ "new-response-suggestion": null,
152
+ "new-response-suggestion-metadata": {
153
+ "agent": null,
154
+ "score": null,
155
+ "type": null
156
+ },
157
+ "response": "John Moses Browning is one of the most well-known designer of modern firearms. He started building firearms in his father\u0027s shop at the age of 13, and was awarded his first patent when he was 24.\n\nHe designed the first reliable automatic pistol, and the first gas-operated firearm, as well inventing or improving single-shot, lever-action, and pump-action rifles and shotguns.\n\nToday, he is most well-known for the M1911 pistol, the Browning Automatic Rifle, and the Auto-5 shotgun, all of which are in still in current production in either their original design, or with minor changes. His M1911 and Hi-Power pistols designs are some of the most reproduced firearms in the world today."
158
+ }
159
+ ```
160
+
161
+ ### Data Fields
162
+
163
+ Among the dataset fields, we differentiate between the following:
164
+
165
+ * **Fields:** These are the dataset records themselves, for the moment just text fields are suppported. These are the ones that will be used to provide responses to the questions.
166
+
167
+ * **category** is of type `TextField`.
168
+ * **instruction** is of type `TextField`.
169
+ * (optional) **context** is of type `TextField`.
170
+ * **response** is of type `TextField`.
171
+
172
+ * **Questions:** These are the questions that will be asked to the annotators. They can be of different types, such as `RatingQuestion`, `TextQuestion`, `LabelQuestion`, `MultiLabelQuestion`, and `RankingQuestion`.
173
+
174
+ * **new-instruction** is of type `TextQuestion`, and description "Write the final version of the instruction, making sure that it matches the task category. If the original instruction is ok, copy and paste it here.".
175
+ * (optional) **new-input** is of type `TextQuestion`, and description "Write the final version of the input, making sure that it makes sense with the task category. If the original input is ok, copy and paste it here. If an input is not needed, leave this empty.".
176
+ * **new-response** is of type `TextQuestion`, and description "Write the final version of the response, making sure that it matches the task category and makes sense for the instruction (and input) provided. If the original response is ok, copy and paste it here.".
177
+
178
+ * **✨ NEW** **Suggestions:** As of Argilla 1.13.0, the suggestions have been included to provide the annotators with suggestions to ease or assist during the annotation process. Suggestions are linked to the existing questions, are always optional, and contain not just the suggestion itself, but also the metadata linked to it, if applicable.
179
+
180
+ * (optional) **new-instruction-suggestion** is of type `text`.
181
+ * (optional) **new-input-suggestion** is of type `text`.
182
+ * (optional) **new-response-suggestion** is of type `text`.
183
+
184
+ Additionally, we also have one more field which is optional and is the following:
185
+
186
+ * **external_id:** This is an optional field that can be used to provide an external ID for the dataset record. This can be useful if you want to link the dataset record to an external resource, such as a database or a file.
187
+
188
+ ### Data Splits
189
+
190
+ The dataset contains a single split, which is `train`.
191
+
192
+ ## Dataset Creation
193
+
194
+ ### Curation Rationale
195
+
196
+ [More Information Needed]
197
+
198
+ ### Source Data
199
+
200
+ #### Initial Data Collection and Normalization
201
+
202
+ [More Information Needed]
203
+
204
+ #### Who are the source language producers?
205
+
206
+ [More Information Needed]
207
+
208
+ ### Annotations
209
+
210
+ #### Annotation guidelines
211
+
212
+ In this dataset, you will find a collection of records that show a category, an instruction, an input and a response to that instruction. The aim of the project is to correct the instructions, intput and responses to make sure they are of the highest quality and that they match the task category that they belong to. All three texts should be clear and include real information. In addition, the response should be as complete but concise as possible.
213
+
214
+ To curate the dataset, you will need to provide an answer to the following text fields:
215
+
216
+ 1 - Final instruction:
217
+ The final version of the instruction field. You may copy it using the copy icon in the instruction field. Leave it as it is if it's ok or apply any necessary corrections. Remember to change the instruction if it doesn't represent well the task category of the record.
218
+
219
+ 2 - Final input:
220
+ The final version of the instruction field. You may copy it using the copy icon in the input field. Leave it as it is if it's ok or apply any necessary corrections. If the task category and instruction don't need of an input to be completed, leave this question blank.
221
+
222
+ 3 - Final response:
223
+ The final version of the response field. You may copy it using the copy icon in the response field. Leave it as it is if it's ok or apply any necessary corrections. Check that the response makes sense given all the fields above.
224
+
225
+ You will need to provide at least an instruction and a response for all records. If you are not sure about a record and you prefer not to provide a response, click Discard.
226
+
227
+ #### Annotation process
228
+
229
+ [More Information Needed]
230
+
231
+ #### Who are the annotators?
232
+
233
+ [More Information Needed]
234
+
235
+ ### Personal and Sensitive Information
236
+
237
+ [More Information Needed]
238
+
239
+ ## Considerations for Using the Data
240
+
241
+ ### Social Impact of Dataset
242
+
243
+ [More Information Needed]
244
+
245
+ ### Discussion of Biases
246
+
247
+ [More Information Needed]
248
+
249
+ ### Other Known Limitations
250
+
251
+ [More Information Needed]
252
+
253
+ ## Additional Information
254
+
255
+ ### Dataset Curators
256
+
257
+ [More Information Needed]
258
+
259
+ ### Licensing Information
260
+
261
+ [More Information Needed]
262
+
263
+ ### Citation Information
264
+
265
+ [More Information Needed]
266
+
267
+ ### Contributions
268
+
269
+ [More Information Needed]