Mo7art commited on
Commit
4ae9aeb
·
verified ·
1 Parent(s): 1af1bc7

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -58,3 +58,9 @@ 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_powershell_vector.snapshot.zst.part_005 filter=lfs diff=lfs merge=lfs -text
62
+ qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_003 filter=lfs diff=lfs merge=lfs -text
63
+ qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_002 filter=lfs diff=lfs merge=lfs -text
64
+ qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_001 filter=lfs diff=lfs merge=lfs -text
65
+ qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_000 filter=lfs diff=lfs merge=lfs -text
66
+ qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_004 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 - Powershell
10
+ license: cc-by-sa-4.0
11
+ size_categories:
12
+ - 1M<n<10M
13
+ ---
14
+
15
+ # Powershell StackOverflow Vector Dataset
16
+
17
+ ## Summary
18
+
19
+ This repository contains the Powershell 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_powershell_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_powershell_vector.tar.zst
35
+ stackoverflow_powershell_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_powershell_vector.*`: optional Qdrant restore artifact files for `stackoverflow_powershell_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 `powershell/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 Powershell.
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 Powershell 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_powershell_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:31f32c65dffcf7dc7ac3dcbfda623f04860bafb7e11cb7141b55310b0bb7a127
3
+ size 118371928
chunk_records/r1_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c92f84daeb571ee6eed86c4d55daadde130d054dd0a0c4da11170439e102c072
3
+ size 118355716
chunk_records/r2_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bca854c92859bf5fb3a7166010f47a59dd7b35e713b0a7410741936ab74612f
3
+ size 118311159
chunk_records/r3_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03885a34f825b0cf92cd3f5e836c361ffdd5bc20e2edc8d843765775f728a0c0
3
+ size 118290543
chunk_records/r4_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83be9286ff8e9f1ddddb33a7f1a5d36462a2aed076b66e69c7de07d06f51cc44
3
+ size 118294420
chunk_records/r5_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9098d5c0690eba1723750b8e8d2b9522f9a6533ee93d8396ba8de2795047e43
3
+ size 118292611
chunk_records/r6_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfcef635013df0d85f3cbc073f84b18a2e253b5cbaa2473c43c06d8f6ff3d35d
3
+ size 118314137
chunk_records/r7_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd69b657da1eaf33845f82272b7e97a9ad0b1e9baf291277def81b4b16ed25d8
3
+ size 118308120
dataset_manifest.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "file_count": 9,
3
+ "files": [
4
+ {
5
+ "category": "chunk_records",
6
+ "language": "powershell",
7
+ "relative_path": "chunk_records/r0_00000.parquet",
8
+ "rows": 18483
9
+ },
10
+ {
11
+ "category": "chunk_records",
12
+ "language": "powershell",
13
+ "relative_path": "chunk_records/r1_00000.parquet",
14
+ "rows": 18483
15
+ },
16
+ {
17
+ "category": "chunk_records",
18
+ "language": "powershell",
19
+ "relative_path": "chunk_records/r2_00000.parquet",
20
+ "rows": 18483
21
+ },
22
+ {
23
+ "category": "chunk_records",
24
+ "language": "powershell",
25
+ "relative_path": "chunk_records/r3_00000.parquet",
26
+ "rows": 18482
27
+ },
28
+ {
29
+ "category": "chunk_records",
30
+ "language": "powershell",
31
+ "relative_path": "chunk_records/r4_00000.parquet",
32
+ "rows": 18482
33
+ },
34
+ {
35
+ "category": "chunk_records",
36
+ "language": "powershell",
37
+ "relative_path": "chunk_records/r5_00000.parquet",
38
+ "rows": 18482
39
+ },
40
+ {
41
+ "category": "chunk_records",
42
+ "language": "powershell",
43
+ "relative_path": "chunk_records/r6_00000.parquet",
44
+ "rows": 18482
45
+ },
46
+ {
47
+ "category": "chunk_records",
48
+ "language": "powershell",
49
+ "relative_path": "chunk_records/r7_00000.parquet",
50
+ "rows": 18482
51
+ },
52
+ {
53
+ "category": "question_metadata",
54
+ "language": "powershell",
55
+ "relative_path": "question_metadata/r0_00000.parquet",
56
+ "rows": 119081
57
+ }
58
+ ],
59
+ "language": "powershell",
60
+ "qdrant_snapshot": {
61
+ "artifact_files": [
62
+ "stackoverflow_powershell_vector.snapshot.zst.part_000",
63
+ "stackoverflow_powershell_vector.snapshot.zst.part_001",
64
+ "stackoverflow_powershell_vector.snapshot.zst.part_002",
65
+ "stackoverflow_powershell_vector.snapshot.zst.part_003",
66
+ "stackoverflow_powershell_vector.snapshot.zst.part_004",
67
+ "stackoverflow_powershell_vector.snapshot.zst.part_005"
68
+ ],
69
+ "artifact_format": "zstd_split",
70
+ "collection_name": "stackoverflow_powershell_vector",
71
+ "manifest_path": "/var/stackoverflow_data/vector_dataset_archives/hf_upload_folder/powershell/qdrant_snapshots/collections_manifest.json",
72
+ "points_count": 147859,
73
+ "snapshot_file": "snapshots/stackoverflow_powershell_vector.snapshot"
74
+ },
75
+ "source": "vector_dataset_language_folder",
76
+ "total_rows": 266940
77
+ }
qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_000 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1ba492cf036cfbe6537e563689472aa0cf77d3be6e7a5f9c23185caa6fa5f90
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e8752c79370d4721c11144b654b1340164f31222c666a6aaea48372485038de
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_002 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9daf655e086c2222e77050dd804a0a28d824cc3af2ec8c3b5beb68131650051b
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_003 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ce7c63b7c05dabef34d529d137f8fb0bad9046b61d532608b2a8b40d5feac5a
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_004 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78949130060fd3ae9aa5c3f9ff291dce6a791ae3b49b065c1cfe9fd76d0019b0
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_powershell_vector.snapshot.zst.part_005 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f4f9111833aa566e5f447a4d0e38061e5f167ca090e0f1f1f7c06e206659a32
3
+ size 159693845
qdrant_snapshots/collections_manifest.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "archive_dir": "archives",
3
+ "archive_format": "mixed",
4
+ "archive_parts": [],
5
+ "archive_size_limit_bytes": 1000000000,
6
+ "collection_glob": "stackoverflow_powershell_vector",
7
+ "collections": [
8
+ {
9
+ "archive_file": null,
10
+ "artifact_files": [
11
+ "archives/stackoverflow_powershell_vector.snapshot.zst.part_000",
12
+ "archives/stackoverflow_powershell_vector.snapshot.zst.part_001",
13
+ "archives/stackoverflow_powershell_vector.snapshot.zst.part_002",
14
+ "archives/stackoverflow_powershell_vector.snapshot.zst.part_003",
15
+ "archives/stackoverflow_powershell_vector.snapshot.zst.part_004",
16
+ "archives/stackoverflow_powershell_vector.snapshot.zst.part_005"
17
+ ],
18
+ "artifact_format": "zstd_split",
19
+ "collection_name": "stackoverflow_powershell_vector",
20
+ "config": {
21
+ "config": {
22
+ "hnsw_config": {
23
+ "ef_construct": 100,
24
+ "full_scan_threshold": 10000,
25
+ "m": 16,
26
+ "max_indexing_threads": 16,
27
+ "on_disk": false
28
+ },
29
+ "optimizer_config": {
30
+ "default_segment_number": 0,
31
+ "deleted_threshold": 0.2,
32
+ "flush_interval_sec": 30,
33
+ "indexing_threshold": 20000,
34
+ "vacuum_min_vector_number": 1000
35
+ },
36
+ "params": {
37
+ "on_disk_payload": true,
38
+ "replication_factor": 1,
39
+ "shard_number": 8,
40
+ "sparse_vectors": {
41
+ "sparse": {
42
+ "index": {
43
+ "on_disk": true
44
+ }
45
+ }
46
+ },
47
+ "vectors": {
48
+ "dense": {
49
+ "distance": "Cosine",
50
+ "on_disk": false,
51
+ "size": 4096
52
+ }
53
+ },
54
+ "write_consistency_factor": 1
55
+ },
56
+ "quantization_config": {
57
+ "scalar": {
58
+ "always_ram": true,
59
+ "quantile": 0.99,
60
+ "type": "int8"
61
+ }
62
+ },
63
+ "wal_config": {
64
+ "wal_capacity_mb": 256,
65
+ "wal_retain_closed": 1,
66
+ "wal_segments_ahead": 0
67
+ }
68
+ },
69
+ "indexed_vectors_count": 295718,
70
+ "optimizer_status": "ok",
71
+ "payload_schema": {},
72
+ "points_count": 147859,
73
+ "segments_count": 56,
74
+ "status": "green",
75
+ "update_queue": {
76
+ "length": 0
77
+ }
78
+ },
79
+ "points_count": 147859,
80
+ "segments_count": 56,
81
+ "snapshot_file": "snapshots/stackoverflow_powershell_vector.snapshot",
82
+ "snapshot_name": "stackoverflow_powershell_vector-8271646633244964-2026-07-06-09-02-29.snapshot"
83
+ }
84
+ ],
85
+ "created_at": 1783366787,
86
+ "max_archive_parts": 1000,
87
+ "qdrant_url": "http://localhost:6333",
88
+ "snapshot_dir": "snapshots",
89
+ "snapshot_files": [
90
+ {
91
+ "checksum": "3a6a9d203f70e500a92bf25cefc92ba0768763b0dba7812fb73d50615e4e5eb9",
92
+ "collection_name": "stackoverflow_powershell_vector",
93
+ "created_at": "2026-07-06T09:02:40",
94
+ "size_bytes": 5214450176,
95
+ "snapshot_file": "snapshots/stackoverflow_powershell_vector.snapshot",
96
+ "snapshot_name": "stackoverflow_powershell_vector-8271646633244964-2026-07-06-09-02-29.snapshot"
97
+ }
98
+ ]
99
+ }
question_metadata/r0_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99a4608098299660d51c7dae1dc5046dd568ec67380f52484fb5c9d384fc26de
3
+ size 4585905