Agenten commited on
Commit
2f382b1
·
verified ·
1 Parent(s): f697bba

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +564 -0
  2. index.html +224 -0
README.md ADDED
@@ -0,0 +1,564 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Data Quality
3
+ emoji: ✅
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: static
7
+ pinned: false
8
+ ---
9
+
10
+ # Data Quality
11
+
12
+ ### Evaluate whether a dataset is ready for training, post-training, retrieval or evaluation
13
+
14
+ **Data Quality** is an interactive Hugging Face Space for assessing the readiness of AI datasets.
15
+
16
+ It helps structure the questions teams should ask before using data for:
17
+
18
+ - pretraining
19
+ - post-training
20
+ - fine-tuning
21
+ - retrieval-augmented generation
22
+ - evaluation
23
+ - agent training
24
+ - multimodal AI
25
+ - robotics and Physical AI
26
+
27
+ > **A dataset can be large, clean and still be wrong for the task.**
28
+
29
+ ---
30
+
31
+ # What Is Data Quality in AI?
32
+
33
+ Data quality is not a single score.
34
+
35
+ A useful AI dataset should be evaluated across several dimensions:
36
+
37
+ - correctness
38
+ - relevance
39
+ - completeness
40
+ - diversity
41
+ - duplication
42
+ - provenance
43
+ - licensing
44
+ - privacy
45
+ - contamination
46
+ - freshness
47
+ - consistency
48
+ - label quality
49
+ - representativeness
50
+ - downstream utility
51
+
52
+ The correct weighting depends on the intended AI system.
53
+
54
+ ---
55
+
56
+ # Dataset Readiness
57
+
58
+ A practical readiness model can be expressed as:
59
+
60
+ ```text
61
+ Raw Dataset
62
+ │
63
+ ├── Structure
64
+ ├── Quality
65
+ ├── Deduplication
66
+ ├── Provenance
67
+ ├── Privacy
68
+ ├── Contamination
69
+ ├── Coverage
70
+ └── Task Fit
71
+ │
72
+ ▼
73
+ Readiness Assessment
74
+ │
75
+ ├── Ready
76
+ ├── Needs Curation
77
+ └── High Risk
78
+ ```
79
+
80
+ ---
81
+
82
+ # Core Quality Dimensions
83
+
84
+ ## 1. Structural Quality
85
+
86
+ Questions:
87
+
88
+ - Is the schema consistent?
89
+ - Are required fields present?
90
+ - Are files parseable?
91
+ - Are encodings valid?
92
+ - Are media files readable?
93
+ - Are timestamps usable?
94
+ - Are IDs stable?
95
+
96
+ Structural problems should usually be addressed before deeper quality analysis.
97
+
98
+ ---
99
+
100
+ ## 2. Content Quality
101
+
102
+ Questions:
103
+
104
+ - Is the content coherent?
105
+ - Is it informative?
106
+ - Is it relevant?
107
+ - Is it factually plausible?
108
+ - Is it malformed or spam-like?
109
+ - Does it contain low-information repetition?
110
+
111
+ Quality can be measured with:
112
+
113
+ - heuristics
114
+ - classifiers
115
+ - LLM-based scoring
116
+ - human review
117
+ - source-level signals
118
+
119
+ ---
120
+
121
+ ## 3. Duplication
122
+
123
+ Datasets should be checked for:
124
+
125
+ - exact duplicates
126
+ - near duplicates
127
+ - semantic redundancy
128
+ - repeated templates
129
+ - mirrored sources
130
+
131
+ Duplicate data can distort training distributions and waste compute.
132
+
133
+ ---
134
+
135
+ ## 4. Provenance
136
+
137
+ A useful dataset should ideally preserve:
138
+
139
+ - source
140
+ - collection date
141
+ - license
142
+ - transformation history
143
+ - filtering decisions
144
+ - version
145
+ - quality score
146
+
147
+ Without provenance, governance and reproducibility become harder.
148
+
149
+ ---
150
+
151
+ ## 5. Licensing and Usage Rights
152
+
153
+ Before training or redistribution, teams should understand:
154
+
155
+ - source license
156
+ - commercial-use conditions
157
+ - attribution requirements
158
+ - redistribution rights
159
+ - derivative-work rules
160
+ - jurisdictional restrictions
161
+
162
+ ---
163
+
164
+ ## 6. Privacy
165
+
166
+ Potential concerns include:
167
+
168
+ - names
169
+ - emails
170
+ - phone numbers
171
+ - addresses
172
+ - credentials
173
+ - private records
174
+ - personal identifiers
175
+
176
+ Privacy handling may require:
177
+
178
+ - detection
179
+ - redaction
180
+ - masking
181
+ - removal
182
+ - restricted access
183
+
184
+ ---
185
+
186
+ ## 7. Contamination
187
+
188
+ Evaluation contamination can produce misleading benchmark results.
189
+
190
+ Useful checks include:
191
+
192
+ - exact overlap
193
+ - n-gram overlap
194
+ - fuzzy matching
195
+ - code similarity
196
+ - semantic similarity
197
+
198
+ ---
199
+
200
+ ## 8. Diversity
201
+
202
+ A dataset should be checked for distributional concentration.
203
+
204
+ Possible dimensions include:
205
+
206
+ - language
207
+ - topic
208
+ - source
209
+ - geography
210
+ - domain
211
+ - writing style
212
+ - difficulty
213
+ - modality
214
+
215
+ ---
216
+
217
+ ## 9. Freshness
218
+
219
+ Some datasets degrade over time.
220
+
221
+ Freshness matters especially for:
222
+
223
+ - RAG
224
+ - product data
225
+ - software documentation
226
+ - regulations
227
+ - current events
228
+ - enterprise knowledge
229
+ - technical support
230
+
231
+ ---
232
+
233
+ ## 10. Label Quality
234
+
235
+ For supervised datasets, quality depends on labels.
236
+
237
+ Questions include:
238
+
239
+ - Are labels correct?
240
+ - Are instructions clear?
241
+ - Do annotators agree?
242
+ - Is ambiguity documented?
243
+ - Are labels consistent across the dataset?
244
+
245
+ ---
246
+
247
+ ## 11. Task Fit
248
+
249
+ A dataset may be high-quality but poorly matched to the target task.
250
+
251
+ Task fit asks:
252
+
253
+ - Does the dataset represent actual usage?
254
+ - Are difficult examples included?
255
+ - Are edge cases present?
256
+ - Does the language match deployment?
257
+ - Does the domain match deployment?
258
+ - Are the expected capabilities covered?
259
+
260
+ ---
261
+
262
+ # Data Quality by AI Stage
263
+
264
+ ## Pretraining
265
+
266
+ Priorities often include:
267
+
268
+ - scale
269
+ - deduplication
270
+ - quality filtering
271
+ - language balance
272
+ - provenance
273
+ - privacy
274
+ - mixture design
275
+ - contamination control
276
+
277
+ ## Post-Training
278
+
279
+ Priorities often include:
280
+
281
+ - instruction clarity
282
+ - response correctness
283
+ - preference reliability
284
+ - reasoning quality
285
+ - tool-use correctness
286
+ - task diversity
287
+ - difficulty balance
288
+
289
+ ## Evaluation
290
+
291
+ Priorities often include:
292
+
293
+ - clean ground truth
294
+ - decontamination
295
+ - representative difficulty
296
+ - judge reliability
297
+ - coverage
298
+ - freshness
299
+
300
+ ## RAG
301
+
302
+ Priorities often include:
303
+
304
+ - relevance
305
+ - freshness
306
+ - source trust
307
+ - metadata quality
308
+ - chunk quality
309
+ - access control
310
+ - duplication
311
+
312
+ ## Agent Data
313
+
314
+ Priorities often include:
315
+
316
+ - task success
317
+ - tool correctness
318
+ - action validity
319
+ - recovery behavior
320
+ - efficiency
321
+ - safety
322
+
323
+ ---
324
+
325
+ # Readiness Scoring
326
+
327
+ The interactive Space provides a structured readiness score.
328
+
329
+ It evaluates multiple dimensions rather than collapsing everything into one simplistic metric.
330
+
331
+ Example:
332
+
333
+ ```text
334
+ Structure 92
335
+ Content Quality 78
336
+ Provenance 55
337
+ Privacy 84
338
+ Deduplication 61
339
+ Task Fit 88
340
+ --------------------
341
+ Overall Readiness
342
+ ```
343
+
344
+ The final score should always be interpreted with the individual dimensions.
345
+
346
+ ---
347
+
348
+ # Warning Signals
349
+
350
+ A dataset should receive additional review if it has:
351
+
352
+ - unknown source history
353
+ - unclear licensing
354
+ - high duplicate rates
355
+ - benchmark overlap
356
+ - extensive PII
357
+ - missing metadata
358
+ - stale content
359
+ - severe class imbalance
360
+ - uncertain labels
361
+ - insufficient domain coverage
362
+
363
+ ---
364
+
365
+ # Data Quality and Curation
366
+
367
+ Quality assessment and curation should form a loop:
368
+
369
+ ```text
370
+ Assess
371
+ ↓
372
+ Find Weakness
373
+ ↓
374
+ Curate
375
+ ↓
376
+ Re-Assess
377
+ ↓
378
+ Train / Evaluate
379
+ ```
380
+
381
+ This creates a measurable data-centric workflow.
382
+
383
+ ---
384
+
385
+ # Data Quality and Synthetic Data
386
+
387
+ Synthetic data should be assessed for:
388
+
389
+ - correctness
390
+ - diversity
391
+ - duplication
392
+ - difficulty
393
+ - factuality
394
+ - style collapse
395
+ - model artifacts
396
+ - verification success
397
+
398
+ Generation alone does not guarantee useful training data.
399
+
400
+ ---
401
+
402
+ # Data Quality and Enterprise AI
403
+
404
+ Enterprise datasets often introduce additional concerns:
405
+
406
+ - access control
407
+ - confidentiality
408
+ - retention
409
+ - provenance
410
+ - source ownership
411
+ - compliance
412
+ - stale internal knowledge
413
+ - duplicated documents
414
+ - permission boundaries
415
+
416
+ Data quality therefore overlaps with governance.
417
+
418
+ ---
419
+
420
+ # Data Quality and Multimodal AI
421
+
422
+ Multimodal datasets may require additional checks:
423
+
424
+ - image-text alignment
425
+ - audio-text alignment
426
+ - frame quality
427
+ - corrupted files
428
+ - timestamp synchronization
429
+ - sensor calibration
430
+ - missing modalities
431
+ - duplicate media
432
+
433
+ ---
434
+
435
+ # Data Quality and Robotics
436
+
437
+ Robotics datasets may require:
438
+
439
+ - trajectory success labels
440
+ - sensor completeness
441
+ - action-state consistency
442
+ - timestamp alignment
443
+ - calibration
444
+ - environment metadata
445
+ - safety review
446
+ - task coverage
447
+
448
+ ---
449
+
450
+ # Interactive Readiness Check
451
+
452
+ The included `index.html` lets users score a dataset across key dimensions and receive:
453
+
454
+ - an overall readiness score
455
+ - a quality profile
456
+ - highlighted risk areas
457
+ - recommended curation actions
458
+ - a stage-specific interpretation
459
+
460
+ The tool is educational and vendor-neutral.
461
+
462
+ It does not certify legal, regulatory or production readiness.
463
+
464
+ ---
465
+
466
+ # SEO & GEO Topic Map
467
+
468
+ This Space is structured around explicit concepts relevant to search and generative retrieval:
469
+
470
+ - AI data quality
471
+ - dataset quality
472
+ - dataset readiness
473
+ - training data quality
474
+ - post-training data
475
+ - dataset curation
476
+ - data provenance
477
+ - data lineage
478
+ - deduplication
479
+ - data contamination
480
+ - benchmark contamination
481
+ - PII detection
482
+ - dataset licensing
483
+ - task fit
484
+ - label quality
485
+ - synthetic data quality
486
+ - RAG data quality
487
+ - agent data quality
488
+ - multimodal data quality
489
+ - data-centric AI
490
+
491
+ ---
492
+
493
+ # Planned Expansion
494
+
495
+ Future versions may include:
496
+
497
+ - automated dataset checks
498
+ - dataset card parsing
499
+ - richer scoring profiles
500
+ - modality-specific checks
501
+ - licensing metadata checks
502
+ - benchmark contamination workflows
503
+ - downloadable readiness reports
504
+ - open-source integrations
505
+ - community-contributed quality criteria
506
+
507
+ ---
508
+
509
+ # Collaboration & Partnerships
510
+
511
+ **Data Quality is open to collaboration with companies, research teams, universities and open-source projects working on AI datasets and data-centric machine learning.**
512
+
513
+ Relevant areas include:
514
+
515
+ - dataset quality
516
+ - dataset curation
517
+ - filtering
518
+ - deduplication
519
+ - decontamination
520
+ - provenance
521
+ - privacy
522
+ - synthetic data
523
+ - annotation
524
+ - post-training data
525
+ - evaluation data
526
+ - RAG
527
+ - agent trajectories
528
+ - multimodal data
529
+ - enterprise AI data
530
+ - governance
531
+ - data infrastructure
532
+
533
+ Possible collaboration formats include:
534
+
535
+ - dataset quality case studies
536
+ - joint Hugging Face Spaces
537
+ - benchmark projects
538
+ - open-source integrations
539
+ - methodology comparisons
540
+ - technical showcases
541
+ - research collaborations
542
+ - clearly disclosed partnerships and sponsorships
543
+
544
+ ## Collaboration Contact
545
+
546
+ **agenten@magenta.de**
547
+
548
+ ---
549
+
550
+ # Independence
551
+
552
+ **Data Quality is an independent Hugging Face Space.**
553
+
554
+ It is not an official project of Hugging Face or any dataset provider, annotation company, model provider or technology company referenced in future resources.
555
+
556
+ ---
557
+
558
+ # Long-Term Vision
559
+
560
+ The long-term goal of **Data Quality** is to provide a practical reference for one of the most important questions in AI development:
561
+
562
+ > **Is this dataset actually ready to improve the system we are building?**
563
+
564
+ ### Assess. Curate. Validate. Improve.
index.html ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <meta name="description" content="Interactive AI dataset readiness and data quality assessment for training, post-training, RAG and evaluation.">
7
+ <title>Data Quality</title>
8
+ <style>
9
+ :root{
10
+ --bg:#07111e;--panel:#0d1a2f;--line:#27415e;
11
+ --text:#f4f8ff;--muted:#9fb3c7;--cyan:#50ddff;--violet:#a48aff;
12
+ }
13
+ *{box-sizing:border-box}
14
+ body{
15
+ margin:0;
16
+ background:
17
+ radial-gradient(circle at 15% -8%,rgba(80,221,255,.14),transparent 30%),
18
+ radial-gradient(circle at 90% 0,rgba(164,138,255,.12),transparent 28%),
19
+ var(--bg);
20
+ color:var(--text);
21
+ font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
22
+ }
23
+ .wrap{max-width:1120px;margin:auto;padding:0 22px}
24
+ .hero{text-align:center;padding:66px 0 32px}
25
+ .kicker{
26
+ display:inline-block;border:1px solid var(--line);border-radius:999px;padding:7px 12px;
27
+ background:#0a1830;color:var(--cyan);font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.1em
28
+ }
29
+ h1{font-size:clamp(46px,8vw,76px);line-height:1;margin:20px 0 14px;letter-spacing:-.055em}
30
+ .grad{
31
+ background:linear-gradient(90deg,var(--cyan),#dce8ff,var(--violet));
32
+ background-clip:text;-webkit-background-clip:text;color:transparent
33
+ }
34
+ .hero p{max-width:760px;margin:auto;color:var(--muted);font-size:18px}
35
+ .layout{display:grid;grid-template-columns:390px 1fr;gap:16px;padding:18px 0 50px}
36
+ .panel{
37
+ border:1px solid var(--line);border-radius:19px;padding:18px;
38
+ background:linear-gradient(150deg,#10213b,#09172b);
39
+ box-shadow:0 18px 44px rgba(0,0,0,.22)
40
+ }
41
+ h2{font-size:20px;margin:0 0 5px}.sub{color:var(--muted);font-size:12px;margin-bottom:14px}
42
+ label{display:block;font-size:12px;font-weight:800;margin:11px 0 5px}
43
+ select,input[type=range]{width:100%}
44
+ select{
45
+ background:#08172b;color:var(--text);border:1px solid var(--line);
46
+ border-radius:11px;padding:10px 11px;outline:none
47
+ }
48
+ .row{
49
+ border:1px solid #223b58;background:#09182d;border-radius:11px;padding:10px;margin:9px 0
50
+ }
51
+ .rowtop{display:flex;justify-content:space-between;gap:12px;font-size:11px;font-weight:800}
52
+ .val{color:var(--cyan)}
53
+ input[type=range]{accent-color:#6e7dff}
54
+ button{
55
+ width:100%;border:0;border-radius:11px;padding:11px 12px;color:white;font-weight:850;
56
+ background:linear-gradient(90deg,#3188ff,#775df0);cursor:pointer;margin-top:13px
57
+ }
58
+ .scorebox{text-align:center;border:1px solid #284662;background:#08172c;border-radius:16px;padding:20px}
59
+ .score{font-size:72px;line-height:1;font-weight:950;letter-spacing:-.06em}
60
+ .status{font-size:13px;color:var(--muted);margin-top:5px}
61
+ .profile{margin-top:15px}
62
+ .metric{margin:11px 0}
63
+ .metricTop{display:flex;justify-content:space-between;font-size:11px;font-weight:800}
64
+ .bar{height:7px;background:#182a43;border-radius:999px;overflow:hidden;margin-top:5px}
65
+ .fill{height:100%;background:linear-gradient(90deg,var(--cyan),var(--violet))}
66
+ .risks{margin-top:18px}
67
+ .risk{border-top:1px solid var(--line);padding:10px 0}
68
+ .risk b{display:block;font-size:12px}.risk span{font-size:11px;color:var(--muted)}
69
+ .badge{
70
+ display:inline-block;border:1px solid #31516f;border-radius:999px;padding:5px 8px;
71
+ font-size:10px;color:#c7d8e7;background:#0d2038;margin-bottom:10px
72
+ }
73
+ .note{margin-top:14px;font-size:11px;color:var(--muted)}
74
+ footer{border-top:1px solid var(--line);padding:28px 0 45px;color:var(--muted);font-size:13px}
75
+ footer strong{color:var(--text)}
76
+ @media(max-width:860px){.layout{grid-template-columns:1fr}}
77
+ </style>
78
+ </head>
79
+ <body>
80
+ <header class="hero">
81
+ <div class="wrap">
82
+ <span class="kicker">Dataset Readiness · Data-Centric AI</span>
83
+ <h1>Data <span class="grad">Quality</span></h1>
84
+ <p>Assess whether a dataset is ready for training, post-training, evaluation, RAG or agentic AI.</p>
85
+ </div>
86
+ </header>
87
+
88
+ <main class="wrap">
89
+ <section class="layout">
90
+ <aside class="panel">
91
+ <h2>Dataset profile</h2>
92
+ <div class="sub">Choose the AI stage and score the dataset.</div>
93
+
94
+ <label for="stage">Primary use</label>
95
+ <select id="stage">
96
+ <option value="pretraining">Pretraining</option>
97
+ <option value="posttraining">Post-Training</option>
98
+ <option value="evaluation">Evaluation</option>
99
+ <option value="rag">RAG / Retrieval</option>
100
+ <option value="agents">Agent Data</option>
101
+ </select>
102
+
103
+ <div id="sliders"></div>
104
+ <button id="assess">Assess readiness</button>
105
+ </aside>
106
+
107
+ <section class="panel">
108
+ <span class="badge" id="stageBadge">Pretraining</span>
109
+ <div class="scorebox">
110
+ <div class="score" id="overall">0</div>
111
+ <div class="status" id="status"></div>
112
+ </div>
113
+
114
+ <div class="profile" id="profile"></div>
115
+
116
+ <div class="risks">
117
+ <h2 style="font-size:18px">Priority actions</h2>
118
+ <div class="sub">The weakest dimensions should be addressed first.</div>
119
+ <div id="actions"></div>
120
+ </div>
121
+
122
+ <div class="note">
123
+ Educational assessment only. It does not certify legal, regulatory, security or production readiness.
124
+ </div>
125
+ </section>
126
+ </section>
127
+ </main>
128
+
129
+ <footer>
130
+ <div class="wrap">
131
+ <strong>Data Quality</strong> — an independent Hugging Face Space for dataset readiness.<br>
132
+ Collaboration and partnerships: <strong>agenten@magenta.de</strong>
133
+ </div>
134
+ </footer>
135
+
136
+ <script>
137
+ const dims=[
138
+ ["Structure","Schema consistency, parseability and missing fields."],
139
+ ["Content quality","Coherence, usefulness and low-noise content."],
140
+ ["Deduplication","Control of exact, near and semantic duplicates."],
141
+ ["Provenance","Traceable source, transformation history and versioning."],
142
+ ["Privacy","PII awareness and appropriate handling."],
143
+ ["Contamination","Protection against benchmark or evaluation leakage."],
144
+ ["Diversity","Coverage across relevant domains, sources and difficulty."],
145
+ ["Task fit","How closely the dataset matches the target use case."]
146
+ ];
147
+
148
+ const weights={
149
+ pretraining:[1.0,1.35,1.2,1.0,1.0,1.05,1.25,1.15],
150
+ posttraining:[1.0,1.5,1.0,0.9,1.0,1.05,1.25,1.5],
151
+ evaluation:[1.0,1.3,0.9,1.1,0.9,1.6,1.25,1.55],
152
+ rag:[1.0,1.2,1.0,1.35,1.1,0.8,1.0,1.55],
153
+ agents:[1.0,1.4,0.9,1.0,1.1,0.9,1.25,1.6]
154
+ };
155
+
156
+ const labels={
157
+ pretraining:"Pretraining",
158
+ posttraining:"Post-Training",
159
+ evaluation:"Evaluation",
160
+ rag:"RAG / Retrieval",
161
+ agents:"Agent Data"
162
+ };
163
+
164
+ const actionsMap={
165
+ "Structure":"Normalize schema, repair malformed records and validate required fields.",
166
+ "Content quality":"Add heuristic and model-based quality scoring, then review low-scoring examples.",
167
+ "Deduplication":"Run exact, near-duplicate and—if necessary—semantic deduplication.",
168
+ "Provenance":"Track source, license, transformations, version and filtering decisions.",
169
+ "Privacy":"Scan for PII and define redaction, removal or access-control policies.",
170
+ "Contamination":"Check overlap with evaluation data using exact and fuzzy/semantic methods.",
171
+ "Diversity":"Measure source/domain coverage and rebalance underrepresented areas.",
172
+ "Task fit":"Compare the dataset distribution with real target tasks and deployment conditions."
173
+ };
174
+
175
+ const sliders=document.getElementById("sliders");
176
+ dims.forEach(([name,desc],i)=>{
177
+ const wrap=document.createElement("div");
178
+ wrap.className="row";
179
+ wrap.innerHTML=`
180
+ <div class="rowtop"><span>${name}</span><span class="val" id="v${i}">75</span></div>
181
+ <input id="r${i}" type="range" min="0" max="100" value="75">
182
+ <div style="font-size:10px;color:#9fb3c7">${desc}</div>`;
183
+ sliders.appendChild(wrap);
184
+ wrap.querySelector("input").addEventListener("input",e=>{
185
+ document.getElementById("v"+i).textContent=e.target.value;
186
+ assess();
187
+ });
188
+ });
189
+
190
+ function values(){return dims.map((_,i)=>+document.getElementById("r"+i).value)}
191
+
192
+ function assess(){
193
+ const stage=document.getElementById("stage").value;
194
+ const vals=values();
195
+ const w=weights[stage];
196
+ const total=vals.reduce((s,v,i)=>s+v*w[i],0)/w.reduce((a,b)=>a+b,0);
197
+
198
+ document.getElementById("overall").textContent=Math.round(total);
199
+ document.getElementById("stageBadge").textContent=labels[stage];
200
+
201
+ let status="Needs significant curation before use.";
202
+ if(total>=85) status="Strong readiness profile — validate remaining risks before use.";
203
+ else if(total>=70) status="Promising, but several curation checks still matter.";
204
+ else if(total>=55) status="Moderate readiness — prioritize the weakest dimensions.";
205
+ document.getElementById("status").textContent=status;
206
+
207
+ document.getElementById("profile").innerHTML=dims.map(([name],i)=>`
208
+ <div class="metric">
209
+ <div class="metricTop"><span>${name}</span><span>${vals[i]}</span></div>
210
+ <div class="bar"><div class="fill" style="width:${vals[i]}%"></div></div>
211
+ </div>`).join("");
212
+
213
+ const ranked=dims.map(([name],i)=>({name,v:vals[i]})).sort((a,b)=>a.v-b.v).slice(0,3);
214
+ document.getElementById("actions").innerHTML=ranked.map(x=>`
215
+ <div class="risk"><b>${x.name} · ${x.v}/100</b><span>${actionsMap[x.name]}</span></div>
216
+ `).join("");
217
+ }
218
+
219
+ document.getElementById("stage").addEventListener("change",assess);
220
+ document.getElementById("assess").addEventListener("click",assess);
221
+ assess();
222
+ </script>
223
+ </body>
224
+ </html>