Mo7art commited on
Commit
0780d35
·
verified ·
1 Parent(s): 8d9fa30

Clean StackOverflow vector language dataset before upload: haskell

Browse files
README.md DELETED
@@ -1,115 +0,0 @@
1
- ---
2
- tags:
3
- - vector-database
4
- - embeddings
5
- - parquet
6
- - qdrant
7
- - stackoverflow
8
- - question-answering
9
- pretty_name: StackOverflow Vector Dataset - Haskell
10
- license: cc-by-sa-4.0
11
- size_categories:
12
- - 1M<n<10M
13
- ---
14
-
15
- # Haskell StackOverflow Vector Dataset Datasheet
16
-
17
- ## 1. What This Dataset Is
18
-
19
- This dataset is the Haskell-specific vector shard of the Stack2Graph StackOverflow retrieval corpus.
20
- Each Hugging Face dataset repository contains exactly one language dataset.
21
-
22
- It is optimized for dense+sparse retrieval, Qdrant restoration, and embedding-based RAG experiments.
23
-
24
- It is used in the Stack2Graph project as the vector counterpart to the language-scoped RDF knowledge graph shards.
25
-
26
- See the Stack2Graph repository for more details:
27
- [https://github.com/tha-atlas/Stack2Graph](https://github.com/tha-atlas/Stack2Graph)
28
-
29
- ## 2. Repository Layout
30
-
31
- ```text
32
- dataset_manifest.json
33
- question_metadata_*.parquet
34
- chunk_records_*.parquet
35
- question_records_*.parquet
36
- ```
37
-
38
- - `dataset_manifest.json`: language-scoped manifest for this dataset shard.
39
- - `question_metadata_*.parquet`: per-question metadata and retrieval bookkeeping.
40
- - `chunk_records_*.parquet`: chunk-level vector rows when parent-child indexing is enabled.
41
- - `question_records_*.parquet`: question-level vector rows when chunking is disabled or exported alongside chunk data.
42
-
43
- ## 3. Data Model And Coverage
44
-
45
- The dataset is derived from Stack Overflow questions selected for the Haskell programming language.
46
- It contains the structured records needed to rebuild the Stack2Graph Qdrant collection for that language.
47
-
48
- Coverage scope:
49
-
50
- - records are retained when they match the Stack2Graph supported language-tag set
51
- - this repository contains only the Haskell shard
52
- - the archive may contain both metadata-only and retrieval-ready vector rows depending on the export mode
53
-
54
- ## 4. Recommended Preprocessing
55
-
56
- 1. Read `dataset_manifest.json` first and use it as the source of truth for included Parquet files.
57
- 2. Load all Parquet shards for this repository into your vector indexing pipeline.
58
- 3. Rebuild or restore the Qdrant collection `stackoverflow_haskell_vector`.
59
- 4. Preserve attribution and license metadata during downstream export.
60
-
61
- ## 5. Automatic Download And Vector DB Setup
62
-
63
- You do not need to regenerate embeddings from GraphDB to use this dataset.
64
-
65
- In the Stack2Graph repository, you can use the automation script
66
- `python -m experiment.load_hf_datasets_into_services --skip-kg` to download dataset artifacts
67
- and prepare the vector database service state automatically.
68
-
69
- Typical workflow:
70
-
71
- 1. Clone and configure Stack2Graph (`.env` with HF token and service paths).
72
- 1. Clone and configure Stack2Graph (`.env` with HF token and service paths).
73
- 1. Start required local services:
74
-
75
- ```bash
76
- docker compose up -d
77
- ```
78
-
79
- 1. Run the loader script:
80
-
81
- ```bash
82
- python -m experiment.load_hf_datasets_into_services --skip-kg
83
- ```
84
-
85
- For manual usage without automation, directly ingest the listed Parquet files into your vector database.
86
-
87
- ## 6. Quality Notes And Caveats
88
-
89
- - A Stack Overflow question may belong to multiple language shards when tagged with multiple languages.
90
- - Embeddings and sparse representations depend on the configured export pipeline and model versions.
91
- - As with community-generated data, content may include noise, bias, and temporal drift.
92
-
93
- ## 7. Intended Use
94
-
95
- - semantic retrieval and reranking
96
- - RAG and hybrid retriever experiments
97
- - vector database benchmarking and diagnostics
98
- - language-scoped developer tooling research
99
-
100
- ## 8. Limitations
101
-
102
- - Not a complete mirror of all Stack Overflow content.
103
- - Not all export modes include the same row types or chunk layouts.
104
- - Best used together with the Stack2Graph retrieval pipeline and Qdrant-compatible tooling.
105
-
106
- ## 9. Licensing And Attribution
107
-
108
- This dataset inherits Stack Overflow source licensing and attribution requirements.
109
- Ensure compliant attribution and redistribution practices in all derived artifacts.
110
-
111
- ## 10. Suggested Citation
112
-
113
- If you use this dataset, cite the Stack2Graph work:
114
-
115
- - Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
chunk_records/r0_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2b581420a896dc7a959cae39039e49a15b95c1be076f890422fa20d51ea59a3b
3
- size 31716082
 
 
 
 
chunk_records/r0_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5538e8d1afe0c2fe7f51673c5e865f682a87d9ca42767b3957608915256a93c3
3
- size 19241933
 
 
 
 
chunk_records/r1_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f7feb2d18f6ddb4f51a271c09d8aece280e8795901368ae274a15d18010f0b2f
3
- size 31745957
 
 
 
 
chunk_records/r1_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7cda97c87125f0a9f9afff45d71e6852d78e28e853b445e81f613c4b9d1ea9b9
3
- size 19250111
 
 
 
 
chunk_records/r2_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e689f6cb174cad7620bb88510c47724183a0253005753e8575a5f3a95f9b18f2
3
- size 31790920
 
 
 
 
chunk_records/r2_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:916889df167545a918991bfb7b8d3fb14bb03cbeaf74f151da535c7836ba56e2
3
- size 19259558
 
 
 
 
chunk_records/r3_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:83b4fc430c99c9a3f17939f02223b8a73d6c098767e6dceb3284bfd54637a5a9
3
- size 31761707
 
 
 
 
chunk_records/r3_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:01ce4c93abb60c9b52cc028c2b6e082bfc7048cd2e67d0e5a5878d3bda8af672
3
- size 19257998
 
 
 
 
chunk_records/r4_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1d1e6115abe30f2f217b9717f32f9b2a5bde31c7a54b89eb248369d14fa7e0e8
3
- size 31710751
 
 
 
 
chunk_records/r4_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d8f7e088b19a49d38bb2d0e5ac05099f8de17ce5f15b78e63cd942d6ac68dd28
3
- size 19235656
 
 
 
 
chunk_records/r5_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f80e729c2d0e74c9f55ade7902a091029e7c565dc0754feb17aaf90a56138d75
3
- size 31750101
 
 
 
 
chunk_records/r5_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ceb2851382ee4a65e1d7737c73efc1f5250227620224278bafb2a670de3536cc
3
- size 19267684
 
 
 
 
chunk_records/r6_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1246ebeca23138b2eedb4c152a8eea73c0210ab4966556e14346570d99b83f56
3
- size 31703999
 
 
 
 
chunk_records/r6_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:799c267d09403f676df2a558da9074c0b65d9bf024146a4ae37f041c9543714c
3
- size 19243875
 
 
 
 
chunk_records/r7_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ba0f0438aa931f001033360fb33f555bed02bcf046be022c87fb4ff6362196de
3
- size 31754522
 
 
 
 
chunk_records/r7_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:24d192bfa27637c7ace495776e92f85bc729cb85548bc71ec6990a7dcbd1bffd
3
- size 19254386
 
 
 
 
dataset_manifest.json DELETED
@@ -1,170 +0,0 @@
1
- {
2
- "file_count": 27,
3
- "files": [
4
- {
5
- "category": "chunk_records",
6
- "language": "haskell",
7
- "relative_path": "chunk_records/r0_00000.parquet",
8
- "rows": 5000
9
- },
10
- {
11
- "category": "chunk_records",
12
- "language": "haskell",
13
- "relative_path": "chunk_records/r0_00001.parquet",
14
- "rows": 2657
15
- },
16
- {
17
- "category": "chunk_records",
18
- "language": "haskell",
19
- "relative_path": "chunk_records/r1_00000.parquet",
20
- "rows": 5000
21
- },
22
- {
23
- "category": "chunk_records",
24
- "language": "haskell",
25
- "relative_path": "chunk_records/r1_00001.parquet",
26
- "rows": 2657
27
- },
28
- {
29
- "category": "chunk_records",
30
- "language": "haskell",
31
- "relative_path": "chunk_records/r2_00000.parquet",
32
- "rows": 5000
33
- },
34
- {
35
- "category": "chunk_records",
36
- "language": "haskell",
37
- "relative_path": "chunk_records/r2_00001.parquet",
38
- "rows": 2657
39
- },
40
- {
41
- "category": "chunk_records",
42
- "language": "haskell",
43
- "relative_path": "chunk_records/r3_00000.parquet",
44
- "rows": 5000
45
- },
46
- {
47
- "category": "chunk_records",
48
- "language": "haskell",
49
- "relative_path": "chunk_records/r3_00001.parquet",
50
- "rows": 2657
51
- },
52
- {
53
- "category": "chunk_records",
54
- "language": "haskell",
55
- "relative_path": "chunk_records/r4_00000.parquet",
56
- "rows": 5000
57
- },
58
- {
59
- "category": "chunk_records",
60
- "language": "haskell",
61
- "relative_path": "chunk_records/r4_00001.parquet",
62
- "rows": 2657
63
- },
64
- {
65
- "category": "chunk_records",
66
- "language": "haskell",
67
- "relative_path": "chunk_records/r5_00000.parquet",
68
- "rows": 5000
69
- },
70
- {
71
- "category": "chunk_records",
72
- "language": "haskell",
73
- "relative_path": "chunk_records/r5_00001.parquet",
74
- "rows": 2657
75
- },
76
- {
77
- "category": "chunk_records",
78
- "language": "haskell",
79
- "relative_path": "chunk_records/r6_00000.parquet",
80
- "rows": 5000
81
- },
82
- {
83
- "category": "chunk_records",
84
- "language": "haskell",
85
- "relative_path": "chunk_records/r6_00001.parquet",
86
- "rows": 2657
87
- },
88
- {
89
- "category": "chunk_records",
90
- "language": "haskell",
91
- "relative_path": "chunk_records/r7_00000.parquet",
92
- "rows": 5000
93
- },
94
- {
95
- "category": "chunk_records",
96
- "language": "haskell",
97
- "relative_path": "chunk_records/r7_00001.parquet",
98
- "rows": 2656
99
- },
100
- {
101
- "category": "question_metadata",
102
- "language": "haskell",
103
- "relative_path": "question_metadata/r0_00000.parquet",
104
- "rows": 5000
105
- },
106
- {
107
- "category": "question_metadata",
108
- "language": "haskell",
109
- "relative_path": "question_metadata/r0_00001.parquet",
110
- "rows": 5000
111
- },
112
- {
113
- "category": "question_metadata",
114
- "language": "haskell",
115
- "relative_path": "question_metadata/r0_00002.parquet",
116
- "rows": 5000
117
- },
118
- {
119
- "category": "question_metadata",
120
- "language": "haskell",
121
- "relative_path": "question_metadata/r0_00003.parquet",
122
- "rows": 5000
123
- },
124
- {
125
- "category": "question_metadata",
126
- "language": "haskell",
127
- "relative_path": "question_metadata/r0_00004.parquet",
128
- "rows": 5000
129
- },
130
- {
131
- "category": "question_metadata",
132
- "language": "haskell",
133
- "relative_path": "question_metadata/r0_00005.parquet",
134
- "rows": 5000
135
- },
136
- {
137
- "category": "question_metadata",
138
- "language": "haskell",
139
- "relative_path": "question_metadata/r0_00006.parquet",
140
- "rows": 5000
141
- },
142
- {
143
- "category": "question_metadata",
144
- "language": "haskell",
145
- "relative_path": "question_metadata/r0_00007.parquet",
146
- "rows": 5000
147
- },
148
- {
149
- "category": "question_metadata",
150
- "language": "haskell",
151
- "relative_path": "question_metadata/r0_00008.parquet",
152
- "rows": 5000
153
- },
154
- {
155
- "category": "question_metadata",
156
- "language": "haskell",
157
- "relative_path": "question_metadata/r0_00009.parquet",
158
- "rows": 5000
159
- },
160
- {
161
- "category": "question_metadata",
162
- "language": "haskell",
163
- "relative_path": "question_metadata/r0_00010.parquet",
164
- "rows": 1674
165
- }
166
- ],
167
- "language": "haskell",
168
- "source": "vector_dataset_language_folder",
169
- "total_rows": 112929
170
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
question_metadata/r0_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d459f31897b8fba96bd16dc55f041d878694ecc13eff3c74269bedca46bbe4cb
3
- size 7412134
 
 
 
 
question_metadata/r0_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d5396ce0eac856d80fdf3c29353fc1349f18472dd38d18c910e5468de69e2663
3
- size 7115738
 
 
 
 
question_metadata/r0_00002.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3223c0cc6ca161e3d466055d20c91cc5eb753793d008680845325e8601b750a3
3
- size 7426558
 
 
 
 
question_metadata/r0_00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:291c14bf4f9f2d97ae5184c74cb64ed421695d7ccf523199e7cfebba615e0133
3
- size 7422427
 
 
 
 
question_metadata/r0_00004.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f5c57cd4a769b85584898d1c0ba0b8b576f2c171e2b8784e1910f647c52d6f28
3
- size 7075380
 
 
 
 
question_metadata/r0_00005.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1a7086ae0d48ee4e59b547435bd14d01aaeda43bef7dc054ef8c1a60d14c399e
3
- size 7510765
 
 
 
 
question_metadata/r0_00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:56ef2d939ce2b1b5b446730dda0ae4d3340febd9f60d7a4d7b528015aa1e7cdf
3
- size 7137588
 
 
 
 
question_metadata/r0_00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e516399bcb1c58f0ccaf6b2f45b18c5e4c34df8c8cdb24f9cc50f466027119ab
3
- size 7716900
 
 
 
 
question_metadata/r0_00008.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:94473dd805cfe5391337b106e5294600d27833d77a0d4a943100d607118f8e4d
3
- size 7482766
 
 
 
 
question_metadata/r0_00009.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad0df754a2ceff228b0b9cb0623191c5c862787d837981344acca917ae7dce64
3
- size 7468346
 
 
 
 
question_metadata/r0_00010.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e279c2225dc02562dde6299f4c50060dd52b001a0e990629c69bc5fd12963b4
3
- size 2657308