Mo7art commited on
Commit
d54a254
·
verified ·
1 Parent(s): 9198779

Clean StackOverflow vector language dataset before upload: rust

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 - Rust
10
- license: cc-by-sa-4.0
11
- size_categories:
12
- - 1M<n<10M
13
- ---
14
-
15
- # Rust StackOverflow Vector Dataset Datasheet
16
-
17
- ## 1. What This Dataset Is
18
-
19
- This dataset is the Rust-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 Rust 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 Rust 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_rust_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:6b760d9c7b0dbfd7a47fcddcee3f265d063e837d0d5a241a4924b23b5a89a39c
3
- size 32859583
 
 
 
 
chunk_records/r0_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1e2ab3c3106a39e02fdf6f23dca251bb037cfc024fc786bb719f39e8be9ebdf2
3
- size 16253939
 
 
 
 
chunk_records/r1_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2a51d1a72aec3ac9ca82b5931a62f8ac96e291b74b50965e69c04942018277cd
3
- size 32893443
 
 
 
 
chunk_records/r1_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a84459442830e32cdc21f8b9c301d40262e0bd1f01dc8cf664cc21ea8f51704a
3
- size 16195732
 
 
 
 
chunk_records/r2_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:21ccacc6b62c7ba11d973355657622fde89d3ae0a5019496ffe24a0e4b5f6cc1
3
- size 32862806
 
 
 
 
chunk_records/r2_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1941d2a158bbb70ae168f6046e2262f45ae89bbd5958da00c907417f824863c2
3
- size 16264121
 
 
 
 
chunk_records/r3_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4e89b7eb2a34c653f6adf4151f5579dc8ff15fbe3969c1ec6eafd6e2316bbfa9
3
- size 32900762
 
 
 
 
chunk_records/r3_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:11386e87470352a7e88193232b1052fa505f4f9de06e16361db4c8768c0ade8a
3
- size 16222606
 
 
 
 
chunk_records/r4_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b1224580d6be5e1725f6f9aee193b5ee4ea465e18a1133519de5d0b55e45a07a
3
- size 32848439
 
 
 
 
chunk_records/r4_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:66c01e3a6dd89542ef2908baaea9aebbb1aa4c2aeb424138da0af62506bbd294
3
- size 16182227
 
 
 
 
chunk_records/r5_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:20cf5be1d88e74be231631ecbb71838bd16ef89a71ebe2657ece7c5a9fd28c15
3
- size 32873028
 
 
 
 
chunk_records/r5_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7b012226d029728b99aa6c8a6112e00b0e3e04d811b7c758439455cdea858b74
3
- size 16181623
 
 
 
 
chunk_records/r6_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:fdf067fa977e0501d28e592a0c8c1c0d360141e2d5f33f0f2ec035f0680ee69a
3
- size 32862120
 
 
 
 
chunk_records/r6_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1a85ec5e10a216de936b58bd84145d267c4f22a4b173cec27fa5700d11dd90dd
3
- size 16243403
 
 
 
 
chunk_records/r7_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f2f73e274976613931bc651d122cef01fe0c6b75cd7988ff7f2761a5b2421c90
3
- size 32897965
 
 
 
 
chunk_records/r7_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1057c2910813b2b6ccefaac040237a93a5ef9fb80b38c2a94155883f5f3a91a5
3
- size 16202701
 
 
 
 
dataset_manifest.json DELETED
@@ -1,158 +0,0 @@
1
- {
2
- "file_count": 25,
3
- "files": [
4
- {
5
- "category": "chunk_records",
6
- "language": "rust",
7
- "relative_path": "chunk_records/r0_00000.parquet",
8
- "rows": 5000
9
- },
10
- {
11
- "category": "chunk_records",
12
- "language": "rust",
13
- "relative_path": "chunk_records/r0_00001.parquet",
14
- "rows": 2176
15
- },
16
- {
17
- "category": "chunk_records",
18
- "language": "rust",
19
- "relative_path": "chunk_records/r1_00000.parquet",
20
- "rows": 5000
21
- },
22
- {
23
- "category": "chunk_records",
24
- "language": "rust",
25
- "relative_path": "chunk_records/r1_00001.parquet",
26
- "rows": 2176
27
- },
28
- {
29
- "category": "chunk_records",
30
- "language": "rust",
31
- "relative_path": "chunk_records/r2_00000.parquet",
32
- "rows": 5000
33
- },
34
- {
35
- "category": "chunk_records",
36
- "language": "rust",
37
- "relative_path": "chunk_records/r2_00001.parquet",
38
- "rows": 2176
39
- },
40
- {
41
- "category": "chunk_records",
42
- "language": "rust",
43
- "relative_path": "chunk_records/r3_00000.parquet",
44
- "rows": 5000
45
- },
46
- {
47
- "category": "chunk_records",
48
- "language": "rust",
49
- "relative_path": "chunk_records/r3_00001.parquet",
50
- "rows": 2176
51
- },
52
- {
53
- "category": "chunk_records",
54
- "language": "rust",
55
- "relative_path": "chunk_records/r4_00000.parquet",
56
- "rows": 5000
57
- },
58
- {
59
- "category": "chunk_records",
60
- "language": "rust",
61
- "relative_path": "chunk_records/r4_00001.parquet",
62
- "rows": 2175
63
- },
64
- {
65
- "category": "chunk_records",
66
- "language": "rust",
67
- "relative_path": "chunk_records/r5_00000.parquet",
68
- "rows": 5000
69
- },
70
- {
71
- "category": "chunk_records",
72
- "language": "rust",
73
- "relative_path": "chunk_records/r5_00001.parquet",
74
- "rows": 2175
75
- },
76
- {
77
- "category": "chunk_records",
78
- "language": "rust",
79
- "relative_path": "chunk_records/r6_00000.parquet",
80
- "rows": 5000
81
- },
82
- {
83
- "category": "chunk_records",
84
- "language": "rust",
85
- "relative_path": "chunk_records/r6_00001.parquet",
86
- "rows": 2175
87
- },
88
- {
89
- "category": "chunk_records",
90
- "language": "rust",
91
- "relative_path": "chunk_records/r7_00000.parquet",
92
- "rows": 5000
93
- },
94
- {
95
- "category": "chunk_records",
96
- "language": "rust",
97
- "relative_path": "chunk_records/r7_00001.parquet",
98
- "rows": 2175
99
- },
100
- {
101
- "category": "question_metadata",
102
- "language": "rust",
103
- "relative_path": "question_metadata/r0_00000.parquet",
104
- "rows": 5000
105
- },
106
- {
107
- "category": "question_metadata",
108
- "language": "rust",
109
- "relative_path": "question_metadata/r0_00001.parquet",
110
- "rows": 5000
111
- },
112
- {
113
- "category": "question_metadata",
114
- "language": "rust",
115
- "relative_path": "question_metadata/r0_00002.parquet",
116
- "rows": 5000
117
- },
118
- {
119
- "category": "question_metadata",
120
- "language": "rust",
121
- "relative_path": "question_metadata/r0_00003.parquet",
122
- "rows": 5000
123
- },
124
- {
125
- "category": "question_metadata",
126
- "language": "rust",
127
- "relative_path": "question_metadata/r0_00004.parquet",
128
- "rows": 5000
129
- },
130
- {
131
- "category": "question_metadata",
132
- "language": "rust",
133
- "relative_path": "question_metadata/r0_00005.parquet",
134
- "rows": 5000
135
- },
136
- {
137
- "category": "question_metadata",
138
- "language": "rust",
139
- "relative_path": "question_metadata/r0_00006.parquet",
140
- "rows": 5000
141
- },
142
- {
143
- "category": "question_metadata",
144
- "language": "rust",
145
- "relative_path": "question_metadata/r0_00007.parquet",
146
- "rows": 5000
147
- },
148
- {
149
- "category": "question_metadata",
150
- "language": "rust",
151
- "relative_path": "question_metadata/r0_00008.parquet",
152
- "rows": 3410
153
- }
154
- ],
155
- "language": "rust",
156
- "source": "vector_dataset_language_folder",
157
- "total_rows": 100814
158
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
question_metadata/r0_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:fddd57484bfd242be9441461d37c158b1a180d30f0731e33eb5dafb153d4295a
3
- size 7129301
 
 
 
 
question_metadata/r0_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6be34e905d4e5fcd4e588340f376da379539fcd7fd8efcf9a0e23f67404ab024
3
- size 8379529
 
 
 
 
question_metadata/r0_00002.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7bed42506fea5bc7c208d167f1cbdf1bfd0572b5f7a0b70f32f6c99e3e213304
3
- size 8480410
 
 
 
 
question_metadata/r0_00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:dbd97704e1cc990ef38cb66e48d88cf84edbd2e7c949c3af823fc630c9323bea
3
- size 8404435
 
 
 
 
question_metadata/r0_00004.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:02a5448ecd43140312c16a7d7f55931090b535ee6e6a150d2ebfc36875b75e46
3
- size 9451712
 
 
 
 
question_metadata/r0_00005.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1a1b6bebef08a8432cc180ae05e84877557d35b7e4a1edf80ff14b1fc0888b6d
3
- size 9315111
 
 
 
 
question_metadata/r0_00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:05f87f83081dc9beaddfdcf1b4d34c5f0951cf9ec3f8b8a9a9c9a2e8de9d404f
3
- size 8460791
 
 
 
 
question_metadata/r0_00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a0ee06f99e3dab72bc89089482d3337d68e31fafe13c7d18c7bb71d5d53c4fe8
3
- size 10028424
 
 
 
 
question_metadata/r0_00008.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a0d376d945dc3c3e926fe3cd75de616c671c2429d35c866c2e4db34455caf7b0
3
- size 6617349