aluha501 commited on
Commit
1b9a710
·
verified ·
1 Parent(s): f8df8f5

Release v0.9.0: Modern AI & Systems (2020-2026) multi-task dataset

Browse files
Files changed (26) hide show
  1. README.md +174 -464
  2. releases/v0.8.0-rag-quality/corpus_rag_chunks_multisource_v0.1/test.parquet +3 -0
  3. releases/v0.8.0-rag-quality/corpus_rag_chunks_multisource_v0.1/train.parquet +3 -0
  4. releases/v0.8.0-rag-quality/corpus_rag_chunks_multisource_v0.1/validation.parquet +3 -0
  5. releases/v0.8.0-rag-quality/corpus_rag_quality_multisource_v0.1/test.parquet +3 -0
  6. releases/v0.8.0-rag-quality/corpus_rag_quality_multisource_v0.1/train.parquet +3 -0
  7. releases/v0.8.0-rag-quality/corpus_rag_quality_multisource_v0.1/validation.parquet +3 -0
  8. releases/v0.8.0-rag-quality/manifest.json +0 -0
  9. test.parquet +2 -2
  10. train.parquet +2 -2
  11. validation.parquet +2 -2
  12. views/corpus_rag_chunks_multisource_v0.1/test.parquet +3 -0
  13. views/corpus_rag_chunks_multisource_v0.1/train.parquet +3 -0
  14. views/corpus_rag_chunks_multisource_v0.1/validation.parquet +3 -0
  15. views/corpus_rag_quality_multisource_v0.1/test.parquet +3 -0
  16. views/corpus_rag_quality_multisource_v0.1/train.parquet +3 -0
  17. views/corpus_rag_quality_multisource_v0.1/validation.parquet +3 -0
  18. views/issue_resolution_multisource_v0.1/test.parquet +3 -0
  19. views/issue_resolution_multisource_v0.1/train.parquet +3 -0
  20. views/issue_resolution_multisource_v0.1/validation.parquet +3 -0
  21. views/preference_dpo_multisource_v0.1/test.parquet +3 -0
  22. views/preference_dpo_multisource_v0.1/train.parquet +3 -0
  23. views/preference_dpo_multisource_v0.1/validation.parquet +3 -0
  24. views/reranking_listwise_multisource_v0.1/test.parquet +3 -0
  25. views/reranking_listwise_multisource_v0.1/train.parquet +3 -0
  26. views/reranking_listwise_multisource_v0.1/validation.parquet +3 -0
README.md CHANGED
@@ -1,464 +1,174 @@
1
- ---
2
- language:
3
- - en
4
- license: other
5
- license_name: mixed-per-record-community-content
6
- license_link: https://creativecommons.org/licenses/
7
- pretty_name: Community QA Lab v0.7.0 Multisource RAG Corpus
8
- size_categories:
9
- - 10K<n<100K
10
- tags:
11
- - datasets
12
- - text
13
- - community-content
14
- - retrieval
15
- - rag
16
- - answer-reranking
17
- configs:
18
- - config_name: default
19
- default: true
20
- data_files:
21
- - split: train
22
- path: train.parquet
23
- - split: validation
24
- path: validation.parquet
25
- - split: test
26
- path: test.parquet
27
- - config_name: legacy_default_v0.4.0
28
- data_files:
29
- - split: train
30
- path: releases/v0.4.0/train.parquet
31
- - split: validation
32
- path: releases/v0.4.0/validation.parquet
33
- - split: test
34
- path: releases/v0.4.0/test.parquet
35
- - config_name: technical_qa
36
- data_files:
37
- - split: train
38
- path: technical_qa/v0.5.0/train.parquet
39
- - split: validation
40
- path: technical_qa/v0.5.0/validation.parquet
41
- - split: test
42
- path: technical_qa/v0.5.0/test.parquet
43
- - config_name: corpus_rag_multisource_merged_v0.1
44
- data_files:
45
- - split: train
46
- path: v0.7.0-multisource-merged/views/corpus_rag_multisource_merged_v0.1/train.parquet
47
- - split: validation
48
- path: v0.7.0-multisource-merged/views/corpus_rag_multisource_merged_v0.1/validation.parquet
49
- - split: test
50
- path: v0.7.0-multisource-merged/views/corpus_rag_multisource_merged_v0.1/test.parquet
51
- - config_name: preference_dpo_multisource_merged_v0.1
52
- data_files:
53
- - split: train
54
- path: v0.7.0-multisource-merged/views/preference_dpo_multisource_merged_v0.1/train.parquet
55
- - split: validation
56
- path: v0.7.0-multisource-merged/views/preference_dpo_multisource_merged_v0.1/validation.parquet
57
- - split: test
58
- path: v0.7.0-multisource-merged/views/preference_dpo_multisource_merged_v0.1/test.parquet
59
- - config_name: reranking_listwise_multisource_merged_v0.1
60
- data_files:
61
- - split: train
62
- path: v0.7.0-multisource-merged/views/reranking_listwise_multisource_merged_v0.1/train.parquet
63
- - split: validation
64
- path: v0.7.0-multisource-merged/views/reranking_listwise_multisource_merged_v0.1/validation.parquet
65
- - split: test
66
- path: v0.7.0-multisource-merged/views/reranking_listwise_multisource_merged_v0.1/test.parquet
67
- - config_name: issue_resolution_multisource_merged_v0.1
68
- data_files:
69
- - split: train
70
- path: v0.7.0-multisource-merged/views/issue_resolution_multisource_merged_v0.1/train.parquet
71
- - split: validation
72
- path: v0.7.0-multisource-merged/views/issue_resolution_multisource_merged_v0.1/validation.parquet
73
- ---
74
-
75
- # Community QA Lab
76
-
77
- Community QA Lab is a reproducible, multisource community-content corpus. Its
78
- primary use is NLP/RAG over questions, answers, discussions, issues and related
79
- technical problem-solving content from public platforms. The default dataset
80
- at this repository root is the merged v0.7.0 RAG corpus.
81
-
82
- The release also contains optional derived views for ranking experiments. Those
83
- views are not the definition of the corpus, and their interaction fields are
84
- not factual ground-truth labels.
85
-
86
- ## Public dataset
87
-
88
- The published multisource bundle contains:
89
-
90
- - `corpus_rag_multisource_merged_v0.1`: 39,215 licensed post documents;
91
- - `reranking_listwise_multisource_merged_v0.1`: 4,550 question groups;
92
- - `preference_dpo_multisource_merged_v0.1`: 7,453 derived weak-preference pairs;
93
- - `issue_resolution_multisource_merged_v0.1`: 1,823 observed Issue/PR records.
94
-
95
- The RAG view is the primary content corpus. Each document keeps question
96
- context, post text and provenance metadata. `accepted`, `has_explicit_answer`
97
- and lifecycle fields describe platform observations; they do not mean that the
98
- text has been verified as factually correct. Use `document_text` for retrieval
99
- input and use provenance fields to identify the source.
100
-
101
- ```python
102
- from datasets import load_dataset
103
-
104
- rag = load_dataset("aluha501/community-qa-lab")
105
- ```
106
-
107
- This one-argument loader returns the merged RAG corpus (`default`): 39,215
108
- licensed documents across the `train`, `validation` and `test` splits. The
109
- named ranking and lifecycle views remain available as optional versioned
110
- artifacts, but they are not required for ordinary NLP/RAG use.
111
-
112
- ### Historical compatibility configurations
113
-
114
- The immutable v0.4.0 files remain available under the explicit
115
- `legacy_default_v0.4.0` configuration. The v0.5.0 technical QA files remain
116
- available through the opt-in `technical_qa` config. This keeps the historical
117
- Parquet artifacts recoverable without making them the default corpus.
118
-
119
- - one simple current corpus configuration, `default`, plus opt-in historical/configured views;
120
- - three Parquet splits: `train`, `validation`, `test`;
121
- - 10,206 answer rows from 4,039 question groups;
122
- - AI, Data Science, and Cross Validated (`stats.stackexchange.com`);
123
- - release date: `2026-08-10`, from an archived API snapshot completed at
124
- `2026-08-09T20:59:37.734430Z`;
125
- - 11 stable columns, including per-answer attribution and update time.
126
-
127
- `technical_qa` uses the same 11 columns but is a separate domain benchmark:
128
-
129
- - 4,924 answer rows from 1,880 question groups;
130
- - Software Engineering, Code Review, Quantum Computing, Scientific Computing,
131
- and Theoretical Computer Science;
132
- - strict temporal split: train through 2022, validation in 2023, test from
133
- 2024 onward;
134
- - 342 test groups, all refreshed from an archived API snapshot completed at
135
- `2026-08-10T02:59:33.978680Z`.
136
-
137
- The release retains only threads with at least two candidate answers and
138
- exactly one accepted answer. It uses a strict question-level temporal split:
139
- train through 2020-12-31, validation during 2021, and test from 2022 onward.
140
- The resulting test set has 719 groups, exceeding the release gate of 500.
141
- These are compatibility/ranking configurations, not replacements for the
142
- multisource content corpus. Group rows by `question_id` before computing any
143
- ranking metrics.
144
-
145
- ```python
146
- from datasets import load_dataset
147
-
148
- dataset = load_dataset("aluha501/community-qa-lab")
149
- technical = load_dataset("aluha501/community-qa-lab", "technical_qa")
150
- ```
151
-
152
- For the legacy flat configurations, a ranker should use `question` and
153
- `answer` as input. Use `accepted`, `vote_score`, and `disagreement_type` only
154
- for evaluation or analysis. For v0.7 RAG, use only the text fields as model
155
- input; IDs, provenance and interaction fields are metadata.
156
-
157
- For explicit training and listwise evaluation contracts, build the separate
158
- local derived views described in [`docs/ranking_views_v0.1.md`](docs/ranking_views_v0.1.md):
159
-
160
- ```powershell
161
- python scripts/build_ranking_views.py `
162
- --input-dir data/processed/v0.5.0/technical_qa `
163
- --output-dir data/derived/ranking_views/v0.1/technical_qa
164
- ```
165
-
166
- This creates `ranking_grouped_v0.1` and `ranking_pairs_v0.1` outputs without
167
- modifying the public release or publishing remote artifacts.
168
-
169
- ## Expanded Community QA v0.6.0 (local-first)
170
-
171
- The experimental expanded config
172
- [`configs/dataset/technical_qa_v0.6.0_expanded.yaml`](configs/dataset/technical_qa_v0.6.0_expanded.yaml)
173
- covers 38 technical communities. Its API seed collector is deterministic and
174
- stratified across train (through 2022), validation (2023), and test (from
175
- 2024). The default pilot is one page per tag for `cs`, `math`, and `devops`;
176
- the full profile is intentionally a separate command. Responses are cached
177
- with request metadata and SHA-256 hashes, and a cache rerun must make zero
178
- network requests. There is no HTML fallback.
179
-
180
- Legacy roots are ID sources only. API responses supply all released text,
181
- attribution, license and metadata; `scraped_cv_legacy` is not automatically
182
- included. Comments are deferred. Accepted status is an author-interaction
183
- weak label and votes are community-interaction diagnostics, never factual
184
- truth.
185
-
186
- Build the local views after a completed API snapshot:
187
-
188
- ```powershell
189
- python -m src.community_qa_lab.cli data api-seed `
190
- --config configs/dataset/technical_qa_v0.6.0_expanded.yaml `
191
- --output-dir data/raw/api/v0.6.0-expanded-seeds-pilot `
192
- --profile pilot
193
-
194
- python scripts/build_expanded_views.py `
195
- --release-dir data/processed/v0.6.0-expanded `
196
- --config configs/dataset/technical_qa_v0.6.0_expanded.yaml `
197
- --cache-dir data/raw/api/v0.6.0-expanded `
198
- --output-dir data/derived/v0.6.0-expanded
199
- ```
200
-
201
- This produces `preference_dpo`, `reranking_listwise`, and `corpus_rag` as
202
- local-only Parquet views. See
203
- [`docs/releases/v0.6.0-expanded-local.md`](docs/releases/v0.6.0-expanded-local.md)
204
- for the complete audit, enrichment, validation and safe staging workflow.
205
-
206
- ## Multisource v0.7.0 (experimental; merged derivative published)
207
-
208
- The v0.7 derivative is a read-only multisource content corpus. It includes
209
- Stack Exchange text, GitHub Discussions/Issues/Pull Requests, and a small set
210
- of GitLab retrieval/resolution records from explicitly configured sources.
211
- The primary release view is `corpus_rag_multisource_merged_v0.1`, which contains
212
- licensed documents for retrieval; it is not a factuality benchmark.
213
-
214
- The implementation workflow is documented in
215
- [`docs/releases/v0.7.0-multisource-local.md`](docs/releases/v0.7.0-multisource-local.md)
216
- and produces the content corpus plus optional views for marked-answer
217
- preference pairs, listwise Discussion groups and issue-resolution metadata. It
218
- does not change the v0.4.0/v0.5.0/v0.6.0 artifacts.
219
-
220
- The validated merged derivative is now published in the existing
221
- [`aluha501/community-qa-lab`](https://huggingface.co/datasets/aluha501/community-qa-lab)
222
- dataset under four opt-in configurations. The publication record and exact
223
- Hub commit are in
224
- [`docs/releases/v0.7.0-multisource-merged.md`](docs/releases/v0.7.0-multisource-merged.md).
225
-
226
- The DPO/listwise fields are optional weak supervision derived from platform
227
- interaction (`accepted`/marked answer), not ground-truth correctness labels.
228
- `issue_resolution` records observed lifecycle/evidence. If you want a normal
229
- NLP/RAG corpus, load only `corpus_rag_multisource_merged_v0.1` and use
230
- `document_text`; the other fields are provenance or diagnostics.
231
-
232
- After the bounded pilot passed, the larger local sample uses
233
- `configs/dataset/github_v0.7.0_multisource_large.yaml` with six repositories
234
- and 25 records per source kind/repository. It remains experimental and is
235
- kept separate from the small pilot artifacts.
236
-
237
- The extended local sample uses
238
- `configs/dataset/github_v0.7.0_multisource_extended.yaml` with up to 100
239
- Issues and 100 Discussions per repository. The verified snapshot contains
240
- 904 threads, 3,537 canonical posts and 2,999 RAG documents; it remains a
241
- local experimental corpus, not a temporally balanced benchmark.
242
-
243
- The current scale snapshot uses
244
- `configs/dataset/github_v0.7.0_multisource_scale.yaml` with 23 explicit
245
- repositories. It contains 3,018 threads, 12,449 canonical posts, 9,848 RAG
246
- documents, 253 listwise groups and 1,047 preference pairs. See the
247
- [`v0.7.0 scale EDA report`](reports/local/v0.7.0-multisource-scale/eda_summary.md)
248
- and [`local-only release note`](docs/releases/v0.7.0-multisource-scale-local.md).
249
-
250
- ## Build and test
251
-
252
- Install development dependencies and run the tests:
253
-
254
- ```powershell
255
- python -m pip install -e ".[dev]"
256
- python -m pytest -q
257
- ```
258
-
259
- Create or resume the attribution-complete API snapshot. Legacy crawl files are
260
- used only to discover candidate question IDs; their HTML text is never copied
261
- into the public rows. Every response is checksummed and cached per request.
262
-
263
- ```powershell
264
- python -m src.community_qa_lab.cli data api-fetch `
265
- --config configs/dataset/stackexchange_api_v0.4.0.yaml `
266
- --base-release data/processed/v0.2.0 `
267
- --seed-root ai.stackexchange.com=../dataset/scraped_ai `
268
- --seed-root datascience.stackexchange.com=../dataset/scraped_ds `
269
- --seed-root stats.stackexchange.com=../dataset/scraped_cv `
270
- --seed-root stats.stackexchange.com=../dataset/expanded_v5/stats `
271
- --cache-dir data/cache/v0.4.0
272
-
273
- python -m src.community_qa_lab.cli data api-build `
274
- --config configs/dataset/stackexchange_api_v0.4.0.yaml `
275
- --cache-dir data/cache/v0.4.0 `
276
- --output-dir data/processed/v0.4.0
277
-
278
- python -m src.community_qa_lab.cli data verify `
279
- --output-dir data/processed/v0.4.0
280
- ```
281
-
282
- An API key is optional. If needed, set `STACKEXCHANGE_KEY` in the process
283
- environment; the key is never written to a cache or manifest. An interrupted
284
- fetch resumes from already-validated request files.
285
-
286
- Run a CPU baseline directly on the flat Parquet split:
287
-
288
- ```powershell
289
- python -m src.community_qa_lab.cli benchmark run `
290
- --input data/processed/v0.4.0/test.parquet `
291
- --ranker bm25 `
292
- --output artifacts/bm25_test.jsonl
293
-
294
- python -m src.community_qa_lab.cli benchmark evaluate `
295
- --input data/processed/v0.4.0/test.parquet `
296
- --predictions artifacts/bm25_test.jsonl `
297
- --output artifacts/bm25_test_report.json
298
- ```
299
-
300
- ## Repository layout
301
-
302
- ```text
303
- src/community_qa_lab/ release builder, ranking and evaluation code
304
- apps/qa_demo/ optional FastAPI and Next.js demonstration app
305
- configs/ versioned dataset and benchmark configuration
306
- tests/ unit tests and a small official-format fixture
307
- data/raw/ ignored local source dumps
308
- data/processed/ ignored generated release artifacts
309
- data/cache/ ignored resumable API response snapshots
310
- benchmarks/ versioned predictions, metrics and run manifests
311
- reports/ deterministic release-quality profiles
312
- docs/ dataset, benchmark and licensing documentation
313
- ```
314
-
315
- The builder archives the exact v0.4.0 API response snapshot as a compressed
316
- sidecar. Rich source records are provenance artifacts; the viewer-facing
317
- dataset still exposes only the stable 11-column table.
318
-
319
- ## Technical QA config v0.5.0
320
-
321
- v0.5.0 deliberately does not mix general technical communities into the
322
- ML-focused `default`. It adds the separate `technical_qa` config using crawler
323
- checkpoints only as a question-ID inventory; every published field comes from
324
- the archived Stack Exchange API v2.3 responses.
325
-
326
- ```powershell
327
- python -m src.community_qa_lab.cli data api-fetch `
328
- --config configs/dataset/technical_qa_v0.5.0.yaml `
329
- --seed-root softwareengineering.stackexchange.com=../dataset/expanded_v5/softwareengineering_stackexchange_com `
330
- --seed-root scicomp.stackexchange.com=../dataset/expanded_v5/scicomp_stackexchange_com `
331
- --seed-root quantumcomputing.stackexchange.com=../dataset/expanded_v5/quantumcomputing_stackexchange_com `
332
- --seed-root codereview.stackexchange.com=../dataset/expanded_v5/codereview_stackexchange_com `
333
- --seed-root cstheory.stackexchange.com=../dataset/expanded_v5/cstheory_stackexchange_com `
334
- --cache-dir data/raw/api/v0.5.0-technical-qa
335
-
336
- python -m src.community_qa_lab.cli data api-build `
337
- --config configs/dataset/technical_qa_v0.5.0.yaml `
338
- --cache-dir data/raw/api/v0.5.0-technical-qa `
339
- --output-dir data/processed/v0.5.0/technical_qa
340
- ```
341
-
342
- The released config has 1,286/252/342 question groups and 3,294/641/989
343
- answer rows in train/validation/test. On test, answer length reaches
344
- Accepted@1 `0.5526`, BM25 `0.5205`, BGE-small `0.4357`, and the cross-encoder
345
- `0.3743`. The semantic models significantly trail BM25 on accepted-answer
346
- ranking under paired bootstrap, making domain shift and weak-label bias part
347
- of the benchmark finding. See `docs/releases/v0.5.0.md` for exact hashes,
348
- site counts, commands and limitations.
349
-
350
- ## Scope and responsibility
351
-
352
- The current release covers `ai.stackexchange.com`,
353
- `datascience.stackexchange.com`, and `stats.stackexchange.com`. Source rows
354
- retain their URL, author and per-record license. The seed list is intentionally
355
- documented as seed-based rather than an exhaustive crawl. See
356
- `docs/dataset_card.md` for the complete schema, provenance, limitations and
357
- responsible-use notes.
358
-
359
- ## Base-data and benchmark release v0.4.0
360
-
361
- v0.4.0 expands the ML-focused benchmark while preserving the 11-column schema.
362
- It pins the two pretrained model revisions, batches CPU inference, reports
363
- 10,000-sample question-level bootstrap intervals, and publishes paired model
364
- comparisons plus a deterministic dataset-quality profile.
365
-
366
- ```powershell
367
- python scripts/build_benchmark_release.py `
368
- --dataset-dir data/processed/v0.4.0 `
369
- --output-dir benchmarks/answer_reranking/v0.4.0 `
370
- --device cpu `
371
- --benchmark-version v0.4.0
372
-
373
- python scripts/build_dataset_profile.py `
374
- --dataset-dir data/processed/v0.4.0 `
375
- --json-output reports/v0.4.0/dataset_quality.json `
376
- --markdown-output reports/v0.4.0/dataset_quality.md
377
- ```
378
-
379
- On test, answer length reaches Accepted@1 `0.6064`, BM25 `0.5925`, BGE-small
380
- `0.5647`, and the cross-encoder `0.5661`. The pretrained models do not
381
- significantly outperform BM25; this negative result and the strong length
382
- baseline are part of the benchmark finding, not hidden release failures.
383
-
384
- ## Benchmark release v0.2.1
385
-
386
- `v0.2.1` adds reproducible benchmark artifacts without changing the v0.2.0
387
- Parquet files. It runs random, answer-length, BM25, BGE-small and a pretrained
388
- cross-encoder on validation and test, with per-site, disagreement and
389
- answer-length-spread diagnostics.
390
-
391
- ```powershell
392
- python scripts/build_benchmark_release.py `
393
- --dataset-dir data/processed/v0.2.0 `
394
- --output-dir benchmarks/answer_reranking/v0.2.1 `
395
- --device cpu
396
- ```
397
-
398
- See `benchmarks/answer_reranking/v0.2.1/README.md` for scores, immutable model
399
- revisions, run manifests and paired bootstrap comparisons.
400
-
401
- ## Audit supplement v0.3.0
402
-
403
- `v0.3.0` added a separate, evaluation-only Hugging Face configuration:
404
- `audit_v0_3_0`. It contains one audit row for each of the 290 candidates in
405
- the immutable v0.2.0 test split. It remains available for historical
406
- reproducibility, but it is not joinable to the current v0.4.0 `default` test.
407
-
408
- The labels come from a blinded, **model-assisted manual audit**, not from
409
- Stack Exchange vote or acceptance information. They provide a preferred-answer
410
- signal for 122 of 127 question groups; four groups have no preferred answer
411
- and one is marked insufficient evidence. They are non-independent of a model
412
- assistant and must never be used to tune a model on this public test set.
413
-
414
- ```python
415
- from datasets import load_dataset
416
-
417
- audit = load_dataset("aluha501/community-qa-lab", "audit_v0_3_0", split="test")
418
- ```
419
-
420
- Validate a local copy and add audit metrics to already-produced predictions:
421
-
422
- ```powershell
423
- python -m src.community_qa_lab.cli audit validate `
424
- --base-test data/processed/v0.2.0/test.parquet `
425
- --audit-input audits/v0.3.0/test_answer_audit.parquet `
426
- --manifest audits/v0.3.0/manifest.json
427
-
428
- python -m src.community_qa_lab.cli benchmark evaluate `
429
- --input data/processed/v0.2.0/test.parquet `
430
- --predictions benchmarks/answer_reranking/v0.2.1/bm25_test_predictions.jsonl `
431
- --audit-input audits/v0.3.0/test_answer_audit.parquet `
432
- --output artifacts/bm25_test_with_audit.json
433
- ```
434
-
435
- Read `docs/audit_protocol_v0.3.0.md` before using these labels. The audit
436
- table is joinable only by `(question_id, answer_id)`; it is not a replacement
437
- for accepted status or vote score.
438
-
439
- ## Audit quality revision v0.3.1
440
-
441
- `v0.3.1` adds `audit_v0_3_1` without replacing the frozen preferences in
442
- `audit_v0_3_0`. It is a transparent post-unblind quality
443
- revision: all 122 preferred-answer choices are identical to v0.3.0, while the
444
- 290 candidate assessments now have candidate-specific rationales and more
445
- conservative factuality labels.
446
-
447
- - all 262 text-only rows use `factuality=not_verifiable`;
448
- - only the 17 rows with recorded external sources retain supported/partially
449
- supported factuality judgments;
450
- - 290/290 rationales are distinct, with no legacy generated prefix;
451
- - no assessment field deterministically encodes `is_preferred`;
452
- - the five immutable v0.2.1 prediction files were re-scored without model
453
- tuning or rerunning inference.
454
-
455
- ```python
456
- from datasets import load_dataset
457
-
458
- audit = load_dataset("aluha501/community-qa-lab", "audit_v0_3_1", split="test")
459
- ```
460
-
461
- This is not a fresh blinded or independent review. Use v0.3.1 in preference
462
- to v0.3.0 for candidate-level analysis, and read
463
- `docs/audit_protocol_v0.3.1.md` before interpreting its fields. Both audit
464
- configs remain tied exclusively to v0.2.0.
 
1
+ ---
2
+ configs:
3
+ - config_name: default
4
+ default: true
5
+ data_files:
6
+ - split: train
7
+ path: train.parquet
8
+ - split: validation
9
+ path: validation.parquet
10
+ - split: test
11
+ path: test.parquet
12
+ - config_name: corpus_rag_chunks_multisource_v0.1
13
+ data_files:
14
+ - split: train
15
+ path: views/corpus_rag_chunks_multisource_v0.1/train.parquet
16
+ - split: validation
17
+ path: views/corpus_rag_chunks_multisource_v0.1/validation.parquet
18
+ - split: test
19
+ path: views/corpus_rag_chunks_multisource_v0.1/test.parquet
20
+ - config_name: corpus_rag_quality_multisource_v0.1
21
+ data_files:
22
+ - split: train
23
+ path: views/corpus_rag_quality_multisource_v0.1/train.parquet
24
+ - split: validation
25
+ path: views/corpus_rag_quality_multisource_v0.1/validation.parquet
26
+ - split: test
27
+ path: views/corpus_rag_quality_multisource_v0.1/test.parquet
28
+ - config_name: issue_resolution_multisource_v0.1
29
+ data_files:
30
+ - split: train
31
+ path: views/issue_resolution_multisource_v0.1/train.parquet
32
+ - split: validation
33
+ path: views/issue_resolution_multisource_v0.1/validation.parquet
34
+ - split: test
35
+ path: views/issue_resolution_multisource_v0.1/test.parquet
36
+ - config_name: preference_dpo_multisource_v0.1
37
+ data_files:
38
+ - split: train
39
+ path: views/preference_dpo_multisource_v0.1/train.parquet
40
+ - split: validation
41
+ path: views/preference_dpo_multisource_v0.1/validation.parquet
42
+ - split: test
43
+ path: views/preference_dpo_multisource_v0.1/test.parquet
44
+ - config_name: reranking_listwise_multisource_v0.1
45
+ data_files:
46
+ - split: train
47
+ path: views/reranking_listwise_multisource_v0.1/train.parquet
48
+ - split: validation
49
+ path: views/reranking_listwise_multisource_v0.1/validation.parquet
50
+ - split: test
51
+ path: views/reranking_listwise_multisource_v0.1/test.parquet
52
+ - config_name: v0.8.0_rag_quality
53
+ data_files:
54
+ - split: train
55
+ path: releases/v0.8.0-rag-quality/corpus_rag_chunks_multisource_v0.1/train.parquet
56
+ - split: validation
57
+ path: releases/v0.8.0-rag-quality/corpus_rag_chunks_multisource_v0.1/validation.parquet
58
+ - split: test
59
+ path: releases/v0.8.0-rag-quality/corpus_rag_chunks_multisource_v0.1/test.parquet
60
+ license: apache-2.0
61
+ task_categories:
62
+ - question-answering
63
+ - sentence-similarity
64
+ - text-generation
65
+ language:
66
+ - en
67
+ tags:
68
+ - rag
69
+ - code
70
+ - modern-ai
71
+ - dpo
72
+ - preference
73
+ - issue-resolution
74
+ - systems
75
+ - llm-engineering
76
+ size_categories:
77
+ - 10K<n<100K
78
+ ---
79
+
80
+ # Community QA Lab — Modern AI & Systems (v0.9.0 & v0.8.0)
81
+
82
+ A high-signal, multi-task dataset collected from **24 leading open-source AI, LLM runtime, agent, and modern systems repositories** spanning **2020 through 2026**.
83
+
84
+ This release transitions beyond legacy programming FAQ dumps to focus exclusively on contemporary engineering challenges: **quantization kernels, FSDP/distributed training, CUDA OOM troubleshooting, vLLM/SGLang serving, and autonomous agent loops**.
85
+
86
+ ---
87
+
88
+ ## 📊 Dataset Summary & Multi-Task Views
89
+
90
+ | Task / View | Total Samples | Train | Validation | Test | Description |
91
+ | :--- | ---: | ---: | ---: | ---: | :--- |
92
+ | **`corpus_rag_chunks_multisource_v0.1`** *(default)* | **26,780** | 25,044 | 1,454 | 282 | Syntax-preserving, code-aware RAG chunks (avg 326 tokens, 8.7M tokens total). |
93
+ | **`corpus_rag_quality_multisource_v0.1`** | **20,143** | 19,070 | 923 | 150 | Full post and thread document view with context & metadata. |
94
+ | **`issue_resolution_multisource_v0.1`** | **3,600** | 3,472 | 128 | 0 | Paired Issue Problem Statements $\rightarrow$ Merged PR resolutions for Coding Agents. |
95
+ | **`preference_dpo_multisource_v0.1`** | **1,756** | 1,727 | 18 | 11 | Direct Preference Optimization (DPO) chosen vs. rejected response pairs. |
96
+ | **`reranking_listwise_multisource_v0.1`** | **357** | 335 | 14 | 8 | Listwise candidate answers with interaction-driven relevance scores. |
97
+ | **`v0.8.0_rag_quality`** *(legacy archive)* | **62,159** | 41,634 | 10,265 | 10,260 | Legacy StackExchange cleaned RAG corpus view. |
98
+
99
+ ---
100
+
101
+ ## 🔍 Key Insights & Exploratory Data Analysis (EDA)
102
+
103
+ * **Total Token Count:** **8,729,294 tokens** (`cl100k_base` / GPT tokenizer equivalent).
104
+ * **Code Density:** **43.8%** of chunks contain runnable code blocks.
105
+ * **Top Programming Languages:** Python (77.4%), Shell/Bash (9.0%), SQL (2.4%), JSON (2.1%), C++/CUDA (0.6%), Rust (0.6%).
106
+ * **Error Taxonomy Coverage:**
107
+ - *Quantization & Kernels (FlashAttention, Triton, QLoRA, GGUF):* 2,178 cases
108
+ - *Distributed & Multi-GPU (FSDP, DeepSpeed Zero-3, NCCL):* 1,801 cases
109
+ - *Data & Type Mismatch (ValueError / TypeError):* 1,014 cases
110
+ - *Runtime & Memory (CUDA OOM, RuntimeError):* 1,675 cases
111
+
112
+ ---
113
+
114
+ ## 🏛️ Repositories Included (24 Top Tier Projects)
115
+
116
+ - **LLM Training & Fine-tuning:** `huggingface/transformers`, `pytorch/pytorch`, `huggingface/trl`, `unslothai/unsloth`, `huggingface/peft`, `huggingface/accelerate`, `huggingface/datasets`, `deepspeedai/DeepSpeed`, `ray-project/ray`
117
+ - **Inference & Serving:** `vllm-project/vllm`, `sgl-project/sglang`, `ollama/ollama`, `ggerganov/llama.cpp`
118
+ - **Agents & RAG Orchestration:** `run-llama/llama_index`, `langchain-ai/langchain`, `langchain-ai/langgraph`, `crewAIInc/crewAI`, `huggingface/smolagents`
119
+ - **Modern Infrastructure & Tools:** `astral-sh/uv`, `pydantic/pydantic`, `tiangolo/fastapi`, `pola-rs/polars`, `duckdb/duckdb`, `gradio-app/gradio`
120
+
121
+ ---
122
+
123
+ ## 🚀 Quickstart & Usage
124
+
125
+ ### 1. Load Clean RAG Chunks (Default View)
126
+ ```python
127
+ from datasets import load_dataset
128
+
129
+ # Load default code-aware chunks (v0.9.0)
130
+ dataset = load_dataset("aluha501/community-qa-lab", split="train")
131
+
132
+ print(dataset[0])
133
+ # {
134
+ # "chunk_id": "gh:tiangolo/fastapi:disc:1234:chunk:0",
135
+ # "chunk_text": "...",
136
+ # "has_code": True,
137
+ # "code_languages": ["python"],
138
+ # "repository": "tiangolo/fastapi",
139
+ # "source_type": "github_discussion"
140
+ # }
141
+ ```
142
+
143
+ ### 2. Load Coding Agent Issue-Resolution Pairs
144
+ ```python
145
+ issue_dataset = load_dataset(
146
+ "aluha501/community-qa-lab",
147
+ "issue_resolution_multisource_v0.1",
148
+ split="train"
149
+ )
150
+ ```
151
+
152
+ ### 3. Load DPO Preference Pairs for Alignment
153
+ ```python
154
+ dpo_dataset = load_dataset(
155
+ "aluha501/community-qa-lab",
156
+ "preference_dpo_multisource_v0.1",
157
+ split="train"
158
+ )
159
+ ```
160
+
161
+ ### 4. Load Legacy v0.8.0 Clean RAG Quality View
162
+ ```python
163
+ v8_dataset = load_dataset(
164
+ "aluha501/community-qa-lab",
165
+ "v0.8.0_rag_quality",
166
+ split="train"
167
+ )
168
+ ```
169
+
170
+ ---
171
+
172
+ ## 🛡️ License & Provenance
173
+
174
+ All collected data originates from official public repositories under **permissive open-source licenses** (Apache-2.0, MIT, BSD-3-Clause). Private tokens, API keys, and personal emails have been sanitized.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
releases/v0.8.0-rag-quality/corpus_rag_chunks_multisource_v0.1/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a65adb33a972930898eb21db971b4708f2bcbc980f5176049f9b4740bbd2524e
3
+ size 8919350
releases/v0.8.0-rag-quality/corpus_rag_chunks_multisource_v0.1/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d880e6bcf1f87e81a185f4f83b2cbed683fc6d3f470ed90f10fdac362135c42a
3
+ size 23347101
releases/v0.8.0-rag-quality/corpus_rag_chunks_multisource_v0.1/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b23cf2949432c1b3fcbc9b403d43ef28b26d63d9fead5c19af195d2c925da598
3
+ size 7324567
releases/v0.8.0-rag-quality/corpus_rag_quality_multisource_v0.1/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d91664ed0f548adc15c785e373bf133b9a184191eb4650f5af177ed3b02f7393
3
+ size 16616282
releases/v0.8.0-rag-quality/corpus_rag_quality_multisource_v0.1/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5e09763a2206dd7a8f45a0f343447154dafe5525d5300a1fda9cbbdcaa54b86
3
+ size 42756115
releases/v0.8.0-rag-quality/corpus_rag_quality_multisource_v0.1/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1273a8ec2dffc39a5383a1c6c7fc132ea3ef69d6f8f380c1f6f9f716e1aa1d38
3
+ size 13668563
releases/v0.8.0-rag-quality/manifest.json ADDED
The diff for this file is too large to render. See raw diff
 
test.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c611508cac16b0028161539f4c85456e029e7e5bd16582147d5c6f445e6a62b2
3
- size 12696133
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be5818f847fda202b7b1aba373a54d10e33c5c24002d34ef73af201017cf93d9
3
+ size 128411
train.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f39c152470645d20b44bc780610cfaa41e720ba19c51f62bebee9cd04bfb7f50
3
- size 32881836
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82eab8cecd417ae54e9e8fd36c7b485f9ec938801e9101d433c4bce3e935f6a0
3
+ size 12526458
validation.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4eedcf05628e6cbb27259eafef83d7961131b371063736f97cb05efd3fe814cb
3
- size 10346965
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed1b8603536e437218de4d5035103cc66cec00091bfe413da248035a13708f37
3
+ size 558289
views/corpus_rag_chunks_multisource_v0.1/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be5818f847fda202b7b1aba373a54d10e33c5c24002d34ef73af201017cf93d9
3
+ size 128411
views/corpus_rag_chunks_multisource_v0.1/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82eab8cecd417ae54e9e8fd36c7b485f9ec938801e9101d433c4bce3e935f6a0
3
+ size 12526458
views/corpus_rag_chunks_multisource_v0.1/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed1b8603536e437218de4d5035103cc66cec00091bfe413da248035a13708f37
3
+ size 558289
views/corpus_rag_quality_multisource_v0.1/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2535b08afa081eefb4d686b619da9542b21f0ce4f34428549885d8e683493cc0
3
+ size 219713
views/corpus_rag_quality_multisource_v0.1/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ec979ca408a78da8285466de46fa0b03e619858127bfbbd7e98d7aad8ac38e8
3
+ size 22620748
views/corpus_rag_quality_multisource_v0.1/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f2d464fc2a6588ef597ab71c30bfd3baf2497572bc01a3ecd3a37f6779b263e
3
+ size 913934
views/issue_resolution_multisource_v0.1/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27388fd937ebf0072634cae82a3219b823a17698d566cc2ad190623a75878337
3
+ size 3697
views/issue_resolution_multisource_v0.1/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed2f48069b3ceaf6b5e9b59ff1a9d9aa40a147b1ad85a05141fb43dfcdf41797
3
+ size 1098208
views/issue_resolution_multisource_v0.1/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60f75061978b268567afe0ede858c7ce7e9b285f931aef584d635c87f15c462f
3
+ size 60228
views/preference_dpo_multisource_v0.1/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24499b4df1d076ffa22c8b4b216c737a18d2538b565e0d5b39edc77cacb47255
3
+ size 24071
views/preference_dpo_multisource_v0.1/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d32254bea109979b92fae06b6c0aa2a6071ce95b1ffb6118fd8c5e5732e9e7aa
3
+ size 653129
views/preference_dpo_multisource_v0.1/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf7755c278524d5b119f3d2e47be6ceb34cc7ae1e988aa715a0a69d2a4500fe3
3
+ size 27526
views/reranking_listwise_multisource_v0.1/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85c51ee9ab4824954ab060657b0c356f0d11b03e5a73e2d170851e4c988b45ae
3
+ size 18028
views/reranking_listwise_multisource_v0.1/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d66650fe12ad62ef58c5c980602dfd38654815aeffa0f9cae071508a8facf136
3
+ size 563987
views/reranking_listwise_multisource_v0.1/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d67ec677b6c1683b930fd8cd97c6cd257477767dfb50f1235e4510ebc8b642c
3
+ size 27061