Mo7art commited on
Commit
900f380
·
verified ·
1 Parent(s): 1f53b70

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -58,3 +58,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_006 filter=lfs diff=lfs merge=lfs -text
62
+ qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_002 filter=lfs diff=lfs merge=lfs -text
63
+ qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_001 filter=lfs diff=lfs merge=lfs -text
64
+ qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_004 filter=lfs diff=lfs merge=lfs -text
65
+ qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_005 filter=lfs diff=lfs merge=lfs -text
66
+ qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_000 filter=lfs diff=lfs merge=lfs -text
67
+ qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_003 filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - vector-database
4
+ - embeddings
5
+ - parquet
6
+ - qdrant
7
+ - stackoverflow
8
+ - question-answering
9
+ pretty_name: StackOverflow Vector Dataset - Bash
10
+ license: cc-by-sa-4.0
11
+ size_categories:
12
+ - 1M<n<10M
13
+ ---
14
+
15
+ # Bash StackOverflow Vector Dataset
16
+
17
+ ## Summary
18
+
19
+ This repository contains the Bash 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_bash_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_bash_vector.tar.zst
35
+ stackoverflow_bash_vector.snapshot.zst.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_bash_vector.*`: optional Qdrant restore artifact files for `stackoverflow_bash_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 `bash/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 Bash.
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 Bash 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_bash_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 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:325d92619c4db56151c462a5682ddb46590e3f052b766c562b5802ccba30eb3c
3
+ size 140287686
chunk_records/r1_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c96ad6f68d25f8a13b304c6689c04e80f20f09078b587df5b0cc8a37e76b71d
3
+ size 140344603
chunk_records/r2_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6519f21668688c21f16e6d84809799a7ce01ec8bdab630237b69fc4c5280184
3
+ size 140332319
chunk_records/r3_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cd525e6a5e363ab8a874070d06c492fc553eac9821c930a71cf847f1c87aeb9
3
+ size 140308162
chunk_records/r4_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67e91cb43b98fd6d16b8b3891428c043391ed8b68b739f9f342a7edf2c8b7322
3
+ size 140353280
chunk_records/r5_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:524368348f72de0e8713a31cadf72d2a6d147f4470df7540a102de7b2378b440
3
+ size 140326403
chunk_records/r6_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b64e19dbb0c767890a7506ce2f88cd7cf37c2d9896f7a3e64dc79c9b89276849
3
+ size 140336269
chunk_records/r7_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6c05e25af04677944c3e46400f95f6de8094fd95f87632adb02406f32042b9b
3
+ size 140338180
dataset_manifest.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "file_count": 9,
3
+ "files": [
4
+ {
5
+ "category": "chunk_records",
6
+ "language": "bash",
7
+ "relative_path": "chunk_records/r0_00000.parquet",
8
+ "rows": 22264
9
+ },
10
+ {
11
+ "category": "chunk_records",
12
+ "language": "bash",
13
+ "relative_path": "chunk_records/r1_00000.parquet",
14
+ "rows": 22264
15
+ },
16
+ {
17
+ "category": "chunk_records",
18
+ "language": "bash",
19
+ "relative_path": "chunk_records/r2_00000.parquet",
20
+ "rows": 22264
21
+ },
22
+ {
23
+ "category": "chunk_records",
24
+ "language": "bash",
25
+ "relative_path": "chunk_records/r3_00000.parquet",
26
+ "rows": 22264
27
+ },
28
+ {
29
+ "category": "chunk_records",
30
+ "language": "bash",
31
+ "relative_path": "chunk_records/r4_00000.parquet",
32
+ "rows": 22264
33
+ },
34
+ {
35
+ "category": "chunk_records",
36
+ "language": "bash",
37
+ "relative_path": "chunk_records/r5_00000.parquet",
38
+ "rows": 22264
39
+ },
40
+ {
41
+ "category": "chunk_records",
42
+ "language": "bash",
43
+ "relative_path": "chunk_records/r6_00000.parquet",
44
+ "rows": 22263
45
+ },
46
+ {
47
+ "category": "chunk_records",
48
+ "language": "bash",
49
+ "relative_path": "chunk_records/r7_00000.parquet",
50
+ "rows": 22263
51
+ },
52
+ {
53
+ "category": "question_metadata",
54
+ "language": "bash",
55
+ "relative_path": "question_metadata/r0_00000.parquet",
56
+ "rows": 156762
57
+ }
58
+ ],
59
+ "language": "bash",
60
+ "qdrant_snapshot": {
61
+ "artifact_files": [
62
+ "stackoverflow_bash_vector.snapshot.zst.part_000",
63
+ "stackoverflow_bash_vector.snapshot.zst.part_001",
64
+ "stackoverflow_bash_vector.snapshot.zst.part_002",
65
+ "stackoverflow_bash_vector.snapshot.zst.part_003",
66
+ "stackoverflow_bash_vector.snapshot.zst.part_004",
67
+ "stackoverflow_bash_vector.snapshot.zst.part_005",
68
+ "stackoverflow_bash_vector.snapshot.zst.part_006"
69
+ ],
70
+ "artifact_format": "zstd_split",
71
+ "collection_name": "stackoverflow_bash_vector",
72
+ "manifest_path": "/var/stackoverflow_data/vector_dataset_archives/hf_upload_folder/bash/qdrant_snapshots/collections_manifest.json",
73
+ "points_count": 178110,
74
+ "snapshot_file": "snapshots/stackoverflow_bash_vector.snapshot"
75
+ },
76
+ "source": "vector_dataset_language_folder",
77
+ "total_rows": 334872
78
+ }
qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_000 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92b81b14df82f3cbd6027dc51040e76cb3686ca5e1ac03480b6096cf77832d3b
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e70c4b718f97966a73c6d970102a68c91aebc47918b725b4f6937dfd89868f5
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_002 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcfb05abcdee4632d77339e742f5824a547e402dd25ffd2a5de786d4c9bb4a3a
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_003 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2eb530729e1cfa63ae6049680366ccb2eafe5020f94c8b7cec569d2b4422ce55
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_004 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23b1e6de1ad7201d7d2a1a28edb0b70be1e337235de79a5f2d6ba4ade40cdebd
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_005 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4db0eef09bb5163cf9d1ba40a66cb505cde34746cd4b2188e2db411f24370583
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_bash_vector.snapshot.zst.part_006 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b937c51e7aa47d34d134b4e0ab4262285c9583cea024444b08ec43fc255c795
3
+ size 165015342
qdrant_snapshots/collections_manifest.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "archive_dir": "archives",
3
+ "archive_format": "mixed",
4
+ "archive_parts": [],
5
+ "archive_size_limit_bytes": 1000000000,
6
+ "collection_glob": "stackoverflow_bash_vector",
7
+ "collections": [
8
+ {
9
+ "archive_file": null,
10
+ "artifact_files": [
11
+ "archives/stackoverflow_bash_vector.snapshot.zst.part_000",
12
+ "archives/stackoverflow_bash_vector.snapshot.zst.part_001",
13
+ "archives/stackoverflow_bash_vector.snapshot.zst.part_002",
14
+ "archives/stackoverflow_bash_vector.snapshot.zst.part_003",
15
+ "archives/stackoverflow_bash_vector.snapshot.zst.part_004",
16
+ "archives/stackoverflow_bash_vector.snapshot.zst.part_005",
17
+ "archives/stackoverflow_bash_vector.snapshot.zst.part_006"
18
+ ],
19
+ "artifact_format": "zstd_split",
20
+ "collection_name": "stackoverflow_bash_vector",
21
+ "config": {
22
+ "config": {
23
+ "hnsw_config": {
24
+ "ef_construct": 100,
25
+ "full_scan_threshold": 10000,
26
+ "m": 16,
27
+ "max_indexing_threads": 16,
28
+ "on_disk": false
29
+ },
30
+ "optimizer_config": {
31
+ "default_segment_number": 0,
32
+ "deleted_threshold": 0.2,
33
+ "flush_interval_sec": 30,
34
+ "indexing_threshold": 20000,
35
+ "vacuum_min_vector_number": 1000
36
+ },
37
+ "params": {
38
+ "on_disk_payload": true,
39
+ "replication_factor": 1,
40
+ "shard_number": 8,
41
+ "sparse_vectors": {
42
+ "sparse": {
43
+ "index": {
44
+ "on_disk": true
45
+ }
46
+ }
47
+ },
48
+ "vectors": {
49
+ "dense": {
50
+ "distance": "Cosine",
51
+ "on_disk": false,
52
+ "size": 4096
53
+ }
54
+ },
55
+ "write_consistency_factor": 1
56
+ },
57
+ "quantization_config": {
58
+ "scalar": {
59
+ "always_ram": true,
60
+ "quantile": 0.99,
61
+ "type": "int8"
62
+ }
63
+ },
64
+ "wal_config": {
65
+ "wal_capacity_mb": 256,
66
+ "wal_retain_closed": 1,
67
+ "wal_segments_ahead": 0
68
+ }
69
+ },
70
+ "indexed_vectors_count": 356220,
71
+ "optimizer_status": "ok",
72
+ "payload_schema": {},
73
+ "points_count": 178110,
74
+ "segments_count": 45,
75
+ "status": "green",
76
+ "update_queue": {
77
+ "length": 0
78
+ }
79
+ },
80
+ "points_count": 178110,
81
+ "segments_count": 45,
82
+ "snapshot_file": "snapshots/stackoverflow_bash_vector.snapshot",
83
+ "snapshot_name": "stackoverflow_bash_vector-8271646633244964-2026-07-06-08-46-19.snapshot"
84
+ }
85
+ ],
86
+ "created_at": 1783366787,
87
+ "max_archive_parts": 1000,
88
+ "qdrant_url": "http://localhost:6333",
89
+ "snapshot_dir": "snapshots",
90
+ "snapshot_files": [
91
+ {
92
+ "checksum": "93f8d1b284eba1bcd589cd7f09209e4d59dfd6a0e1500bb2a57c8bca4457f64a",
93
+ "collection_name": "stackoverflow_bash_vector",
94
+ "created_at": "2026-07-06T08:46:34",
95
+ "size_bytes": 6225504256,
96
+ "snapshot_file": "snapshots/stackoverflow_bash_vector.snapshot",
97
+ "snapshot_name": "stackoverflow_bash_vector-8271646633244964-2026-07-06-08-46-19.snapshot"
98
+ }
99
+ ]
100
+ }
question_metadata/r0_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffb4a5c81a7bc5125d9a4d696b6fbc65bd5261f583b7933e9a030753ac6ca8a4
3
+ size 5800051