Mo7art commited on
Commit
0f92f55
·
verified ·
1 Parent(s): b540089

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. README.md +115 -0
  2. chunk_records/r0_00014.parquet +3 -0
  3. chunk_records/r0_00017.parquet +3 -0
  4. chunk_records/r0_00030.parquet +3 -0
  5. chunk_records/r0_00042.parquet +3 -0
  6. chunk_records/r0_00057.parquet +3 -0
  7. chunk_records/r1_00005.parquet +3 -0
  8. chunk_records/r1_00006.parquet +3 -0
  9. chunk_records/r1_00007.parquet +3 -0
  10. chunk_records/r1_00016.parquet +3 -0
  11. chunk_records/r1_00023.parquet +3 -0
  12. chunk_records/r1_00067.parquet +3 -0
  13. chunk_records/r2_00027.parquet +3 -0
  14. chunk_records/r2_00058.parquet +3 -0
  15. chunk_records/r3_00008.parquet +3 -0
  16. chunk_records/r3_00026.parquet +3 -0
  17. chunk_records/r3_00058.parquet +3 -0
  18. chunk_records/r3_00060.parquet +3 -0
  19. chunk_records/r3_00066.parquet +3 -0
  20. chunk_records/r3_00071.parquet +3 -0
  21. chunk_records/r4_00004.parquet +3 -0
  22. chunk_records/r4_00009.parquet +3 -0
  23. chunk_records/r4_00019.parquet +3 -0
  24. chunk_records/r4_00032.parquet +3 -0
  25. chunk_records/r4_00057.parquet +3 -0
  26. chunk_records/r4_00059.parquet +3 -0
  27. chunk_records/r5_00011.parquet +3 -0
  28. chunk_records/r5_00014.parquet +3 -0
  29. chunk_records/r5_00029.parquet +3 -0
  30. chunk_records/r7_00007.parquet +3 -0
  31. chunk_records/r7_00020.parquet +3 -0
  32. chunk_records/r7_00030.parquet +3 -0
  33. chunk_records/r7_00042.parquet +3 -0
  34. chunk_records/r7_00052.parquet +3 -0
  35. chunk_records/r7_00071.parquet +3 -0
  36. dataset_manifest.json +0 -0
  37. question_metadata/r0_00043.parquet +3 -0
  38. question_metadata/r0_00055.parquet +3 -0
  39. question_metadata/r0_00128.parquet +3 -0
  40. question_metadata/r0_00202.parquet +3 -0
  41. question_metadata/r0_00215.parquet +3 -0
  42. question_metadata/r0_00222.parquet +3 -0
  43. question_metadata/r0_00251.parquet +3 -0
  44. question_metadata/r0_00288.parquet +3 -0
  45. question_metadata/r0_00299.parquet +3 -0
  46. question_metadata/r0_00315.parquet +3 -0
  47. question_metadata/r0_00325.parquet +3 -0
  48. question_metadata/r0_00403.parquet +3 -0
  49. question_metadata/r0_00433.parquet +3 -0
  50. question_metadata/r0_00440.parquet +3 -0
README.md ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - vector-database
4
+ - embeddings
5
+ - parquet
6
+ - qdrant
7
+ - stackoverflow
8
+ - question-answering
9
+ pretty_name: StackOverflow Vector Dataset - Python
10
+ license: cc-by-sa-4.0
11
+ size_categories:
12
+ - 1M<n<10M
13
+ ---
14
+
15
+ # Python StackOverflow Vector Dataset Datasheet
16
+
17
+ ## 1. What This Dataset Is
18
+
19
+ This dataset is the Python-specific vector shard of the Stack2Graph StackOverflow retrieval corpus.
20
+ Each Hugging Face dataset repository contains exactly one language dataset.
21
+
22
+ It is optimized for dense+sparse retrieval, Qdrant restoration, and embedding-based RAG experiments.
23
+
24
+ It is used in the Stack2Graph project as the vector counterpart to the language-scoped RDF knowledge graph shards.
25
+
26
+ See the Stack2Graph repository for more details:
27
+ [https://github.com/tha-atlas/Stack2Graph](https://github.com/tha-atlas/Stack2Graph)
28
+
29
+ ## 2. Repository Layout
30
+
31
+ ```text
32
+ dataset_manifest.json
33
+ question_metadata_*.parquet
34
+ chunk_records_*.parquet
35
+ question_records_*.parquet
36
+ ```
37
+
38
+ - `dataset_manifest.json`: language-scoped manifest for this dataset shard.
39
+ - `question_metadata_*.parquet`: per-question metadata and retrieval bookkeeping.
40
+ - `chunk_records_*.parquet`: chunk-level vector rows when parent-child indexing is enabled.
41
+ - `question_records_*.parquet`: question-level vector rows when chunking is disabled or exported alongside chunk data.
42
+
43
+ ## 3. Data Model And Coverage
44
+
45
+ The dataset is derived from Stack Overflow questions selected for the Python programming language.
46
+ It contains the structured records needed to rebuild the Stack2Graph Qdrant collection for that language.
47
+
48
+ Coverage scope:
49
+
50
+ - records are retained when they match the Stack2Graph supported language-tag set
51
+ - this repository contains only the Python shard
52
+ - the archive may contain both metadata-only and retrieval-ready vector rows depending on the export mode
53
+
54
+ ## 4. Recommended Preprocessing
55
+
56
+ 1. Read `dataset_manifest.json` first and use it as the source of truth for included Parquet files.
57
+ 2. Load all Parquet shards for this repository into your vector indexing pipeline.
58
+ 3. Rebuild or restore the Qdrant collection `stackoverflow_python_vector`.
59
+ 4. Preserve attribution and license metadata during downstream export.
60
+
61
+ ## 5. Automatic Download And Vector DB Setup
62
+
63
+ You do not need to regenerate embeddings from GraphDB to use this dataset.
64
+
65
+ In the Stack2Graph repository, you can use the automation script
66
+ `python -m experiment.load_hf_datasets_into_services --skip-kg` to download dataset artifacts
67
+ and prepare the vector database service state automatically.
68
+
69
+ Typical workflow:
70
+
71
+ 1. Clone and configure Stack2Graph (`.env` with HF token and service paths).
72
+ 1. Clone and configure Stack2Graph (`.env` with HF token and service paths).
73
+ 1. Start required local services:
74
+
75
+ ```bash
76
+ docker compose up -d
77
+ ```
78
+
79
+ 1. Run the loader script:
80
+
81
+ ```bash
82
+ python -m experiment.load_hf_datasets_into_services --skip-kg
83
+ ```
84
+
85
+ For manual usage without automation, directly ingest the listed Parquet files into your vector database.
86
+
87
+ ## 6. Quality Notes And Caveats
88
+
89
+ - A Stack Overflow question may belong to multiple language shards when tagged with multiple languages.
90
+ - Embeddings and sparse representations depend on the configured export pipeline and model versions.
91
+ - As with community-generated data, content may include noise, bias, and temporal drift.
92
+
93
+ ## 7. Intended Use
94
+
95
+ - semantic retrieval and reranking
96
+ - RAG and hybrid retriever experiments
97
+ - vector database benchmarking and diagnostics
98
+ - language-scoped developer tooling research
99
+
100
+ ## 8. Limitations
101
+
102
+ - Not a complete mirror of all Stack Overflow content.
103
+ - Not all export modes include the same row types or chunk layouts.
104
+ - Best used together with the Stack2Graph retrieval pipeline and Qdrant-compatible tooling.
105
+
106
+ ## 9. Licensing And Attribution
107
+
108
+ This dataset inherits Stack Overflow source licensing and attribution requirements.
109
+ Ensure compliant attribution and redistribution practices in all derived artifacts.
110
+
111
+ ## 10. Suggested Citation
112
+
113
+ If you use this dataset, cite the Stack2Graph work:
114
+
115
+ - Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
chunk_records/r0_00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4856a768c7bcbd8367638c5536466bd2e36a7a8a8b4b6beed8f74d5b9f0b4ad1
3
+ size 31630970
chunk_records/r0_00017.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef08ee6d4fd020cbc12c8f820f63e4d058405484d76874c67287a03079f6982c
3
+ size 31892494
chunk_records/r0_00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10e3e58095791ef14b1f770d75f3c6774b93c580cfb76ef5af7d15da8d74eb16
3
+ size 33216412
chunk_records/r0_00042.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9832a39c0768d79052342d0017aef5487ec49ff4f2f1fa41128ed24788204a71
3
+ size 34766238
chunk_records/r0_00057.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebf5575d29c9f3701f0f3f8478d1f197624586be98019089f9705b078470cfca
3
+ size 36985316
chunk_records/r1_00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c722eb4523847c42960a0f073cd421129b2d83d750ab64101a358756606fb4bf
3
+ size 30724392
chunk_records/r1_00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70aba6cfa6d732db5f872536bbe79ccb74bc529c93b260e38d22641bfb14e0b2
3
+ size 30798949
chunk_records/r1_00007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d88032916fb5fe6d1484701950d2ab445501ae07778609c4642fe9852d288299
3
+ size 30932051
chunk_records/r1_00016.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8afd22c3f3b19c9f8b20bfaf69d13ee21029f0964a2eaaa072f4cbbd0c0ccca6
3
+ size 31751189
chunk_records/r1_00023.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33c55a66329897b0e1b73ea9bebeba36c6f61ee558b9ab10ab6ac5f4c7c476c2
3
+ size 32435394
chunk_records/r1_00067.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31207979909bfb66649f96b69ce5785e01e16beaf61d0171819a21d786f2bb0d
3
+ size 38288301
chunk_records/r2_00027.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65812fa9bf7e3600fed8241eb0bb3fd301a04a1876ab6d7a01a236e567d9a651
3
+ size 32828864
chunk_records/r2_00058.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6e5f1963e8791f2795ef9f3ba322a6ee3bc16cfbc8e53e4b89940e9a1252246
3
+ size 37091468
chunk_records/r3_00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a79bc86643cfe3ac9f59179ac3f9b413f84e45a4143934cbeac07eb3b0c416f6
3
+ size 31042847
chunk_records/r3_00026.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c32668b4ceb09071842dca376f701a6e6c4e8e89d69e9dd684cfa19bf676ecf
3
+ size 32758725
chunk_records/r3_00058.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4441d20e8ea6b40d454bc365b362f6460283c15486c88ca4877beea9b15c6bad
3
+ size 37128090
chunk_records/r3_00060.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d729e16a3b9b0b39e1a0432cdd8a4f411b50b7252b25d76c93933ebb4a75512
3
+ size 37347792
chunk_records/r3_00066.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed9bbd602548a104013011598046bfe2fc6f4c8f1e6a0fa9ad642669ecd4b767
3
+ size 38077718
chunk_records/r3_00071.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:181ccc090c598a072be5c3bf1463f9f6b18353083ebe768a7f99229917b53387
3
+ size 21218879
chunk_records/r4_00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6e81c43b9db0de9086131c1bf30ba23b12d48711db00a85249ff50f113f8a77
3
+ size 30500647
chunk_records/r4_00009.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:717df5468c29f26b90afcd17ebdbd6b7400a0cdd2183fb7e526cac4f750adcab
3
+ size 31146380
chunk_records/r4_00019.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48e272f6e8bcedc5c06c89b102a4705d89cd67bff91c9da488b0617f6d9518f5
3
+ size 32048802
chunk_records/r4_00032.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43f0bba017a15340cfee1b1c65d8d55a22fa74941c0eacfa9439f6e004eb0b0c
3
+ size 33460665
chunk_records/r4_00057.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f13855876ecbb00e6300f72aadefecff43c0d998d1787bbbf496923418513789
3
+ size 36962225
chunk_records/r4_00059.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ccaba6d2319928bc6650691ef82683f8420b8b1476aa8025d7cfba86ccbae9e5
3
+ size 37219496
chunk_records/r5_00011.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03d4ef5397eaa59f1b48271f9c68e50b9409dab3113ef90a34480ef23f867e7c
3
+ size 31302994
chunk_records/r5_00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80b52c9f792a47fa14d77238333b0b8b447d201f073ee3d5238259883bb75bac
3
+ size 31656697
chunk_records/r5_00029.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19f1cf95a23d17d55c0a8afb21757e6d7567fb7795bc866a59a8558e63afc05a
3
+ size 33147396
chunk_records/r7_00007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17b212b8d79bd38026ba64d46de48bdf571ed9d3a844673d1cabc5b79c9c8f02
3
+ size 30930654
chunk_records/r7_00020.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37368e7fbe37efba38122433c8bc3a14b1e9c0f030dfd4c7df54b9fe1046ae4d
3
+ size 32124675
chunk_records/r7_00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25ace3a8e17a7b85968b51615dd4110040abed14bee5155bec7483f4b77f43e7
3
+ size 33174532
chunk_records/r7_00042.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08dbdb2f39ab0b1b4259d6c441ab6165868bbd617e2b4b800147def9878da967
3
+ size 34760638
chunk_records/r7_00052.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0daa35b248adb4f40533de429ecb4f93e1c2ad80547da25b3cc0cc8e40dd1dd
3
+ size 36389316
chunk_records/r7_00071.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4f907d5f8834487e8f5c89929d51e1431035685e1bbacd9708dac208a63bf69
3
+ size 21227774
dataset_manifest.json ADDED
The diff for this file is too large to render. See raw diff
 
question_metadata/r0_00043.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:212bed6ed9a8739059b3183e05aba027734fcedbfcdb8f9a09c4bcbdc184cbe8
3
+ size 8149189
question_metadata/r0_00055.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e73e028b9522ff281f903ea27712ca4930dae012ca72436d63a0e9eb9fdc7ec
3
+ size 8054967
question_metadata/r0_00128.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9ec62cb7ff7edd5c6afae4289444e2f97277bf5cd7ea3a9ce43f3d231b9cf8b
3
+ size 8347152
question_metadata/r0_00202.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75edf9dde72e0d46d59d793e241dc6d8ab7273efa8a1d13be7210e688171d896
3
+ size 8525803
question_metadata/r0_00215.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4c62d5bd852a08ead3f6a6e3d33c7d0a98bce9e2327e06697c6422e73e2c635
3
+ size 8463662
question_metadata/r0_00222.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a70381d205e05ecb51ebfb21aae9c33e5f3331647e2b49fa131fe0a54412f6cb
3
+ size 8840019
question_metadata/r0_00251.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:739e8a06cac2dc6d9b3cf6432ba98fd0badc39bcfcd2449ba909444f825f990c
3
+ size 8704388
question_metadata/r0_00288.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c3180e9047f478d853c696c7171106dbab5e553d609d00aa3ba099e4595c9ec
3
+ size 8461238
question_metadata/r0_00299.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02f39fbd9176cc7eb79bee7ca3691a59d44ac189eb0da4890ed1ef8b60fc0d34
3
+ size 8674576
question_metadata/r0_00315.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:297ed011c8942df4f4c62c8f236d8433a1923456df600ffd0405f67275f24c94
3
+ size 8614226
question_metadata/r0_00325.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a203c364ff108c135b69b73d8a3040842aca3f1175f15a1ddd894a4a8e5a30f4
3
+ size 8667117
question_metadata/r0_00403.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8969f07e99d5e39f035b45066d7d28dec5d7d495c1a0c01020d25822a80a2d65
3
+ size 9258327
question_metadata/r0_00433.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0354506d9851a4bb6a0e9e1146a6cd8c913aaa0858377ddfeadeefaa95f91c7f
3
+ size 11165744
question_metadata/r0_00440.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:214d98b3c0d5ae56d691801827fda099263fa76964c0cbec68ee60e4eb4d00b4
3
+ size 7540746