Mo7art commited on
Commit
4cdf024
·
verified ·
1 Parent(s): e3ed524

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -58,3 +58,14 @@ 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_typescript_vector.snapshot.zst.part_010 filter=lfs diff=lfs merge=lfs -text
62
+ qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_001 filter=lfs diff=lfs merge=lfs -text
63
+ qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_008 filter=lfs diff=lfs merge=lfs -text
64
+ qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_005 filter=lfs diff=lfs merge=lfs -text
65
+ qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_000 filter=lfs diff=lfs merge=lfs -text
66
+ qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_004 filter=lfs diff=lfs merge=lfs -text
67
+ qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_002 filter=lfs diff=lfs merge=lfs -text
68
+ qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_009 filter=lfs diff=lfs merge=lfs -text
69
+ qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_003 filter=lfs diff=lfs merge=lfs -text
70
+ qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_006 filter=lfs diff=lfs merge=lfs -text
71
+ qdrant_snapshots/archives/stackoverflow_typescript_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 - Typescript
10
+ license: cc-by-sa-4.0
11
+ size_categories:
12
+ - 1M<n<10M
13
+ ---
14
+
15
+ # Typescript StackOverflow Vector Dataset
16
+
17
+ ## Summary
18
+
19
+ This repository contains the Typescript 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_typescript_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_typescript_vector.tar.zst
35
+ stackoverflow_typescript_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_typescript_vector.*`: optional Qdrant restore artifact files for `stackoverflow_typescript_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 `typescript/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 Typescript.
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 Typescript 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_typescript_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:841fdf297c3eeae33ae710afe36e86480c23ccb142324a6c54fdada429388e1f
3
+ size 233454965
chunk_records/r1_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c56b4274138c35f1314df257c11dc746b1ae4d9e6add5e49375921b65f4ef65
3
+ size 233466803
chunk_records/r2_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0276e01dd731d98f7d06bc0947b22b976b08016c00bcc1800c9222119e0b289d
3
+ size 233412738
chunk_records/r3_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e26deb3679035af3701ed54c8b4376745faee5ca068e896e7e935af885f44838
3
+ size 233403672
chunk_records/r4_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bce33cd44a07a6a8dab93c666083459236a74e736811f1b18b09bd0359191381
3
+ size 233339926
chunk_records/r5_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf7f17a950d004f5793b9474356ba278754fd331f1875c4979fd7d27c9d105a6
3
+ size 233422391
chunk_records/r6_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6767bd16cac099ee1a3d57992b04387de0dd817bc5446889d30f1df45c9d343
3
+ size 233409314
chunk_records/r7_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ab7b7c6994385ec86c7c6e7df7241bf74d9ebfb11781813bc10c42b61ac2bd1
3
+ size 233421531
dataset_manifest.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "file_count": 9,
3
+ "files": [
4
+ {
5
+ "category": "chunk_records",
6
+ "language": "typescript",
7
+ "relative_path": "chunk_records/r0_00000.parquet",
8
+ "rows": 36565
9
+ },
10
+ {
11
+ "category": "chunk_records",
12
+ "language": "typescript",
13
+ "relative_path": "chunk_records/r1_00000.parquet",
14
+ "rows": 36564
15
+ },
16
+ {
17
+ "category": "chunk_records",
18
+ "language": "typescript",
19
+ "relative_path": "chunk_records/r2_00000.parquet",
20
+ "rows": 36564
21
+ },
22
+ {
23
+ "category": "chunk_records",
24
+ "language": "typescript",
25
+ "relative_path": "chunk_records/r3_00000.parquet",
26
+ "rows": 36564
27
+ },
28
+ {
29
+ "category": "chunk_records",
30
+ "language": "typescript",
31
+ "relative_path": "chunk_records/r4_00000.parquet",
32
+ "rows": 36564
33
+ },
34
+ {
35
+ "category": "chunk_records",
36
+ "language": "typescript",
37
+ "relative_path": "chunk_records/r5_00000.parquet",
38
+ "rows": 36564
39
+ },
40
+ {
41
+ "category": "chunk_records",
42
+ "language": "typescript",
43
+ "relative_path": "chunk_records/r6_00000.parquet",
44
+ "rows": 36564
45
+ },
46
+ {
47
+ "category": "chunk_records",
48
+ "language": "typescript",
49
+ "relative_path": "chunk_records/r7_00000.parquet",
50
+ "rows": 36564
51
+ },
52
+ {
53
+ "category": "question_metadata",
54
+ "language": "typescript",
55
+ "relative_path": "question_metadata/r0_00000.parquet",
56
+ "rows": 235201
57
+ }
58
+ ],
59
+ "language": "typescript",
60
+ "qdrant_snapshot": {
61
+ "artifact_files": [
62
+ "stackoverflow_typescript_vector.snapshot.zst.part_000",
63
+ "stackoverflow_typescript_vector.snapshot.zst.part_001",
64
+ "stackoverflow_typescript_vector.snapshot.zst.part_002",
65
+ "stackoverflow_typescript_vector.snapshot.zst.part_003",
66
+ "stackoverflow_typescript_vector.snapshot.zst.part_004",
67
+ "stackoverflow_typescript_vector.snapshot.zst.part_005",
68
+ "stackoverflow_typescript_vector.snapshot.zst.part_006",
69
+ "stackoverflow_typescript_vector.snapshot.zst.part_007",
70
+ "stackoverflow_typescript_vector.snapshot.zst.part_008",
71
+ "stackoverflow_typescript_vector.snapshot.zst.part_009",
72
+ "stackoverflow_typescript_vector.snapshot.zst.part_010"
73
+ ],
74
+ "artifact_format": "zstd_split",
75
+ "collection_name": "stackoverflow_typescript_vector",
76
+ "manifest_path": "/var/stackoverflow_data/vector_dataset_archives/hf_upload_folder/typescript/qdrant_snapshots/collections_manifest.json",
77
+ "points_count": 292513,
78
+ "snapshot_file": "snapshots/stackoverflow_typescript_vector.snapshot"
79
+ },
80
+ "source": "vector_dataset_language_folder",
81
+ "total_rows": 527714
82
+ }
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_000 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:631ca2e0cbfa5ed5792589639d2816f828962c3f84d0fd3e2a49747c29cd589a
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81282a7ce6b01516ed2e868f61b245560ddf649ee84b63631494e0ee425773b2
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_002 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1c8d9eb42e0046cdf527bb11a5a273bc7eabd19d1ff8856c7f44498fe887643
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_003 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ce9930d8afa064d745510254358b9bced169a5e5ffee246dd43f234b9a747ec
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_004 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c72a2298c3b1a2cd711639d0c5e7f0f7feebb00665641472041d8b694aa36213
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_005 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3675942cd651f80c343589129da16e7c4afade3c6b87e04d4c6874e6f6ff615a
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_006 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2037261ffdd889e424f19fdb969a68d400c37382418602a69e9d4f50c5cdea24
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_007 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38f76437fefb5e38dc3a7bbe2dca9f8cbced5cdf4ea65de91764f37081769179
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_008 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0af1db0925c327b2d731ab6ddef0ee1e23ac8ee5a0decf5045ceb1411931fac
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_009 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f3150ecf6b194f95430c7e46a29edf7ebfa0d8fd18bb755195da209157cd53e
3
+ size 1000000000
qdrant_snapshots/archives/stackoverflow_typescript_vector.snapshot.zst.part_010 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86cbc6d0d9ed03c2697880405cf941eca42a183c86a6820ea55115cd87390099
3
+ size 177195253
qdrant_snapshots/collections_manifest.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "archive_dir": "archives",
3
+ "archive_format": "mixed",
4
+ "archive_parts": [],
5
+ "archive_size_limit_bytes": 1000000000,
6
+ "collection_glob": "stackoverflow_typescript_vector",
7
+ "collections": [
8
+ {
9
+ "archive_file": null,
10
+ "artifact_files": [
11
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_000",
12
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_001",
13
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_002",
14
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_003",
15
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_004",
16
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_005",
17
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_006",
18
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_007",
19
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_008",
20
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_009",
21
+ "archives/stackoverflow_typescript_vector.snapshot.zst.part_010"
22
+ ],
23
+ "artifact_format": "zstd_split",
24
+ "collection_name": "stackoverflow_typescript_vector",
25
+ "config": {
26
+ "config": {
27
+ "hnsw_config": {
28
+ "ef_construct": 100,
29
+ "full_scan_threshold": 10000,
30
+ "m": 16,
31
+ "max_indexing_threads": 16,
32
+ "on_disk": false
33
+ },
34
+ "optimizer_config": {
35
+ "default_segment_number": 0,
36
+ "deleted_threshold": 0.2,
37
+ "flush_interval_sec": 30,
38
+ "indexing_threshold": 20000,
39
+ "vacuum_min_vector_number": 1000
40
+ },
41
+ "params": {
42
+ "on_disk_payload": true,
43
+ "replication_factor": 1,
44
+ "shard_number": 8,
45
+ "sparse_vectors": {
46
+ "sparse": {
47
+ "index": {
48
+ "on_disk": true
49
+ }
50
+ }
51
+ },
52
+ "vectors": {
53
+ "dense": {
54
+ "distance": "Cosine",
55
+ "on_disk": false,
56
+ "size": 4096
57
+ }
58
+ },
59
+ "write_consistency_factor": 1
60
+ },
61
+ "quantization_config": {
62
+ "scalar": {
63
+ "always_ram": true,
64
+ "quantile": 0.99,
65
+ "type": "int8"
66
+ }
67
+ },
68
+ "wal_config": {
69
+ "wal_capacity_mb": 256,
70
+ "wal_retain_closed": 1,
71
+ "wal_segments_ahead": 0
72
+ }
73
+ },
74
+ "indexed_vectors_count": 585026,
75
+ "optimizer_status": "ok",
76
+ "payload_schema": {},
77
+ "points_count": 292513,
78
+ "segments_count": 52,
79
+ "status": "green",
80
+ "update_queue": {
81
+ "length": 0
82
+ }
83
+ },
84
+ "points_count": 292513,
85
+ "segments_count": 52,
86
+ "snapshot_file": "snapshots/stackoverflow_typescript_vector.snapshot",
87
+ "snapshot_name": "stackoverflow_typescript_vector-8271646633244964-2026-07-06-09-08-42.snapshot"
88
+ }
89
+ ],
90
+ "created_at": 1783366787,
91
+ "max_archive_parts": 1000,
92
+ "qdrant_url": "http://localhost:6333",
93
+ "snapshot_dir": "snapshots",
94
+ "snapshot_files": [
95
+ {
96
+ "checksum": "40062af1eb71cc1dc70a0fa2b97c02c8726782994dbce9b56fe909b422e0dfdb",
97
+ "collection_name": "stackoverflow_typescript_vector",
98
+ "created_at": "2026-07-06T09:09:04",
99
+ "size_bytes": 10270758400,
100
+ "snapshot_file": "snapshots/stackoverflow_typescript_vector.snapshot",
101
+ "snapshot_name": "stackoverflow_typescript_vector-8271646633244964-2026-07-06-09-08-42.snapshot"
102
+ }
103
+ ]
104
+ }
question_metadata/r0_00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a0589ff0d86f810d7f4240ef74198027c7813e8cdf22abc99c15bd5e1dbe1aa
3
+ size 9329652