Mo7art commited on
Commit
1a9fe87
·
verified ·
1 Parent(s): ba9cb7f

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -58,3 +58,13 @@ 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_ruby_vector.snapshot.zst.part_009 filter=lfs diff=lfs merge=lfs -text
62
+ qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_008 filter=lfs diff=lfs merge=lfs -text
63
+ qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_002 filter=lfs diff=lfs merge=lfs -text
64
+ qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_003 filter=lfs diff=lfs merge=lfs -text
65
+ qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_000 filter=lfs diff=lfs merge=lfs -text
66
+ qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_006 filter=lfs diff=lfs merge=lfs -text
67
+ qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_001 filter=lfs diff=lfs merge=lfs -text
68
+ qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_005 filter=lfs diff=lfs merge=lfs -text
69
+ qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_004 filter=lfs diff=lfs merge=lfs -text
70
+ qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_007 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 - Ruby
10
+ license: cc-by-sa-4.0
11
+ size_categories:
12
+ - 1M<n<10M
13
+ ---
14
+
15
+ # Ruby StackOverflow Vector Dataset
16
+
17
+ ## Summary
18
+
19
+ This repository contains the Ruby 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_ruby_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_ruby_vector.tar.zst
35
+ stackoverflow_ruby_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_ruby_vector.*`: optional Qdrant restore artifact files for `stackoverflow_ruby_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 `ruby/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 Ruby.
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 Ruby 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_ruby_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:8ebd2d6331719f6c13d4ccbd13b15906a5098e6dfc92875bc03868416600e31e
3
+ size 219690120
chunk_records/r1_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfac31b368b576284b6bb2e293147582f0a64e492a8c22ca356cce81b9379981
3
+ size 219640170
chunk_records/r2_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c730f2357f48ec5bf326dc3ed1a46e967cadd7b60bd151258c7dd341cb577f1
3
+ size 219704306
chunk_records/r3_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0a359ac1a35ee137ecb778d8fcfaa1d08568cbf173cdb15a637b003398a9633
3
+ size 219647695
chunk_records/r4_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0215840b839a81bc8edbc15ed11bbefdb79c2842164e30f5cf428564e6ed013b
3
+ size 219692671
chunk_records/r5_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eec793ae789812177ffcf37ef3a933dbfc65acffceeea4553b42f9e55d392612
3
+ size 219657437
chunk_records/r6_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2773693987b9b0fdef9a167660d10c8bea6a1c5a5e0f04b4e550ea626d8af43
3
+ size 219660823
chunk_records/r7_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85b3a6d0e9a328335d6bb668a0f7ef974d67eaaffc70958e12143ff49439f1be
3
+ size 219657973
dataset_manifest.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "file_count": 9,
3
+ "files": [
4
+ {
5
+ "category": "chunk_records",
6
+ "language": "ruby",
7
+ "relative_path": "chunk_records/r0_00000.parquet",
8
+ "rows": 34536
9
+ },
10
+ {
11
+ "category": "chunk_records",
12
+ "language": "ruby",
13
+ "relative_path": "chunk_records/r1_00000.parquet",
14
+ "rows": 34536
15
+ },
16
+ {
17
+ "category": "chunk_records",
18
+ "language": "ruby",
19
+ "relative_path": "chunk_records/r2_00000.parquet",
20
+ "rows": 34536
21
+ },
22
+ {
23
+ "category": "chunk_records",
24
+ "language": "ruby",
25
+ "relative_path": "chunk_records/r3_00000.parquet",
26
+ "rows": 34536
27
+ },
28
+ {
29
+ "category": "chunk_records",
30
+ "language": "ruby",
31
+ "relative_path": "chunk_records/r4_00000.parquet",
32
+ "rows": 34536
33
+ },
34
+ {
35
+ "category": "chunk_records",
36
+ "language": "ruby",
37
+ "relative_path": "chunk_records/r5_00000.parquet",
38
+ "rows": 34536
39
+ },
40
+ {
41
+ "category": "chunk_records",
42
+ "language": "ruby",
43
+ "relative_path": "chunk_records/r6_00000.parquet",
44
+ "rows": 34536
45
+ },
46
+ {
47
+ "category": "chunk_records",
48
+ "language": "ruby",
49
+ "relative_path": "chunk_records/r7_00000.parquet",
50
+ "rows": 34536
51
+ },
52
+ {
53
+ "category": "question_metadata",
54
+ "language": "ruby",
55
+ "relative_path": "question_metadata/r0_00000.parquet",
56
+ "rows": 229336
57
+ }
58
+ ],
59
+ "language": "ruby",
60
+ "qdrant_snapshot": {
61
+ "artifact_files": [
62
+ "stackoverflow_ruby_vector.snapshot.zst.part_000",
63
+ "stackoverflow_ruby_vector.snapshot.zst.part_001",
64
+ "stackoverflow_ruby_vector.snapshot.zst.part_002",
65
+ "stackoverflow_ruby_vector.snapshot.zst.part_003",
66
+ "stackoverflow_ruby_vector.snapshot.zst.part_004",
67
+ "stackoverflow_ruby_vector.snapshot.zst.part_005",
68
+ "stackoverflow_ruby_vector.snapshot.zst.part_006",
69
+ "stackoverflow_ruby_vector.snapshot.zst.part_007",
70
+ "stackoverflow_ruby_vector.snapshot.zst.part_008",
71
+ "stackoverflow_ruby_vector.snapshot.zst.part_009"
72
+ ],
73
+ "artifact_format": "zstd_split",
74
+ "collection_name": "stackoverflow_ruby_vector",
75
+ "manifest_path": "/var/stackoverflow_data/vector_dataset_archives/hf_upload_folder/ruby/qdrant_snapshots/collections_manifest.json",
76
+ "points_count": 276288,
77
+ "snapshot_file": "snapshots/stackoverflow_ruby_vector.snapshot"
78
+ },
79
+ "source": "vector_dataset_language_folder",
80
+ "total_rows": 505624
81
+ }
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_000 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ced5f73e151fb2486265c16031194a3c106c08acb589672ee2911268859fb5b
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59b2cf4decf137c718342232ed60715572beef1471783653a4760d5f86cd7e82
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_002 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13c2feb1497ec84458faa14c4bf2f9f6de011b9233370b5c67f36b4ae11a70da
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_003 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a2ae5088a75edb7b37e05698e56cc4258b883c67d9d1f35f2ecb41c6d51c154
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_004 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:403d7254c5590434be9e46da2a4b2a5da204774f7298b290bb9375d9bdf40ab1
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_005 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4bd18fe20892364a00367597c48e0444597f705c4aa29ba40dbcaa39f47b036
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_006 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e35eaf8ccc9fc7cd4b84b0b286655837a693a2add08fc864d979a3918593beb
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_007 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fd815204865f70e3b6b28c17d64046fb553feba3f63486a8c69f09502dd0b7b
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_008 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:702ded27aa03bf54b5623f367c64344de11d85ee307109d897f9bb967a5c7dd7
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_ruby_vector.snapshot.zst.part_009 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3b268782705de1ddb66127c496717339241bef82da66b580dc91fa302e7e30e
3
+ size 578706278
qdrant_snapshots/collections_manifest.json ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "archive_dir": "archives",
3
+ "archive_format": "mixed",
4
+ "archive_parts": [],
5
+ "archive_size_limit_bytes": 1000000000,
6
+ "collection_glob": "stackoverflow_ruby_vector",
7
+ "collections": [
8
+ {
9
+ "archive_file": null,
10
+ "artifact_files": [
11
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_000",
12
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_001",
13
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_002",
14
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_003",
15
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_004",
16
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_005",
17
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_006",
18
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_007",
19
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_008",
20
+ "archives/stackoverflow_ruby_vector.snapshot.zst.part_009"
21
+ ],
22
+ "artifact_format": "zstd_split",
23
+ "collection_name": "stackoverflow_ruby_vector",
24
+ "config": {
25
+ "config": {
26
+ "hnsw_config": {
27
+ "ef_construct": 100,
28
+ "full_scan_threshold": 10000,
29
+ "m": 16,
30
+ "max_indexing_threads": 16,
31
+ "on_disk": false
32
+ },
33
+ "optimizer_config": {
34
+ "default_segment_number": 0,
35
+ "deleted_threshold": 0.2,
36
+ "flush_interval_sec": 30,
37
+ "indexing_threshold": 20000,
38
+ "vacuum_min_vector_number": 1000
39
+ },
40
+ "params": {
41
+ "on_disk_payload": true,
42
+ "replication_factor": 1,
43
+ "shard_number": 8,
44
+ "sparse_vectors": {
45
+ "sparse": {
46
+ "index": {
47
+ "on_disk": true
48
+ }
49
+ }
50
+ },
51
+ "vectors": {
52
+ "dense": {
53
+ "distance": "Cosine",
54
+ "on_disk": false,
55
+ "size": 4096
56
+ }
57
+ },
58
+ "write_consistency_factor": 1
59
+ },
60
+ "quantization_config": {
61
+ "scalar": {
62
+ "always_ram": true,
63
+ "quantile": 0.99,
64
+ "type": "int8"
65
+ }
66
+ },
67
+ "wal_config": {
68
+ "wal_capacity_mb": 256,
69
+ "wal_retain_closed": 1,
70
+ "wal_segments_ahead": 0
71
+ }
72
+ },
73
+ "indexed_vectors_count": 552576,
74
+ "optimizer_status": "ok",
75
+ "payload_schema": {},
76
+ "points_count": 276288,
77
+ "segments_count": 55,
78
+ "status": "green",
79
+ "update_queue": {
80
+ "length": 0
81
+ }
82
+ },
83
+ "points_count": 276288,
84
+ "segments_count": 55,
85
+ "snapshot_file": "snapshots/stackoverflow_ruby_vector.snapshot",
86
+ "snapshot_name": "stackoverflow_ruby_vector-8271646633244964-2026-07-06-09-06-15.snapshot"
87
+ }
88
+ ],
89
+ "created_at": 1783366787,
90
+ "max_archive_parts": 1000,
91
+ "qdrant_url": "http://localhost:6333",
92
+ "snapshot_dir": "snapshots",
93
+ "snapshot_files": [
94
+ {
95
+ "checksum": "e78a7dc158413e461a34c846ddee72e912809e0b02bcd9b651d707a455bded40",
96
+ "collection_name": "stackoverflow_ruby_vector",
97
+ "created_at": "2026-07-06T09:06:35",
98
+ "size_bytes": 9669052928,
99
+ "snapshot_file": "snapshots/stackoverflow_ruby_vector.snapshot",
100
+ "snapshot_name": "stackoverflow_ruby_vector-8271646633244964-2026-07-06-09-06-15.snapshot"
101
+ }
102
+ ]
103
+ }
question_metadata/r0_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aa87e6f12c3551346d9a127f727a11719f12fba49b9cb3d8e5ae0f65aea844b
3
+ size 8839515