Mo7art commited on
Commit
5cc340b
·
verified ·
1 Parent(s): 6a2c525

Clean StackOverflow vector language dataset before upload: c

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +0 -137
  2. chunk_records/r0_00000.parquet +0 -3
  3. chunk_records/r0_00001.parquet +0 -3
  4. chunk_records/r0_00002.parquet +0 -3
  5. chunk_records/r0_00003.parquet +0 -3
  6. chunk_records/r0_00004.parquet +0 -3
  7. chunk_records/r0_00005.parquet +0 -3
  8. chunk_records/r0_00006.parquet +0 -3
  9. chunk_records/r0_00007.parquet +0 -3
  10. chunk_records/r0_00008.parquet +0 -3
  11. chunk_records/r0_00009.parquet +0 -3
  12. chunk_records/r0_00010.parquet +0 -3
  13. chunk_records/r0_00011.parquet +0 -3
  14. chunk_records/r0_00012.parquet +0 -3
  15. chunk_records/r1_00000.parquet +0 -3
  16. chunk_records/r1_00001.parquet +0 -3
  17. chunk_records/r1_00002.parquet +0 -3
  18. chunk_records/r1_00003.parquet +0 -3
  19. chunk_records/r1_00004.parquet +0 -3
  20. chunk_records/r1_00005.parquet +0 -3
  21. chunk_records/r1_00006.parquet +0 -3
  22. chunk_records/r1_00007.parquet +0 -3
  23. chunk_records/r1_00008.parquet +0 -3
  24. chunk_records/r1_00009.parquet +0 -3
  25. chunk_records/r1_00010.parquet +0 -3
  26. chunk_records/r1_00011.parquet +0 -3
  27. chunk_records/r1_00012.parquet +0 -3
  28. chunk_records/r2_00000.parquet +0 -3
  29. chunk_records/r2_00001.parquet +0 -3
  30. chunk_records/r2_00002.parquet +0 -3
  31. chunk_records/r2_00003.parquet +0 -3
  32. chunk_records/r2_00004.parquet +0 -3
  33. chunk_records/r2_00005.parquet +0 -3
  34. chunk_records/r2_00006.parquet +0 -3
  35. chunk_records/r2_00007.parquet +0 -3
  36. chunk_records/r2_00008.parquet +0 -3
  37. chunk_records/r2_00009.parquet +0 -3
  38. chunk_records/r2_00010.parquet +0 -3
  39. chunk_records/r2_00011.parquet +0 -3
  40. chunk_records/r2_00012.parquet +0 -3
  41. chunk_records/r3_00000.parquet +0 -3
  42. chunk_records/r3_00001.parquet +0 -3
  43. chunk_records/r3_00002.parquet +0 -3
  44. chunk_records/r3_00003.parquet +0 -3
  45. chunk_records/r3_00004.parquet +0 -3
  46. chunk_records/r3_00005.parquet +0 -3
  47. chunk_records/r3_00006.parquet +0 -3
  48. chunk_records/r3_00007.parquet +0 -3
  49. chunk_records/r3_00008.parquet +0 -3
  50. chunk_records/r3_00009.parquet +0 -3
README.md DELETED
@@ -1,137 +0,0 @@
1
- ---
2
- tags:
3
- - vector-database
4
- - embeddings
5
- - parquet
6
- - qdrant
7
- - stackoverflow
8
- - question-answering
9
- pretty_name: StackOverflow Vector Dataset - C
10
- license: cc-by-sa-4.0
11
- size_categories:
12
- - 1M<n<10M
13
- ---
14
-
15
- # C StackOverflow Vector Dataset
16
-
17
- ## Summary
18
-
19
- This repository contains the C 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_c_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_c_vector.tar.xz
35
- stackoverflow_c_vector.snapshot.xz.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_c_vector.*`: optional Qdrant restore artifact files for `stackoverflow_c_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 `c/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 C.
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 C 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_c_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 DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e0180c48f290f542fdcfe696ee3f3bdfd887187a7536800a36c21d11840c3b70
3
- size 365270932
 
 
 
 
chunk_records/r0_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:106006d13fa581944df60a2add465a48bd44866cbe0b1ced888f226faa9d5fce
3
- size 56705798
 
 
 
 
chunk_records/r0_00002.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:77ca5b668aac5bed7c8f42def123b04534a323f33cb45d930d9833e1b2509a48
3
- size 31068322
 
 
 
 
chunk_records/r0_00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f44420648a75d53471cdc0c9f3120a501328cb4c259e3991f4f6f5e3605b4bb3
3
- size 31557894
 
 
 
 
chunk_records/r0_00004.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8d5a1993eccfc671ae44002e8998a82317ad0538b12d506de689367a6198a6c0
3
- size 32047248
 
 
 
 
chunk_records/r0_00005.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a1d75fc0085416ae3989eb18241a9e5de39dcb24ca3ab109a3e7dc9b8a2c715
3
- size 32621004
 
 
 
 
chunk_records/r0_00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e42f2cc49d83389a3db6689873b4026251ed1e08254ea5ed9afd1e86d6571b5
3
- size 33278028
 
 
 
 
chunk_records/r0_00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:591a3b8ea11a9eb7cab6157db86d95702d5e00286301ead635eae948fbcde696
3
- size 34012161
 
 
 
 
chunk_records/r0_00008.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:690d937f7b832a0b33783fca9d3d6c372b508cf445d2d56adaeee5c7cc8ef06b
3
- size 34804128
 
 
 
 
chunk_records/r0_00009.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:86ef09a1d2e535da16ad769aacbf86b087aec32af54630982d69f433670d2540
3
- size 35648610
 
 
 
 
chunk_records/r0_00010.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:80e32f58b6d1287d3a0ad44c1112c83ed47aedf33170c51c9a207d62fd5a4f97
3
- size 36262528
 
 
 
 
chunk_records/r0_00011.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6002905d9843efe5dc9100053c0086549441099f9d358dc3086ee6262f9f27c0
3
- size 36833783
 
 
 
 
chunk_records/r0_00012.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:95aefac1ade3ae20c90831ba2579bda18ca2b5b274896a935ca4e179c60e932c
3
- size 33156092
 
 
 
 
chunk_records/r1_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7c483f3a7b4ecab3956e647a515334d4bf7b20f48d7482bd90b88448c8793433
3
- size 365297187
 
 
 
 
chunk_records/r1_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bb9f87048aec167026d8ff8b77210aa7c6589ab3a871bf7ae12c3716683c9645
3
- size 56687800
 
 
 
 
chunk_records/r1_00002.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b548ea115ce9297a511bcdd94bc85c769dd0d20e9e7ba33a3e771c96757e195e
3
- size 31022637
 
 
 
 
chunk_records/r1_00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b24df170f308259cd4d8b0f4e0d0978dbad1ade8a85d2d75d70c16fa894a0ec1
3
- size 31560091
 
 
 
 
chunk_records/r1_00004.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e508b1fe6d1a76dfad9084354367e5ff2db683cdcb11156ce21b0f0a71ea37d5
3
- size 32035370
 
 
 
 
chunk_records/r1_00005.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c680d0189868e5334d0b9f72d2b9449a702461fc7fab7fdd5688ed116e862c57
3
- size 32613787
 
 
 
 
chunk_records/r1_00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:223540ed92bd3b18c8063fbf5ec1ee8fee1e93ad424e734f46793a1188578072
3
- size 33263768
 
 
 
 
chunk_records/r1_00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:478fac01ff986fae7850db518f1751633eacb34711ceddc03b9fcf509b536a4c
3
- size 34057667
 
 
 
 
chunk_records/r1_00008.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3439957b7a00bd213d1855fbb4f207bbdea43d965d6553a6eb37f35ef3bde362
3
- size 34849817
 
 
 
 
chunk_records/r1_00009.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:76a04d5f7f7aca56b51da44e03293fe883c9cfdf4b283f6eeb386a03b7483961
3
- size 35688266
 
 
 
 
chunk_records/r1_00010.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:264a1bf0ad1cfb904175bcdf033c00b94a0f03c861c63482996b91614c1601e8
3
- size 36212649
 
 
 
 
chunk_records/r1_00011.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8249e23edb53e8794387551ecae0cc5d27f217605d7d79a921c706fadff871e3
3
- size 36806940
 
 
 
 
chunk_records/r1_00012.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b63d4b7dec70b6ffffacbaa1c27356175cb33153c042ec1ee6094617f3e7257e
3
- size 33140289
 
 
 
 
chunk_records/r2_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f31dfe730ba6332904d7d24d16eb9761c2229bac980ec955b3ef5e18b66b976b
3
- size 365284270
 
 
 
 
chunk_records/r2_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:59b6a9ee2026f46d24a7bca5895a8dd1e9ae0117abd68518551c02b1d37191a0
3
- size 56726135
 
 
 
 
chunk_records/r2_00002.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a9175ed02628da304d133d23664e89b35e63551c6137c5c4c97e91e7b93003ee
3
- size 31042926
 
 
 
 
chunk_records/r2_00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b90e6d065314c2ec20de82702479951121cda2967b94b4968f10397250f701ac
3
- size 31565306
 
 
 
 
chunk_records/r2_00004.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c3ddc64c8ccf88f0f95c266612d61a8166d367c7e59cd6362db6879b85b89aff
3
- size 32058521
 
 
 
 
chunk_records/r2_00005.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bafcc48503df02ecca4e9a71d4e8bd565feedf7f934adb0178db809bca5111b4
3
- size 32664814
 
 
 
 
chunk_records/r2_00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0d5102cda418057ac5fdf0745a45154e12f4a199c1f6b2a5da7e8e25f7ca863a
3
- size 33305272
 
 
 
 
chunk_records/r2_00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bfd510ad99b11ac5cb1b532b162af01047a18539cc2dad6a7015e987009e97b0
3
- size 34066334
 
 
 
 
chunk_records/r2_00008.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:47fb8363a8c1e62a84a5bff4c21bc86c172d096387ffec7afff9dbd4199d483b
3
- size 34841202
 
 
 
 
chunk_records/r2_00009.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c7ed6b985774a7aa60cd0e8b5938f06fdb9eb083f1f93ae03ab9029c52f360dc
3
- size 35671307
 
 
 
 
chunk_records/r2_00010.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:22078a5948f1eceb250eef70d0a95ab02013efe412d9e6535c8e056a1dd155a7
3
- size 36214112
 
 
 
 
chunk_records/r2_00011.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:faa7620954f9419b315aeb9dc438a08b4748d4c8cac2ed4d0ee43e9108364355
3
- size 36806026
 
 
 
 
chunk_records/r2_00012.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5e8b2f87efa7cfd0d7561b7668e5d12eb898d8044c5ebb3bc2e679af16bb2c4f
3
- size 33146566
 
 
 
 
chunk_records/r3_00000.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6ba27891c5196ea7b4db905e4f6ff9242f3611d1e8c7317bfae3940ccae79688
3
- size 365330018
 
 
 
 
chunk_records/r3_00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:37a427599ecb195aa81ef4b8a92015353484dcda379781d8e9d4a9e9c2d6089e
3
- size 56705425
 
 
 
 
chunk_records/r3_00002.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6d2b47873cbfba8535c7d3ffa880dc76149383a9421ae22db970a53032808182
3
- size 31026118
 
 
 
 
chunk_records/r3_00003.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6f7d1fad8f12a1424527508509e947172d5ed91bc469b4c1233fa96f696c796f
3
- size 31520786
 
 
 
 
chunk_records/r3_00004.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3fb6b97dbfba16092454e018fe4829ff6772139340a76cb35cc7884eb7448b1a
3
- size 32065292
 
 
 
 
chunk_records/r3_00005.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1eccdde401e4946a57bf4fd04e2c0ba87dfe3c3106c6dcc3a2f07eebeef07f4e
3
- size 32587656
 
 
 
 
chunk_records/r3_00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9b4d7ea99af90cce25cccd6aba492cfa40a6f53767196abeacf3aed8f5501bf0
3
- size 33225250
 
 
 
 
chunk_records/r3_00007.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:810f17dc01f62594e93f0529d31cd0a3739956dca5e6f7f7047dadbbbac91c16
3
- size 33988124
 
 
 
 
chunk_records/r3_00008.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:364b3501f1979c7da7b01ac6671895b468cdbfb6f5081ced92982c073588ba6a
3
- size 34814905
 
 
 
 
chunk_records/r3_00009.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:de7b6b4f03489f81217e651d328bc04bf967b58611ccade556a323d59a25b3bf
3
- size 35614933