Mo7art commited on
Commit
3ab08d2
·
verified ·
1 Parent(s): 9024b1a

Clean StackOverflow vector language dataset before upload: assembly

Browse files
README.md DELETED
@@ -1,137 +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 - Assembly
10
- license: cc-by-sa-4.0
11
- size_categories:
12
- - 1M<n<10M
13
- ---
14
-
15
- # Assembly StackOverflow Vector Dataset
16
-
17
- ## Summary
18
-
19
- This repository contains the Assembly shard of the Stack2Graph vector retrieval dataset.
20
- Each Hugging Face dataset repository contains one programming-language shard and is intended to restore or rebuild the Qdrant collection `stackoverflow_assembly_vector`.
21
-
22
- The dataset is the vector counterpart to the Stack2Graph RDF knowledge graph. It is designed for hybrid retrieval, graph entry-point finding, and retrieval-augmented generation experiments over Stack Overflow content.
23
-
24
- Stack2Graph source:
25
- [https://github.com/tha-atlas/Stack2Graph](https://github.com/tha-atlas/Stack2Graph)
26
-
27
- ## Repository Layout
28
-
29
- ```text
30
- README.md
31
- dataset_manifest.json
32
- qdrant_snapshots/
33
- collections_manifest.json
34
- stackoverflow_assembly_vector.tar.xz
35
- stackoverflow_assembly_vector.snapshot.xz.part_000
36
- ...
37
- question_metadata/
38
- r0_00000.parquet
39
- chunk_records/
40
- r0_00000.parquet
41
- question_records/
42
- r0_00000.parquet
43
- ```
44
-
45
- - `dataset_manifest.json`: language-scoped manifest listing the files in this shard.
46
- - `qdrant_snapshots/collections_manifest.json`: language-scoped Qdrant snapshot manifest.
47
- - `qdrant_snapshots/stackoverflow_assembly_vector.*`: optional Qdrant restore artifact files for `stackoverflow_assembly_vector`.
48
- - `question_metadata/*.parquet`: question-level metadata used by parent-child chunk retrieval.
49
- - `chunk_records/*.parquet`: chunk-level vector rows when parent-child indexing is enabled.
50
- - `question_records/*.parquet`: question-level vector rows when non-chunked export is used.
51
-
52
- The Hugging Face upload is one repository per language. During upload, the local leading language directory is removed, so local files such as `assembly/chunk_records/r0_00000.parquet` appear in this repository as `chunk_records/r0_00000.parquet`.
53
-
54
- ## Data Model
55
-
56
- Rows are derived from Stack Overflow questions tagged for Assembly.
57
-
58
- The current Stack2Graph vector pipeline uses:
59
-
60
- - dense vectors from `Qwen/Qwen3-Embedding-8B`
61
- - 4096-dimensional dense embeddings with last-token pooling
62
- - instruction-aware query embedding for retrieval
63
- - sparse lexical vectors from `BAAI/bge-m3`
64
- - unified question text containing title, tags, cleaned problem text, and code
65
- - optional parent-child indexing where chunk hits collapse back to parent question IDs
66
-
67
- When Qdrant snapshots are included, they are the fastest restore path. The Parquet files remain the portable fallback for rebuilding the collection.
68
-
69
- ## Coverage
70
-
71
- This repository contains only the Assembly shard. A Stack Overflow question can appear in more than one language shard when it has multiple programming-language tags.
72
-
73
- The dataset is not a complete Stack Overflow mirror. Full question and answer graph context lives in the corresponding Stack2Graph knowledge graph artifacts; the vector dataset stores retrieval rows, vectors, sparse weights, and routing metadata.
74
-
75
- ## Recommended Use
76
-
77
- Use this dataset for:
78
-
79
- - semantic and hybrid retrieval
80
- - Qdrant restore or ingestion tests
81
- - Stack2Graph RAG experiments
82
- - graph entry-point retrieval before QLever graph expansion
83
- - vector database benchmarking and diagnostics
84
-
85
- This dataset is not intended as a standalone supervised training dataset.
86
-
87
- ## Restore With Stack2Graph
88
-
89
- You do not need to regenerate embeddings to use this dataset.
90
-
91
- Typical workflow:
92
-
93
- 1. Clone Stack2Graph and configure `.env` with service paths and HF token.
94
- 2. Start local services:
95
-
96
- ```bash
97
- docker compose up -d
98
- ```
99
-
100
- 3. Download and restore vector artifacts:
101
-
102
- ```bash
103
- python -m experiment.sources.hf --skip-kg
104
- ```
105
-
106
- The loader restores Qdrant snapshots when present and falls back to Parquet ingestion when snapshots are unavailable.
107
-
108
- ## Manual Use
109
-
110
- For manual use, inspect `dataset_manifest.json`, then either:
111
-
112
- - restore the Qdrant snapshot artifacts under `qdrant_snapshots/`, or
113
- - ingest the listed Parquet shards into a compatible vector database.
114
-
115
- The target Qdrant collection name is:
116
-
117
- ```text
118
- stackoverflow_assembly_vector
119
- ```
120
-
121
- ## Quality Notes
122
-
123
- - Embedding quality depends on the configured Stack2Graph export pipeline and model versions.
124
- - Sparse text can be generated from the same unified text as dense embeddings or from a lexical variant, depending on export configuration.
125
- - Community-generated Stack Overflow content may contain errors, outdated information, bias, or incomplete answers.
126
- - Rebuilding from Parquet may produce operational differences if Qdrant collection settings differ from the original export.
127
-
128
- ## License And Attribution
129
-
130
- This dataset is derived from Stack Overflow content and is distributed under `CC-BY-SA-4.0`.
131
- Preserve required attribution and license notices when redistributing derived artifacts.
132
-
133
- ## Citation
134
-
135
- If you use this dataset, cite the Stack2Graph project and preserve Stack Overflow attribution requirements:
136
-
137
- - 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:9f679059641c6b79d5f239d9f3680e37f5ef095bf4845fe09f3e21acf73742db
3
- size 48551758
 
 
 
 
chunk_records/r0_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:818071ee4deb37fdd8eca2d8dfb5698133b26db757cba488717e77dc263a6242
3
- size 17176746
 
 
 
 
chunk_records/r1_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:22a2f49a68fb745e4bf329d2c13572dd4bea82f2a81fa888f5f8c07f64d80a62
3
- size 48542343
 
 
 
 
chunk_records/r1_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:08832d157746edd0eb18c40c2d665f23299b1cde47e45d68c133052478d330e9
3
- size 17188749
 
 
 
 
chunk_records/r2_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:103a8b717a53cbe5a299724b2ee4e265f7e9382c74bd1cd418961abd3c307d2c
3
- size 48556053
 
 
 
 
chunk_records/r2_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7054aaa243639f89b0c08812bf02ae25e28097662fa1c203479b925f276f4878
3
- size 17185205
 
 
 
 
chunk_records/r3_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4b5fd5f9b448362c9dd9981d295d7938e674b8319db23c2c2cc8e3a6a2a58678
3
- size 48544561
 
 
 
 
chunk_records/r3_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:488d659dadc4185cdaf95fe0acf22e453fda3a08ad0f8811a95b38d4f7685d64
3
- size 17177811
 
 
 
 
chunk_records/r4_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c21684d2d196250066214e8c227a0aabd015ac7d212ba3e4b658aacfd8555886
3
- size 48547310
 
 
 
 
chunk_records/r4_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:29d813974326b1fe2863aabc9338da61159f8a4a551dee9c5586599528adbf9b
3
- size 17177891
 
 
 
 
chunk_records/r5_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b96117b02549f6e4aa80460769b8a6c5000b8236832850afb9db6bc0c426be43
3
- size 48569479
 
 
 
 
chunk_records/r5_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3f2eb18f03ce96348a0a9ea5d6b03469e70b569b00a5a62657cd05dae9e81f23
3
- size 17203760
 
 
 
 
chunk_records/r6_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:076d6d3a577b71c395e1aa6a0ebb3be23f6e51150c1608b40bf19ab37fd83446
3
- size 48539139
 
 
 
 
chunk_records/r6_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e5f54a46b459b3e6b57ef389c927f5e7c94e85aa8776699dc3eb2ba5e4f8ab1e
3
- size 17184551
 
 
 
 
chunk_records/r7_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1404c10c7b9f8c8baaf556e6c2ad9c45754a4e2700d7ff7c3c13f649d80f0be0
3
- size 48543417
 
 
 
 
chunk_records/r7_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9e20ecba7f3ca9054d6324532a0debf77ed48c60dbda2e4ea95f7e15e28f24de
3
- size 17157028
 
 
 
 
dataset_manifest.json DELETED
@@ -1,62 +0,0 @@
1
- {
2
- "file_count": 9,
3
- "files": [
4
- {
5
- "category": "chunk_records",
6
- "language": "assembly",
7
- "relative_path": "chunk_records/r0_00000.parquet",
8
- "rows": 7653
9
- },
10
- {
11
- "category": "chunk_records",
12
- "language": "assembly",
13
- "relative_path": "chunk_records/r1_00000.parquet",
14
- "rows": 7652
15
- },
16
- {
17
- "category": "chunk_records",
18
- "language": "assembly",
19
- "relative_path": "chunk_records/r2_00000.parquet",
20
- "rows": 7652
21
- },
22
- {
23
- "category": "chunk_records",
24
- "language": "assembly",
25
- "relative_path": "chunk_records/r3_00000.parquet",
26
- "rows": 7652
27
- },
28
- {
29
- "category": "chunk_records",
30
- "language": "assembly",
31
- "relative_path": "chunk_records/r4_00000.parquet",
32
- "rows": 7652
33
- },
34
- {
35
- "category": "chunk_records",
36
- "language": "assembly",
37
- "relative_path": "chunk_records/r5_00000.parquet",
38
- "rows": 7652
39
- },
40
- {
41
- "category": "chunk_records",
42
- "language": "assembly",
43
- "relative_path": "chunk_records/r6_00000.parquet",
44
- "rows": 7652
45
- },
46
- {
47
- "category": "chunk_records",
48
- "language": "assembly",
49
- "relative_path": "chunk_records/r7_00000.parquet",
50
- "rows": 7652
51
- },
52
- {
53
- "category": "question_metadata",
54
- "language": "assembly",
55
- "relative_path": "question_metadata/r0_00000.parquet",
56
- "rows": 45068
57
- }
58
- ],
59
- "language": "assembly",
60
- "source": "vector_dataset_language_folder",
61
- "total_rows": 106285
62
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
question_metadata/r0_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:52e421e3e513bd84b57ce196f6e01db94a7f829dfc538c3ddf3f899d20c27db8
3
- size 1711757
 
 
 
 
question_metadata/r0_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:322870235a961dc62037343d18ef19e815b81245964af904b455a07e9e3d6840
3
- size 7520537
 
 
 
 
question_metadata/r0_00002.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:483daf6669053d10e5beecbf83b4441641537f7145ba680ddc8ffe1554160827
3
- size 7567299
 
 
 
 
question_metadata/r0_00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c00655032d47d74056c89d9984a9ee3eb9d114eedb97cb370143c923fd54c06
3
- size 7450342
 
 
 
 
question_metadata/r0_00004.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6b5bd7e5655010aef6ab685d5207ca833b2cddbac6c6f52def5fcaacf57fb44d
3
- size 8315388
 
 
 
 
question_metadata/r0_00005.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:393015899ea1275623b12976b7b21b7c27283edc7250388909e5956f85ba89cc
3
- size 7149377
 
 
 
 
question_metadata/r0_00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:61dc9c2d834359f2c26b03b4a74915bfb0dd01cfa7b06eca3d333f961be5ae50
3
- size 7723771
 
 
 
 
question_metadata/r0_00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1fcd988812ddc3c1187665060d1fe2a67a1cefd9d89dc4ae8594d4cc0a32ff1a
3
- size 7783159
 
 
 
 
question_metadata/r0_00008.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:dbc2edcdbdfbdc32233bb34b6cc3ad7558e83cd5d8a00da0cd16e29a3b928833
3
- size 8291030
 
 
 
 
question_metadata/r0_00009.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c43880945d3ed628e5c971f37aa1431280a3ef5e170cca552f9b48df823d20fc
3
- size 116709