Mo7art commited on
Commit
3748a2e
·
verified ·
1 Parent(s): 5b1842a

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -58,3 +58,7 @@ 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_shell_vector.snapshot.zst.part_003 filter=lfs diff=lfs merge=lfs -text
62
+ qdrant_snapshots/archives/stackoverflow_shell_vector.snapshot.zst.part_001 filter=lfs diff=lfs merge=lfs -text
63
+ qdrant_snapshots/archives/stackoverflow_shell_vector.snapshot.zst.part_000 filter=lfs diff=lfs merge=lfs -text
64
+ qdrant_snapshots/archives/stackoverflow_shell_vector.snapshot.zst.part_002 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 - Shell
10
+ license: cc-by-sa-4.0
11
+ size_categories:
12
+ - 1M<n<10M
13
+ ---
14
+
15
+ # Shell StackOverflow Vector Dataset
16
+
17
+ ## Summary
18
+
19
+ This repository contains the Shell 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_shell_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_shell_vector.tar.zst
35
+ stackoverflow_shell_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_shell_vector.*`: optional Qdrant restore artifact files for `stackoverflow_shell_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 `shell/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 Shell.
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 Shell 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_shell_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:27fc8241e22af9ba5ae942044ad6c18c251ad47a875428253c3d8cc46e53089f
3
+ size 82479021
chunk_records/r1_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea84eb483fdaf04ff8b187808213d9ba88c88aa9f167aaa59f919780c2668eff
3
+ size 82467349
chunk_records/r2_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f97af3803d624a261ae2610714431845088397adb59fd831c9c413626384379b
3
+ size 82533259
chunk_records/r3_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:550c679d8164a20248e0b8cfea62badcc3f8edb17bf13ce03c57f6a870b0fa77
3
+ size 82480055
chunk_records/r4_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10136934dfb23daec03b504a3ad7272065805a7b1d017b58af933579b09966c8
3
+ size 82479998
chunk_records/r5_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:997ccb21dd234dcc3af2d85b9c2c7a5d3ef66b534a9fc1485df33e841b1b1429
3
+ size 82480647
chunk_records/r6_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88a7cdf231419f64e2dd341eca2296e144dece507fbc96df693540b53ac862d2
3
+ size 82529528
chunk_records/r7_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05bdf3ab5e279f260afa526aec597302a51da06b8da69593df75b99d7ecd03d6
3
+ size 82495196
dataset_manifest.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "file_count": 9,
3
+ "files": [
4
+ {
5
+ "category": "chunk_records",
6
+ "language": "shell",
7
+ "relative_path": "chunk_records/r0_00000.parquet",
8
+ "rows": 13020
9
+ },
10
+ {
11
+ "category": "chunk_records",
12
+ "language": "shell",
13
+ "relative_path": "chunk_records/r1_00000.parquet",
14
+ "rows": 13019
15
+ },
16
+ {
17
+ "category": "chunk_records",
18
+ "language": "shell",
19
+ "relative_path": "chunk_records/r2_00000.parquet",
20
+ "rows": 13019
21
+ },
22
+ {
23
+ "category": "chunk_records",
24
+ "language": "shell",
25
+ "relative_path": "chunk_records/r3_00000.parquet",
26
+ "rows": 13019
27
+ },
28
+ {
29
+ "category": "chunk_records",
30
+ "language": "shell",
31
+ "relative_path": "chunk_records/r4_00000.parquet",
32
+ "rows": 13019
33
+ },
34
+ {
35
+ "category": "chunk_records",
36
+ "language": "shell",
37
+ "relative_path": "chunk_records/r5_00000.parquet",
38
+ "rows": 13019
39
+ },
40
+ {
41
+ "category": "chunk_records",
42
+ "language": "shell",
43
+ "relative_path": "chunk_records/r6_00000.parquet",
44
+ "rows": 13019
45
+ },
46
+ {
47
+ "category": "chunk_records",
48
+ "language": "shell",
49
+ "relative_path": "chunk_records/r7_00000.parquet",
50
+ "rows": 13019
51
+ },
52
+ {
53
+ "category": "question_metadata",
54
+ "language": "shell",
55
+ "relative_path": "question_metadata/r0_00000.parquet",
56
+ "rows": 93050
57
+ }
58
+ ],
59
+ "language": "shell",
60
+ "qdrant_snapshot": {
61
+ "artifact_files": [
62
+ "stackoverflow_shell_vector.snapshot.zst.part_000",
63
+ "stackoverflow_shell_vector.snapshot.zst.part_001",
64
+ "stackoverflow_shell_vector.snapshot.zst.part_002",
65
+ "stackoverflow_shell_vector.snapshot.zst.part_003"
66
+ ],
67
+ "artifact_format": "zstd_split",
68
+ "collection_name": "stackoverflow_shell_vector",
69
+ "manifest_path": "/var/stackoverflow_data/vector_dataset_archives/hf_upload_folder/shell/qdrant_snapshots/collections_manifest.json",
70
+ "points_count": 104153,
71
+ "snapshot_file": "snapshots/stackoverflow_shell_vector.snapshot"
72
+ },
73
+ "source": "vector_dataset_language_folder",
74
+ "total_rows": 197203
75
+ }
qdrant_snapshots/archives/stackoverflow_shell_vector.snapshot.zst.part_000 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac412ecb37058fe391e0407a94ebab925085e91546ddfe35bf5959b856869f6c
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_shell_vector.snapshot.zst.part_001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bece1c6e607aab351efba9795f7cae81478be445fae418de571df6b65034c31
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_shell_vector.snapshot.zst.part_002 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:752147796c3ddf5bb33edce176b1c9f274a63d05130d89c3ecac94d6dc59edb3
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_shell_vector.snapshot.zst.part_003 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31c1ceca7caff19c3b0b7fd6d021993fa0404e7199b71f3ad5f7c4581891e55b
3
+ size 606692299
qdrant_snapshots/collections_manifest.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "archive_dir": "archives",
3
+ "archive_format": "mixed",
4
+ "archive_parts": [],
5
+ "archive_size_limit_bytes": 1000000000,
6
+ "collection_glob": "stackoverflow_shell_vector",
7
+ "collections": [
8
+ {
9
+ "archive_file": null,
10
+ "artifact_files": [
11
+ "archives/stackoverflow_shell_vector.snapshot.zst.part_000",
12
+ "archives/stackoverflow_shell_vector.snapshot.zst.part_001",
13
+ "archives/stackoverflow_shell_vector.snapshot.zst.part_002",
14
+ "archives/stackoverflow_shell_vector.snapshot.zst.part_003"
15
+ ],
16
+ "artifact_format": "zstd_split",
17
+ "collection_name": "stackoverflow_shell_vector",
18
+ "config": {
19
+ "config": {
20
+ "hnsw_config": {
21
+ "ef_construct": 100,
22
+ "full_scan_threshold": 10000,
23
+ "m": 16,
24
+ "max_indexing_threads": 16,
25
+ "on_disk": false
26
+ },
27
+ "optimizer_config": {
28
+ "default_segment_number": 0,
29
+ "deleted_threshold": 0.2,
30
+ "flush_interval_sec": 30,
31
+ "indexing_threshold": 20000,
32
+ "vacuum_min_vector_number": 1000
33
+ },
34
+ "params": {
35
+ "on_disk_payload": true,
36
+ "replication_factor": 1,
37
+ "shard_number": 8,
38
+ "sparse_vectors": {
39
+ "sparse": {
40
+ "index": {
41
+ "on_disk": true
42
+ }
43
+ }
44
+ },
45
+ "vectors": {
46
+ "dense": {
47
+ "distance": "Cosine",
48
+ "on_disk": false,
49
+ "size": 4096
50
+ }
51
+ },
52
+ "write_consistency_factor": 1
53
+ },
54
+ "quantization_config": {
55
+ "scalar": {
56
+ "always_ram": true,
57
+ "quantile": 0.99,
58
+ "type": "int8"
59
+ }
60
+ },
61
+ "wal_config": {
62
+ "wal_capacity_mb": 256,
63
+ "wal_retain_closed": 1,
64
+ "wal_segments_ahead": 0
65
+ }
66
+ },
67
+ "indexed_vectors_count": 208306,
68
+ "optimizer_status": "ok",
69
+ "payload_schema": {},
70
+ "points_count": 104153,
71
+ "segments_count": 52,
72
+ "status": "green",
73
+ "update_queue": {
74
+ "length": 0
75
+ }
76
+ },
77
+ "points_count": 104153,
78
+ "segments_count": 52,
79
+ "snapshot_file": "snapshots/stackoverflow_shell_vector.snapshot",
80
+ "snapshot_name": "stackoverflow_shell_vector-8271646633244964-2026-07-06-09-07-00.snapshot"
81
+ }
82
+ ],
83
+ "created_at": 1783366787,
84
+ "max_archive_parts": 1000,
85
+ "qdrant_url": "http://localhost:6333",
86
+ "snapshot_dir": "snapshots",
87
+ "snapshot_files": [
88
+ {
89
+ "checksum": "ec13139d0c265d8938f482107a42fcab6b3655298ac1895f7f637401c89e3fb2",
90
+ "collection_name": "stackoverflow_shell_vector",
91
+ "created_at": "2026-07-06T09:07:07",
92
+ "size_bytes": 3646983168,
93
+ "snapshot_file": "snapshots/stackoverflow_shell_vector.snapshot",
94
+ "snapshot_name": "stackoverflow_shell_vector-8271646633244964-2026-07-06-09-07-00.snapshot"
95
+ }
96
+ ]
97
+ }
question_metadata/r0_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fdfdf4ddea39cd1bba11d803b044dd5d339a1e039c8ba2cad8f74d570287a81
3
+ size 3494639