Aayushi-Shah commited on
Commit
d1bb101
1 Parent(s): 4c073d1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +250 -106
README.md CHANGED
@@ -1,108 +1,252 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: category
5
- dtype: string
6
- id: field
7
- - name: instruction
8
- dtype: string
9
- id: field
10
- - name: context
11
- dtype: string
12
- id: field
13
- - name: response
14
- dtype: string
15
- id: field
16
- - name: final-instruction
17
- list:
18
- - name: user_id
19
- dtype: string
20
- id: question
21
- - name: value
22
- dtype: string
23
- id: question
24
- - name: status
25
- dtype: string
26
- id: question
27
- - name: final-instruction-suggestion
28
- dtype: string
29
- id: suggestion
30
- - name: final-instruction-suggestion-metadata
31
- struct:
32
- - name: type
33
- dtype: string
34
- id: suggestion-metadata
35
- - name: score
36
- dtype: float32
37
- id: suggestion-metadata
38
- - name: agent
39
- dtype: string
40
- id: suggestion-metadata
41
- - name: final-context
42
- list:
43
- - name: user_id
44
- dtype: string
45
- id: question
46
- - name: value
47
- dtype: string
48
- id: question
49
- - name: status
50
- dtype: string
51
- id: question
52
- - name: final-context-suggestion
53
- dtype: string
54
- id: suggestion
55
- - name: final-context-suggestion-metadata
56
- struct:
57
- - name: type
58
- dtype: string
59
- id: suggestion-metadata
60
- - name: score
61
- dtype: float32
62
- id: suggestion-metadata
63
- - name: agent
64
- dtype: string
65
- id: suggestion-metadata
66
- - name: final-response
67
- list:
68
- - name: user_id
69
- dtype: string
70
- id: question
71
- - name: value
72
- dtype: string
73
- id: question
74
- - name: status
75
- dtype: string
76
- id: question
77
- - name: final-response-suggestion
78
- dtype: string
79
- id: suggestion
80
- - name: final-response-suggestion-metadata
81
- struct:
82
- - name: type
83
- dtype: string
84
- id: suggestion-metadata
85
- - name: score
86
- dtype: float32
87
- id: suggestion-metadata
88
- - name: agent
89
- dtype: string
90
- id: suggestion-metadata
91
- - name: external_id
92
- dtype: string
93
- id: external_id
94
- - name: metadata
95
- dtype: string
96
- id: metadata
97
- splits:
98
- - name: train
99
- num_bytes: 13053621
100
- num_examples: 15014
101
- download_size: 7760507
102
- dataset_size: 13053621
103
- configs:
104
- - config_name: default
105
- data_files:
106
- - split: train
107
- path: data/train-*
108
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ size_categories: 10K<n<100K
3
+ tags:
4
+ - rlfh
5
+ - argilla
6
+ - human-feedback
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  ---
8
+
9
+ # Dataset Card for dolly_tutorial
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("Aayushi-Shah/dolly_tutorial")
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("Aayushi-Shah/dolly_tutorial")
51
+ ```
52
+
53
+ ### Supported Tasks and Leaderboards
54
+
55
+ This dataset can contain [multiple fields, questions and responses](https://docs.argilla.io/en/latest/conceptual_guides/data_model.html#feedback-dataset) 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**, **metadata**, **vectors**, and **guidelines**.
68
+
69
+ The **fields** are the dataset records themselves, for the moment just text fields are supported. 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 | text | True | False |
74
+ | instruction | Instruction | text | True | False |
75
+ | context | Input | text | False | False |
76
+ | response | Response | text | 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, label_selection, multi_label_selection, or ranking.
80
+
81
+ | Question Name | Title | Type | Required | Description | Values/Labels |
82
+ | ------------- | ----- | ---- | -------- | ----------- | ------------- |
83
+ | final-instruction | Final Instruction | text | True | abcd | N/A |
84
+ | final-context | Final Input | text | False | efgh | N/A |
85
+ | final-response | Final Response | text | True | ijkl | N/A |
86
+
87
+
88
+ The **suggestions** are human or machine generated recommendations for each question to assist the annotator during the annotation process, so those are always linked to the existing questions, and 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, but the column name is appended with "-suggestion" and the metadata is appended with "-suggestion-metadata".
89
+
90
+ The **metadata** is a dictionary that can be used to provide additional information about the dataset record. This can be useful to provide additional context to the annotators, or to provide additional information about the dataset record itself. For example, you can use this to provide a link to the original source of the dataset record, or to provide additional information about the dataset record itself, such as the author, the date, or the source. The metadata is always optional, and can be potentially linked to the `metadata_properties` defined in the dataset configuration file in `argilla.yaml`.
91
+
92
+
93
+
94
+ | Metadata Name | Title | Type | Values | Visible for Annotators |
95
+ | ------------- | ----- | ---- | ------ | ---------------------- |
96
+
97
+
98
+ The **guidelines**, are optional as well, and are just a plain string that can be used to provide instructions to the annotators. Find those in the [annotation guidelines](#annotation-guidelines) section.
99
+
100
+ ### Data Instances
101
+
102
+ An example of a dataset instance in Argilla looks as follows:
103
+
104
+ ```json
105
+ {
106
+ "external_id": "0",
107
+ "fields": {
108
+ "category": "closed_qa",
109
+ "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. 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.",
110
+ "instruction": "When did Virgin Australia start operating?",
111
+ "response": "Virgin Australia commenced services on 31 August 2000 as Virgin Blue, with two aircraft on a single route."
112
+ },
113
+ "metadata": {},
114
+ "responses": [],
115
+ "suggestions": [],
116
+ "vectors": {}
117
+ }
118
+ ```
119
+
120
+ While the same record in HuggingFace `datasets` looks as follows:
121
+
122
+ ```json
123
+ {
124
+ "category": "closed_qa",
125
+ "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. 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.",
126
+ "external_id": "0",
127
+ "final-context": [],
128
+ "final-context-suggestion": null,
129
+ "final-context-suggestion-metadata": {
130
+ "agent": null,
131
+ "score": null,
132
+ "type": null
133
+ },
134
+ "final-instruction": [],
135
+ "final-instruction-suggestion": null,
136
+ "final-instruction-suggestion-metadata": {
137
+ "agent": null,
138
+ "score": null,
139
+ "type": null
140
+ },
141
+ "final-response": [],
142
+ "final-response-suggestion": null,
143
+ "final-response-suggestion-metadata": {
144
+ "agent": null,
145
+ "score": null,
146
+ "type": null
147
+ },
148
+ "instruction": "When did Virgin Australia start operating?",
149
+ "metadata": "{}",
150
+ "response": "Virgin Australia commenced services on 31 August 2000 as Virgin Blue, with two aircraft on a single route."
151
+ }
152
+ ```
153
+
154
+ ### Data Fields
155
+
156
+ Among the dataset fields, we differentiate between the following:
157
+
158
+ * **Fields:** These are the dataset records themselves, for the moment just text fields are supported. These are the ones that will be used to provide responses to the questions.
159
+
160
+ * **category** is of type `text`.
161
+ * **instruction** is of type `text`.
162
+ * (optional) **context** is of type `text`.
163
+ * **response** is of type `text`.
164
+
165
+ * **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`.
166
+
167
+ * **final-instruction** is of type `text`, and description "abcd".
168
+ * (optional) **final-context** is of type `text`, and description "efgh".
169
+ * **final-response** is of type `text`, and description "ijkl".
170
+
171
+ * **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.
172
+
173
+ * (optional) **final-instruction-suggestion** is of type `text`.
174
+ * (optional) **final-context-suggestion** is of type `text`.
175
+ * (optional) **final-response-suggestion** is of type `text`.
176
+
177
+
178
+
179
+ Additionally, we also have two more fields that are optional and are the following:
180
+
181
+ * **metadata:** This is an optional field that can be used to provide additional information about the dataset record. This can be useful to provide additional context to the annotators, or to provide additional information about the dataset record itself. For example, you can use this to provide a link to the original source of the dataset record, or to provide additional information about the dataset record itself, such as the author, the date, or the source. The metadata is always optional, and can be potentially linked to the `metadata_properties` defined in the dataset configuration file in `argilla.yaml`.
182
+ * **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.
183
+
184
+ ### Data Splits
185
+
186
+ The dataset contains a single split, which is `train`.
187
+
188
+ ## Dataset Creation
189
+
190
+ ### Curation Rationale
191
+
192
+ [More Information Needed]
193
+
194
+ ### Source Data
195
+
196
+ #### Initial Data Collection and Normalization
197
+
198
+ [More Information Needed]
199
+
200
+ #### Who are the source language producers?
201
+
202
+ [More Information Needed]
203
+
204
+ ### Annotations
205
+
206
+ #### Annotation guidelines
207
+
208
+ [More Information Needed]
209
+
210
+ #### Annotation process
211
+
212
+ [More Information Needed]
213
+
214
+ #### Who are the annotators?
215
+
216
+ [More Information Needed]
217
+
218
+ ### Personal and Sensitive Information
219
+
220
+ [More Information Needed]
221
+
222
+ ## Considerations for Using the Data
223
+
224
+ ### Social Impact of Dataset
225
+
226
+ [More Information Needed]
227
+
228
+ ### Discussion of Biases
229
+
230
+ [More Information Needed]
231
+
232
+ ### Other Known Limitations
233
+
234
+ [More Information Needed]
235
+
236
+ ## Additional Information
237
+
238
+ ### Dataset Curators
239
+
240
+ [More Information Needed]
241
+
242
+ ### Licensing Information
243
+
244
+ [More Information Needed]
245
+
246
+ ### Citation Information
247
+
248
+ [More Information Needed]
249
+
250
+ ### Contributions
251
+
252
+ [More Information Needed]