farbodtavakkoli commited on
Commit
72e14bf
·
verified ·
1 Parent(s): fa202ed

Copy of farbodtavakkoli/OTel-Safety at 7ddcfb2

Browse files
Files changed (4) hide show
  1. .gitattributes +3 -0
  2. OTel-Safety-Data.jsonl +3 -0
  3. README.md +119 -0
  4. croissant.json +281 -0
.gitattributes CHANGED
@@ -58,3 +58,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ full_all_prompts_k3_to_k10_abs_direct_qa.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ OTel-Safety-Dataset.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ OTel-Safety-Data.jsonl filter=lfs diff=lfs merge=lfs -text
OTel-Safety-Data.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea78f3c7fff9e4024d31dd85448f6cc4ccee7cf56d7ed2623c94c57f7ef16b68
3
+ size 28153897764
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - telecommunications
9
+ - telecom
10
+ - 3gpp
11
+ - oran
12
+ - gsma
13
+ - rag
14
+ - abstention
15
+ - safety
16
+ - domain-specific
17
+ - otel
18
+ size_categories:
19
+ - 100K<n<1M
20
+ pretty_name: OTel-Safety
21
+ dataset_info:
22
+ features:
23
+ - name: anchor
24
+ dtype: string
25
+ - name: prompt
26
+ dtype: string
27
+ - name: completion
28
+ dtype: string
29
+ - name: prompt_type
30
+ dtype: string
31
+ - name: abstention
32
+ dtype: bool
33
+ - name: n_positive_chunks
34
+ dtype: int64
35
+ - name: n_negative_chunks
36
+ dtype: int64
37
+ - name: prompt_token_count
38
+ dtype: int64
39
+ - name: completion_token_count
40
+ dtype: int64
41
+ ---
42
+
43
+ # OTel-Safety
44
+
45
+ ## Dataset Summary
46
+
47
+ OTel-Safety is a specialized dataset for training large language models to abstain from answering when the retrieved context in a RAG pipeline is insufficient or irrelevant. It is part of the Open Telco (OTel) AI project, the largest open-source AI initiative in telecommunications, curated by over 100 domain experts from industry and academia.
48
+
49
+ In deployed RAG systems, a common failure mode is hallucination when the retrieval step returns passages that do not contain the information needed to answer a query. OTel-Safety directly addresses this by providing training examples where the model must recognize context insufficiency and produce a refusal rather than a fabricated answer. The dataset shares its schema with OTel-LLM but is focused on the abstention objective.
50
+
51
+ ## Dataset Structure
52
+
53
+ Each sample contains the following fields:
54
+
55
+ | Field | Type | Description |
56
+ |---|---|---|
57
+ | `anchor` | string | The source passage or retrieved context chunk associated with the sample. |
58
+ | `prompt` | string | The instruction-formatted input provided to the model, including the context and query. |
59
+ | `completion` | string | The reference output. For abstention samples, this is a refusal response indicating insufficient context. |
60
+ | `prompt_type` | string | A categorical label indicating the type of instruction. |
61
+ | `abstention` | bool | Whether the sample is an abstention example. In this dataset, the abstention rate is elevated relative to OTel-LLM to emphasize the safety objective. |
62
+ | `n_positive_chunks` | int64 | The number of context chunks in the prompt that are relevant to the query. |
63
+ | `n_negative_chunks` | int64 | The number of context chunks in the prompt that are irrelevant to the query (distractors). |
64
+ | `prompt_token_count` | int64 | Token count of the prompt. |
65
+ | `completion_token_count` | int64 | Token count of the completion. |
66
+
67
+ ## Data Sources and Contributor Attribution
68
+
69
+ The OTel corpus was curated by 100+ domain experts from industry and academia. Each source class was contributed by a specific institutional partner:
70
+
71
+ | Source | Contributor | Raw samples |
72
+ |---|---|---:|
73
+ | arXiv telecom papers, 3GPP standards, telecom Wikipedia, telecom Common Crawl pages | Yale University | 681,172 |
74
+ | GSMA Permanent Reference Documents (PRDs), Discover portal, mixed telecom documents | GSMA | 158,006 |
75
+ | IETF RFC series | NetoAI | 100,751 |
76
+ | Industry whitepapers | Khalifa University | 62,000 |
77
+ | O-RAN specifications across working groups 1, 2, 4, 5, 6, 7, 8, 9, 10 | University of Leeds | 58,565 |
78
+ | O-RAN documents across working groups | The University of Texas at Dallas | 42,000 |
79
+ | **Total raw samples** | | **~1,102,494** |
80
+
81
+ After the four-stage cleaning pipeline (described below), the corpus was reduced to **326,767** higher-confidence examples across the OTel dataset family.
82
+
83
+ ## Data Collection and Processing
84
+
85
+ The raw corpus comprised approximately 1.1 million samples. A four-stage cleaning pipeline reduced this to 326K samples across the OTel dataset family:
86
+
87
+ 1. **Heuristic filtering**: Rule-based removal of malformed, duplicated, or low-quality entries.
88
+ 2. **Reranking filtering**: Relevance scoring with a cross-encoder reranker to discard weakly aligned prompt-completion pairs.
89
+ 3. **Embedding filtering**: Semantic quality assessment with a strong embedding model to remove outliers and near-duplicates in embedding space.
90
+ 4. **Deduplication**: Final deduplication pass to ensure sample uniqueness.
91
+
92
+ Abstention samples were constructed by pairing queries with context passages that lack the information needed to answer, requiring the model to learn when to refuse rather than hallucinate.
93
+
94
+ ## Intended Use
95
+
96
+ OTel-Safety is intended for fine-tuning large language models to improve abstention behavior in telecom-domain RAG pipelines. Target applications include:
97
+
98
+ - Training models to reliably refuse answering when retrieved context is insufficient, reducing hallucination in production RAG systems.
99
+ - Supplementing OTel-LLM during fine-tuning to balance answering capability with appropriate refusal behavior.
100
+ - Research on calibrated abstention and safety-aware generation in domain-specific settings.
101
+
102
+ ## Limitations
103
+
104
+ - **Domain scope**: The dataset covers telecommunications standards and specifications. Abstention behavior learned from this data may not transfer to other domains without adaptation.
105
+ - **Language**: English only.
106
+ - **Abstention boundary**: The distinction between sufficient and insufficient context is defined by the data generation pipeline. Edge cases may exist where the label does not align with human judgment.
107
+ - **Temporal coverage**: The source documents reflect standards and specifications available at the time of collection.
108
+
109
+ ## Citation
110
+
111
+ ```bibtex
112
+ @misc{otel_data_2026,
113
+ title = {{OTel}: Open Telco AI Datasets, Benchmarks, and Models},
114
+ author = {Tavakkoli, Farbod and others},
115
+ year = {2026},
116
+ note = {Open Telco (OTel) dataset release},
117
+ url = {https://huggingface.co/farbodtavakkoli}
118
+ }
119
+ ```
croissant.json ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "@context": {
3
+ "@language": "en",
4
+ "@vocab": "https://schema.org/",
5
+ "arrayShape": "cr:arrayShape",
6
+ "citeAs": "cr:citeAs",
7
+ "column": "cr:column",
8
+ "conformsTo": "dct:conformsTo",
9
+ "containedIn": "cr:containedIn",
10
+ "cr": "http://mlcommons.org/croissant/",
11
+ "data": {
12
+ "@id": "cr:data",
13
+ "@type": "@json"
14
+ },
15
+ "dataBiases": "rai:dataBiases",
16
+ "dataCollection": "cr:dataCollection",
17
+ "dataType": {
18
+ "@id": "cr:dataType",
19
+ "@type": "@vocab"
20
+ },
21
+ "dct": "http://purl.org/dc/terms/",
22
+ "extract": "cr:extract",
23
+ "field": "cr:field",
24
+ "fileProperty": "cr:fileProperty",
25
+ "fileObject": "cr:fileObject",
26
+ "fileSet": "cr:fileSet",
27
+ "format": "cr:format",
28
+ "includes": "cr:includes",
29
+ "isArray": "cr:isArray",
30
+ "isLiveDataset": "cr:isLiveDataset",
31
+ "jsonPath": "cr:jsonPath",
32
+ "key": "cr:key",
33
+ "md5": "cr:md5",
34
+ "parentField": "cr:parentField",
35
+ "path": "cr:path",
36
+ "personalSensitiveInformation": "rai:personalSensitiveInformation",
37
+ "recordSet": "cr:recordSet",
38
+ "references": "cr:references",
39
+ "regex": "cr:regex",
40
+ "repeated": "cr:repeated",
41
+ "replace": "cr:replace",
42
+ "sc": "https://schema.org/",
43
+ "separator": "cr:separator",
44
+ "source": "cr:source",
45
+ "subField": "cr:subField",
46
+ "transform": "cr:transform",
47
+ "rai": "http://mlcommons.org/croissant/RAI/",
48
+ "dataLimitations": "rai:dataLimitations",
49
+ "dataUseCases": "rai:dataUseCases",
50
+ "dataSocialImpact": "rai:dataSocialImpact",
51
+ "hasSyntheticData": "rai:hasSyntheticData",
52
+ "prov": "http://www.w3.org/ns/prov#",
53
+ "wasGeneratedBy": "prov:wasGeneratedBy"
54
+ },
55
+ "@type": "sc:Dataset",
56
+ "name": "OTel-Safety",
57
+ "description": "OTel-Safety is a specialized dataset for training large language models to abstain from answering when the retrieved context in a RAG pipeline is insufficient or irrelevant. It is part of the Open Telco (OTel) AI project.",
58
+ "alternateName": [
59
+ "farbodtavakkoli/OTel-Safety",
60
+ "OTel-Safety"
61
+ ],
62
+ "conformsTo": "http://mlcommons.org/croissant/1.1",
63
+ "creator": {
64
+ "@type": "Person",
65
+ "name": "Farbod Tavakkoli",
66
+ "url": "https://huggingface.co/farbodtavakkoli"
67
+ },
68
+ "keywords": [
69
+ "text-generation",
70
+ "English",
71
+ "apache-2.0",
72
+ "100K - 1M",
73
+ "telecommunications",
74
+ "telecom",
75
+ "3gpp",
76
+ "oran",
77
+ "gsma",
78
+ "rag",
79
+ "instruction-tuning",
80
+ "otel",
81
+ "abstention",
82
+ "safety",
83
+ "Croissant"
84
+ ],
85
+ "license": "https://choosealicense.com/licenses/apache-2.0/",
86
+ "url": "https://huggingface.co/datasets/farbodtavakkoli/OTel-Safety",
87
+ "distribution": [
88
+ {
89
+ "@type": "cr:FileObject",
90
+ "@id": "repo",
91
+ "name": "repo",
92
+ "description": "The Hugging Face git repository.",
93
+ "contentUrl": "https://huggingface.co/datasets/farbodtavakkoli/OTel-Safety/tree/refs%2Fconvert%2Fparquet",
94
+ "encodingFormat": "git+https",
95
+ "sha256": "https://github.com/mlcommons/croissant/issues/80"
96
+ },
97
+ {
98
+ "@type": "cr:FileSet",
99
+ "@id": "parquet-files-for-config-default",
100
+ "containedIn": {
101
+ "@id": "repo"
102
+ },
103
+ "encodingFormat": "application/x-parquet",
104
+ "includes": "default/*/*.parquet"
105
+ }
106
+ ],
107
+ "recordSet": [
108
+ {
109
+ "@type": "cr:RecordSet",
110
+ "@id": "default",
111
+ "name": "default",
112
+ "field": [
113
+ {
114
+ "@type": "cr:Field",
115
+ "@id": "default/split",
116
+ "name": "split",
117
+ "description": "The dataset split (e.g., train, test, validation).",
118
+ "dataType": "sc:Text",
119
+ "source": {
120
+ "fileSet": {
121
+ "@id": "parquet-files-for-config-default"
122
+ },
123
+ "extract": {
124
+ "fileProperty": "fullpath"
125
+ },
126
+ "transform": {
127
+ "regex": "default/(?P<split>[^/]*)/.*"
128
+ }
129
+ }
130
+ },
131
+ {
132
+ "@type": "cr:Field",
133
+ "@id": "default/anchor",
134
+ "name": "anchor",
135
+ "description": "The anchor text.",
136
+ "dataType": "sc:Text",
137
+ "source": {
138
+ "fileSet": {
139
+ "@id": "parquet-files-for-config-default"
140
+ },
141
+ "extract": {
142
+ "column": "anchor"
143
+ }
144
+ }
145
+ },
146
+ {
147
+ "@type": "cr:Field",
148
+ "@id": "default/prompt",
149
+ "name": "prompt",
150
+ "description": "The input prompt.",
151
+ "dataType": "sc:Text",
152
+ "source": {
153
+ "fileSet": {
154
+ "@id": "parquet-files-for-config-default"
155
+ },
156
+ "extract": {
157
+ "column": "prompt"
158
+ }
159
+ }
160
+ },
161
+ {
162
+ "@type": "cr:Field",
163
+ "@id": "default/completion",
164
+ "name": "completion",
165
+ "description": "The model completion.",
166
+ "dataType": "sc:Text",
167
+ "source": {
168
+ "fileSet": {
169
+ "@id": "parquet-files-for-config-default"
170
+ },
171
+ "extract": {
172
+ "column": "completion"
173
+ }
174
+ }
175
+ },
176
+ {
177
+ "@type": "cr:Field",
178
+ "@id": "default/prompt_type",
179
+ "name": "prompt_type",
180
+ "description": "The type of prompt.",
181
+ "dataType": "sc:Text",
182
+ "source": {
183
+ "fileSet": {
184
+ "@id": "parquet-files-for-config-default"
185
+ },
186
+ "extract": {
187
+ "column": "prompt_type"
188
+ }
189
+ }
190
+ },
191
+ {
192
+ "@type": "cr:Field",
193
+ "@id": "default/abstention",
194
+ "name": "abstention",
195
+ "description": "Whether the model abstained from answering.",
196
+ "dataType": "sc:Boolean",
197
+ "source": {
198
+ "fileSet": {
199
+ "@id": "parquet-files-for-config-default"
200
+ },
201
+ "extract": {
202
+ "column": "abstention"
203
+ }
204
+ }
205
+ },
206
+ {
207
+ "@type": "cr:Field",
208
+ "@id": "default/n_positive_chunks",
209
+ "name": "n_positive_chunks",
210
+ "description": "Number of positive chunks.",
211
+ "dataType": "sc:Integer",
212
+ "source": {
213
+ "fileSet": {
214
+ "@id": "parquet-files-for-config-default"
215
+ },
216
+ "extract": {
217
+ "column": "n_positive_chunks"
218
+ }
219
+ }
220
+ },
221
+ {
222
+ "@type": "cr:Field",
223
+ "@id": "default/n_negative_chunks",
224
+ "name": "n_negative_chunks",
225
+ "description": "Number of negative chunks.",
226
+ "dataType": "sc:Integer",
227
+ "source": {
228
+ "fileSet": {
229
+ "@id": "parquet-files-for-config-default"
230
+ },
231
+ "extract": {
232
+ "column": "n_negative_chunks"
233
+ }
234
+ }
235
+ },
236
+ {
237
+ "@type": "cr:Field",
238
+ "@id": "default/prompt_token_count",
239
+ "name": "prompt_token_count",
240
+ "description": "Token count of the prompt.",
241
+ "dataType": "sc:Integer",
242
+ "source": {
243
+ "fileSet": {
244
+ "@id": "parquet-files-for-config-default"
245
+ },
246
+ "extract": {
247
+ "column": "prompt_token_count"
248
+ }
249
+ }
250
+ },
251
+ {
252
+ "@type": "cr:Field",
253
+ "@id": "default/completion_token_count",
254
+ "name": "completion_token_count",
255
+ "description": "Token count of the completion.",
256
+ "dataType": "sc:Integer",
257
+ "source": {
258
+ "fileSet": {
259
+ "@id": "parquet-files-for-config-default"
260
+ },
261
+ "extract": {
262
+ "column": "completion_token_count"
263
+ }
264
+ }
265
+ }
266
+ ]
267
+ }
268
+ ],
269
+ "rai:dataLimitations": "The dataset covers telecommunications standards and specifications only. It is English-only and reflects standards available at the time of collection. Performance of models trained on this data should not be generalized beyond the telecom domain.",
270
+ "rai:dataBiases": "The dataset may overrepresent certain telecom subdomains (e.g., 3GPP, O-RAN) relative to others due to source availability. Widely documented standards topics are better represented than niche or emerging telecom areas.",
271
+ "rai:personalSensitiveInformation": "The dataset does not contain personal or sensitive information. All source material is drawn from publicly available technical standards, specifications, and academic publications.",
272
+ "rai:dataUseCases": "Training, Fine Tuning",
273
+ "rai:dataSocialImpact": "The dataset supports open and reproducible telecom AI research, reducing barriers to domain-specific model development. The primary risk is potential misuse of domain-specialized models to generate misleading telecom documentation.",
274
+ "rai:hasSyntheticData": "The training data includes synthetically generated question-answer pairs derived from source documents through automated pipelines, including LLM-assisted answer recreation and fact-grounded verification.",
275
+ "rai:dataCollection": "Source datasets and collection methodology: the OTel corpus is derived from publicly available telecom sources, including 3GPP technical specifications, GSMA Permanent Reference Documents (PRDs) and Discover portal materials, O-RAN Alliance specifications across working groups 1, 2, 4, 5, 6, 7, 8, 9, and 10, IETF Request for Comments (RFC) series, telecom academic papers from arXiv, telecom Wikipedia articles, telecom-related Common Crawl pages, and industry whitepapers. The OTel datasets release only derived question-answer pairs and contrastive examples, not the raw source documents. Data was collected by 100+ domain experts across industry and academia and processed through a six-phase enrichment and four-stage cleaning pipeline.",
276
+ "prov:wasGeneratedBy": {
277
+ "@type": "prov:Activity",
278
+ "name": "OTel Data Curation Pipeline",
279
+ "description": "A six-phase enrichment and four-stage cleaning pipeline curated by 100+ domain experts from AT&T, AMD, GSMA, Microsoft, RelationalAI, MLCommons, Mantis NLP, Essential AI, Yale University, Khalifa University, University of Leeds, The University of Texas at Dallas, Purdue University, and NetoAI. The raw corpus of approximately 1.1M samples was cleaned to approximately 326K samples through heuristic filtering, cross-encoder reranking filtering, embedding-based semantic filtering, and deduplication."
280
+ }
281
+ }